Unable to mount volumes for pod "nginx-
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Unable to mount volumes for pod "nginx-,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1552字,纯文字阅读大概需要3分钟。
内容图文
![Unable to mount volumes for pod "nginx-](/upload/InfoBanner/zyjiaocheng/977/92fa10a5bbef4a5d8dc2c2fc5e2e017d.jpg)
Events: Type Reason Age From Message
Warning FailedMount 6m (x25 over 1h) kubelet, 10.130.33.13 Unable to mount volumes for pod "nginx-hello-deployment-6f9f4d7bcc-lbt2n_chenqiang-pv-test(7b0fcbd3-7382-11e8-80b5-74eacb7559f1)": timeout expired waiting for volumes to attach/mount for pod "chenqiang-pv-test"/"nginx-hello-deployment-6f9f4d7bcc-lbt2n". list of unattached/unmounted volumes=[nfs]
Warning FailedMount 12s (x39 over 1h) kubelet, 10.130.33.13 (combined from similar events): MountVolume.SetUp failed for volume "nfs-pv" : mount failed: exit status 32 Mounting command: systemd-run Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/7b0fcbd3-7382-11e8-80b5-74eacb7559f1/volumes/kubernetes.io~nfs/nfs-pv --scope -- mount -t nfs 10.130.44.20:/test/mysql-nfs01 /var/lib/kubelet/pods/7b0fcbd3-7382-11e8-80b5-74eacb7559f1/volumes/kubernetes.io~nfs/nfs-pv Output: Running scope as unit run-11918.scope. mount: wrong fs type, bad option, bad superblock on 10.130.44.20:/test/mysql-nfs01, 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.
根据错误提示,查看/sbin/mount.<type>文件,果然发现没有/sbin/mount.nfs的文件,安装 nfs-utils 即可
解决办法:
apt-get install nfs-common
或者
yum install nfs-utils
安装之后,/sbin/ 下面多了几个 mount 文件,比如 mount.nfs 和 mount.nfs4等:
[appuser@chenqiang-dev]# cat /sbin/mo
再次 kubectl get po 试下,发现起来了
内容总结
以上是互联网集市为您收集整理的Unable to mount volumes for pod "nginx-全部内容,希望文章能够帮你解决Unable to mount volumes for pod "nginx-所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。