Deleting K8s StatefulSets

It is quite likely that we will delete StatefulSets using kubectl delete -f ss.yml. Note that this command does not release the Persistent Volume Claim associated with it, even though it is defined in ss.yml. We need to explicitly do this:

kubectl get pvc


kubectl delete pvc <PVC-name>
Posted on Thu Sep 20 13:25:33 EDT 2018 by Subhash Chandran
kubernetes k8s