PVC stuck in terminating state?
Janardhan Pulivarthi
Posted on November 14, 2022
# kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
service-vol-0 Terminating pvc-1517f4d4-48ac-4892-9618-5bc3bfb255db 1Gi RWO sc 33d
Add the finalizer all null
, in place of kubernetes.io/pv-protection
to be able to delete.
kubectl patch pvc service-vol-0 -p '{"metadata":{"finalizers":null}}'
docs to know more about pv-protection: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#storage-object-in-use-protection
💖 💪 🙅 🚩
Janardhan Pulivarthi
Posted on November 14, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.