在 EKS 集群中挂载 EFS:示例部署失败
Mounting EFS in EKS cluster: example deployment fails
我目前正在尝试创建 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,所以我只能猜测该错误的真正含义。非常感谢您的帮助!
遇到了类似的问题。
已通过将 efs-csi-node 守护程序集从 amazon/aws-efs-csi-driver:v0.3.0
图像更新为 amazon/aws-efs-csi-driver:latest
来修复
这个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
我目前正在尝试创建 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,所以我只能猜测该错误的真正含义。非常感谢您的帮助!
遇到了类似的问题。
已通过将 efs-csi-node 守护程序集从 amazon/aws-efs-csi-driver:v0.3.0
图像更新为 amazon/aws-efs-csi-driver:latest
这个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