Azure files giving permission denied in kubernetes

1/17/2018

I have configured azure file volume for my pod for an application. when i try to run it, it shows error.

Warning FailedMount 0s (x7 over 32s) kubelet, aks-nodepool1-39499429-1 MountVolume.SetUp failed for volume "lhapidatasource" : mount failed: exit status 32

Output: mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Please help

-- Anil Kumar P
azure
kubernetes

1 Answer

1/17/2018

About mount Azure file share to Azure k8s pod, please refer to this answer.

Note:

  1. Need based64 encoded Azure storage account and key.
  2. Write the right file share name to azure.yaml:

enter image description here

Hope that helps.

-- Jason Ye
Source: StackOverflow