"timeout expired" error when mouning PVC in Azure Kubernetes AKS

7/26/2021

After a high load problem that triggered my pod evicted in the deployment, even after deleting the deployment and creating it again, I am getting the following problem:

  Warning  FailedMount  15s    kubelet            Unable to mount volumes for pod "XXX(YYY)": timeout expired waiting for volumes to attach or mount for pod "qa"/"XXX". list of unmounted volumes=[ZZZ-volume]. list of unattached volumes=[shared dockersocket ZZZ-volume default-token-kks6d]

The PV is RWO mode so it can only be attached to one POD at a time. I guess the system still has the PV as attached to the evicted pod (which I have deleted) so it does not allow it to be attached to a new POD.

How can I "free" my PV/PVC so it can be attached to the new POD?

Edit: I added get PV and get PVC outputs as requested:

kubectl get pvc:
XXX-pvc-default   Bound    pvc-XXX-7d98-11ea-91c2-XXX   5Gi        RWO            default                   469d

kubectl get pv:
pvc-XXX-7d98-11ea-91c2-XXX   5Gi        RWO            Delete           Bound    qa/XXX-pvc-default          default                            469d
-- icordoba
azure
azure-aks
kubernetes
kubernetes-pvc
persistent-volumes

0 Answers