Mani:
Hi, Is it possible to remove statefulset and not the pods associated with it? Is there any commands or options
Raamkanna Saranathan:
a statefulset is like a deployment. statefulset creates replicaset that creates pods. if you remove a statefulset, it cascades and removes everything created by it.
Raamkanna Saranathan:
i guess an option would be to copy the pod specs and create them individually outside the statefulset, then delete the statefulset itself.
Mani:
Thank you @Raamkanna Saranathan, Just checked here https://kubernetes.io/docs/tasks/run-application/delete-stateful-set/… that its possible using --cascade=orphan in the command
Raamkanna Saranathan:
oh that’s cool. didnt know, thanks