Unabletomountvolumesforpod"nginx-

Events: Type Reason Age From Message

我们提供的服务有:做网站、网站设计、微信公众号开发、网站优化、网站认证、滦南ssl等。为1000多家企事业单位解决了网站和推广的问题。提供周到的售前咨询和贴心的售后服务,是有科学管理、有技术的滦南网站制作公司


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. helper program) In some cases useful info is found in syslog - try dmesg | tail or so.

根据错误提示,查看/sbin/mount.文件,果然发现没有/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 试下,发现起来了


网站题目:Unabletomountvolumesforpod"nginx-
分享URL:http://csruizhi.cn/article/jgcgig.html

其他资讯

Copyright © 2007-2024 成都优众联杰科技有限公司 All Rights Reserved 蜀ICP备2024116266号
友情链接: 成都网站建设 定制网站建设多少钱 成都网站建设公司 成都商城网站制作 营销型网站建设 重庆电商网站建设 营销网站建设 盐亭网站设计 重庆网站建设 营销型网站建设 企业网站设计 成都网站建设流程 重庆网站制作 重庆网站设计 成都网站建设公司 手机网站制作 成都响应式网站建设 成都网站设计 成都网站设计 网站设计制作报价 公司网站建设 成都网站建设