我目前正在尝试创建EFS,以便在EKS集群中使用。我已经遵循了所有的说明,而且大多数情况下,一切似乎都很正常。但是,在尝试从here应用multiple_pods示例部署时,pods无法成功挂载文件系统。PV和PVC均已绑定且外观良好,但pods无法启动并产生以下错误消息:
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,所以我只能猜测这个错误的真正含义。非常感谢你的帮助!
发布于 2020-06-19 04:22:35
面临着类似的问题。
已通过将efs-csi-node守护程序从amazon/aws-efs-csi-driver:v0.3.0映像更新为amazon/aws-efs-csi-driver:latest修复
发布于 2020-06-29 10:12:50
这里的这个bug似乎已经被修复了。因此,如果您以以下方式安装它,它现在可以很好地工作。
kubectl apply -k "github.com/kubernetes-sigs/aws-efs-csi-driver/deploy/kubernetes/overlays/stable?ref=master"与v0.3.0镜像不兼容的设置似乎已被以下PR恢复。https://github.com/kubernetes-sigs/aws-efs-csi-driver/pull/196
https://stackoverflow.com/questions/62447132
复制相似问题