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.<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成功

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容