kubectl edit pv (pv name)
Find the following in the manifest file
finalizers:
- kubernetes.io/pv-protection
… and delete it.
Then exit, and run this command to delete the pv
kubectl delete pv (pv name) --grace-period=0 --force
kubectl edit pv (pv name)
Find the following in the manifest file
finalizers:
- kubernetes.io/pv-protection
… and delete it.
Then exit, and run this command to delete the pv
kubectl delete pv (pv name) --grace-period=0 --force