PVC status reflecting as Terminating even after delete

37821879 90 Reputation points
2023-10-12T11:22:42.2533333+00:00

Team, We have tried deleting the Persistant Volume Claims multiple times still it is reflecting as "terminating" can you please suggest

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,375 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AlaaBarqawi_MSFT 942 Reputation points Microsoft Employee
    2023-10-12T11:30:06.33+00:00

    @37821879 This usually happens because something is preventing a resource from being deleted, causing pvc deletion to be stuck. maybe other pod still using

    PVC is probably still attached to node in cluster, check with:

    kubectl get volumeattachment
    

    Forcing a Deletion

    kubectl patch pvc {PVC_NAME} -p '{"metadata":{"finalizers":null}}'
    

    please mark as answer if it worked with you

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.