美文网首页
k8s nfs的一个问题

k8s nfs的一个问题

作者: 深度学习dlai | 来源:发表于2019-03-07 10:01 被阅读0次

在一台机器上创建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.<type> 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的一个问题

      本文链接:https://www.haomeiwen.com/subject/eevqpqtx.html