K8s创建nfs存储卷报错“ bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.”
K8s创建nfs存储卷报错“ bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.”
K8s报错“
mount: /var/lib/kubelet/pods/8aeb8a27-48a4-43b1-bd4c-2d9f081e6575/volumes/kubernetes.io~nfs/my-nfs-volume: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
”
经排查原因是从节点没有安装nfs,
解决方法:
在每个节点上都安装nfs-utils