k8s nfs的一个问题

在一台机器上创建Pod,挂载nfs失败。
然后在节点上尝试挂载,依然显示失败

root@master:~# mount -t nfs 192.168.207.121:/nas/dg_vd /nfs
mount: mount point /nfs does not exist
root@master:~# mkdir /nfs
root@master:~# mount -t nfs 192.168.207.121:/nas/dg_vd /nfs
mount: wrong fs type, bad option, bad superblock on 192.168.207.121:/nas/dg_vd,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount. helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
root@master:~# showmount -e 192.168.207.121
The program 'showmount' is currently not installed. You can install it by typing:
apt install nfs-common

执行apt install nfs-common后可以本地挂载nfs。
这是再创建pod成功

你可能感兴趣的:(k8s nfs的一个问题)