Forum archive › Kubernetes & Helm Charts
ArchiveKubernetes can\'t remove PV/PVC stuck on terminating
Problem
User wants to delete Persistent Volume and Persistent Volume Claim from Kubernetes cluster but resources are stuck in the following state
kubectl get pvc
task-pv-claim Terminating task-pv-volume 100Gi RWO standard 3m21s
kubectl get pv
task-pv-volume 100Gi RWO Retain Terminating default/task-pv-claim standard
Solution
first make sure there are no resources uses those PV’s and PVC’s
kubectl get all
remove with force and with grace period 0
kubectl delete pvc <PVC_NAME> –grace-period=0 –force
kubectl delete pvc task-pv-claim –grace-period=0 –force
We do this for a living.
Kubernetes, DevOps and platform engineering, delivered in days — not another weekend lost to a stack trace.
Start a project →