Not Able to Mount PVC for pod

Sai Teja Reddy Gurujala 1 Reputation point

We have deployed PVC and MySql DB pod in AKS of devs accidentally restarted the db pod which results into following error.

MountVolume.SetUp failed for volume "pvc-f000d3cf-475d-4664-a977-5af1dbe6acdf" : mount failed: exit status 32 Mounting command: mount Mounting arguments: -t nfs -o vers=3 /var/lib/kubelet/pods/f6e8043b-b18c-4a58-ab4e-a4bcdb522776/volumes/ Output: mount.nfs: access denied by server while mounting

Any Help would be much appreciated

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.
1,883 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,146 Reputation points Microsoft Employee

    Hello @Sai Teja Reddy Gurujala ,
    Based upon the error message "Output: mount.nfs: access denied by server while mounting"
    It seems the AKS Pod which it is trying to mount the file share from the storage account does not have the right permissions"

    One of the reason might be:- Check if the storage account is firewall enabled.
    If the storage account is behind the Firewall , try to add AKS VNET/Subnet in the Storage Account Networking Firewall

    Also please check your PV , PVC yaml files and validate the NFS version, sometimes these will happen due to NFS version mismatch

    0 comments No comments