How to forcibly delete pvc in Terminating statu
This article mainly introduces how to forcibly delete the pvc of Terminating status, the article is very detailed, has a certain reference value, interested friends must read it!
Check my pv,pvc
[root@k8s-master1 fek] # kubectl get pv,pvcNAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGEpersistentvolume/pvc-1a0fa316-ed8b-4081-a1d7-f134d5fa3b9d 30Gi RWO Delete Terminating kube-system/es-data-elasticsearch-0 managed-nfs-storage 4h61m
Use this parameter to delete, and if it is a static pv, you can also use the following parameter
[root@k8s-master1 fek] # kubectl patch persistentvolume pvc-1a0fa316-ed8b-4081-a1d7-f134d5fa3b9d-p'{"metadata": {"finalizers": null}} 'persistentvolume/pvc-1a0fa316-ed8b-4081-a1d7-f134d5fa3b9d patched [root@k8s-master1 fek] # kubectl get pv,pvcNo resources found. The above is all the contents of the article "how to forcibly delete pvc in Terminating status". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!