我目前正在尝试创建一个 EFS 以在 EKS 集群中使用。我已遵循所有说明,并且大多数情况下一切似乎都正常。但是,当尝试应用 multiple_pods 示例部署时here https://github.com/kubernetes-sigs/aws-efs-csi-driver,pod 无法成功挂载文件系统。 PV 和 PVC 均已绑定并且看起来不错,但是 Pod 无法启动并产生以下错误消息:
Warning FailedMount 116s (x10 over 6m7s) kubelet, ip-192-168-42-94.eu-central-1.compute.internal MountVolume.SetUp failed for volume "efs-pv" : kubernetes.io/csi: mounter.SetupAt failed: rpc error: code = Internal desc = Could not mount "fs-080b8b50:/" at "/var/lib/kubelet/pods/3f7c898d-c3de-42e7-84e5-bf3b56e691ea/volumes/kubernetes.io~csi/efs-pv/mount": mount failed: exit status 1
Mounting command: mount
Mounting arguments: -t efs fs-080b8b50:/ /var/lib/kubelet/pods/3f7c898d-c3de-42e7-84e5-bf3b56e691ea/volumes/kubernetes.io~csi/efs-pv/mount
Output: Traceback (most recent call last):
File "/sbin/mount.efs", line 1375, in <module>
main()
File "/sbin/mount.efs", line 1355, in main
bootstrap_logging(config)
File "/sbin/mount.efs", line 1031, in bootstrap_logging
raw_level = config.get(CONFIG_SECTION, 'logging_level')
File "/lib64/python2.7/ConfigParser.py", line 607, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'mount'
Warning FailedMount 110s (x2 over 4m4s) kubelet, ip-192-168-42-94.eu-central-1.compute.internal Unable to attach or mount volumes: unmounted volumes=[persistent-storage], unattached volumes=[persistent-storage default-token-d47s9]: timed out waiting for the condition
对我来说,该错误看起来可能与我的配置无关,但是由于我希望 AWS 的示例部署能够正常工作,因此我对此表示怀疑。我既不熟悉 python 的 ConfigParser 也不熟悉 EFS,所以我只能猜测该错误的真正含义。非常感谢您的帮助!
面临类似的问题。
通过更新 efs-csi-node daemonset 修复amazon/aws-efs-csi-driver:v0.3.0
图像到amazon/aws-efs-csi-driver:latest
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)