Back to Articles

Fix in Kubernetes Issue Deleting a PVC stuck in “Terminating” status

1 min read
asrar
Fix in Kubernetes Issue Deleting a PVC stuck in “Terminating” status

When managing your kubernetes environment/deployment, sometimes you may make a mistake. Such creating something and need to remove it form the environment.

In this case i’ve create some resource in the pvc and need to remove it then have issue with the resource stuck in the terminating status.
This is how to make the stale terminating process by pathc the deployment status and make the finalizers to empty.

Get the status of PVC

kubectl get volumeattachment

Update the finalizer of the PVC

kubectl -n pvc-namespace patch pvc pvc-name -p ‘{“metadata”:{“finalizers”:null}}’

Share this article

Discussion

Join the discussion

Loading comments...