Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to forcibly delete pvc in Terminating statu

Shulou Source: shulou.com Published: 2022-06-01 04:35:52 10月05日 Update

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!

Tags: Status compulsion content parameters articles values interests guys partners more knowledge industry information information channels static face-to-face channels references help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Apple Huawei Linux Xiaomi