我正在尝试在 kubernetes pod 上安装 azure 文件共享,但出现如下错误:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 12s default-scheduler Successfully assigned azurepod to k8s-agent-e90e3bbe-0
Normal SuccessfulMountVolume 12s kubelet, k8s-agent-e90e3bbe-0 MountVolume.SetUp succeeded for volume "default-token-6v6lb"
Warning FailedMount 4s (x5 over 12s) kubelet, k8s-agent-e90e3bbe-0 MountVolume.SetUp failed for volume "azure" : mount failed: exitstatus 32
Mounting command: mount
Mounting arguments: //006ujp7qo4bhmfmagnt0.file.core.windows.net/persistshare /var/lib/kubelet/pods/64dadbe9-dff0-11e7-a005-000d3a279b90/volumes/kubernetes.io~azure-file/azure cifs [vers=3.0,username=006ujp7qo4bhmfmagnt0,password=key1,dir_mode=0777,file_mode=0777]
Output: mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
请在下面找到我用来创建 pod 的 yaml 文件:
apiVersion: v1
kind: Pod
metadata:
name: azurepod
spec:
containers:
- image: kubernetes/pause
name: azure
volumeMounts:
- name: azure
mountPath: /mnt/azure
volumes:
- name: azure
azureFile:
secretName: azure-secret
shareName: persistshare
readOnly: false