k8s nfs provisioner报错

image.png
Events:
  Type     Reason       Age                 From               Message
  ----     ------       ----                ----               -------
  Normal   Scheduled    2m2s                default-scheduler  Successfully assigned kube-system/nfs-subdir-external-provisioner-79dc8f979-r27mp to node2
  Warning  FailedMount  58s (x8 over 2m1s)  kubelet            MountVolume.SetUp failed for volume "nfs-subdir-external-provisioner-root" : mount failed: exit status 32
Mounting command: mount
Mounting arguments: -t nfs 10.103.23.10:/nfsfile /var/lib/kubelet/pods/2a6d5b6d-034a-4493-82d4-1279e432adc1/volumes/kubernetes.io~nfs/nfs-subdir-external-provisioner-root
Output: mount: 文件系统类型错误、选项错误、10.103.23.10:/nfsfile 上有坏超级块、
       缺少代码页或助手程序,或其他错误
       (对某些文件系统(如 nfs、cifs) 您可能需要
       一款 /sbin/mount.<类型> 助手程序)

       有些情况下在 syslog 中可以找到一些有用信息- 请尝试
       dmesg | tail  这样的命令看看。

解决版本:在worker节点行安装nfs-utils

Output: mount.nfs: access denied by server while mounting 10.103.23.10:/nfsfile
  Warning  FailedMount  117s  kubelet  Unable to attach or mount volumes: unmounted volumes=[nfs-subdir-external-provisioner-root], unattached volumes=[kube-api-access-m2zct nfs-subdir-external-provisioner-root]: timed out waiting for the condition

你可能感兴趣的:(k8s nfs provisioner报错)