在 EKS 集群中挂载 EFS:示例部署失败 [英] Mounting EFS in EKS cluster: example deployment fails

查看:18
本文介绍了在 EKS 集群中挂载 EFS:示例部署失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试创建 EFS 以在 EKS 集群中使用.我已按照所有说明进行操作,大部分情况下似乎一切正常.但是,当尝试应用 此处 中的 multiple_pods 示例部署时,pods 无法成功挂载文件系统.PV 和 PVC 都绑定并且看起来不错,但是 Pod 没有启动并产生以下错误消息:

I am currently trying to create an EFS for use within an EKS cluster. I've followed all the instructions, and everything seems to be working for the most part. However, when trying to apply the multiple_pods example deployment from here, the pods cannot succesfully mount the file system. The PV and PVC are both bound and look good, however the pods do not start and yield the following error message:

  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,所以我只能猜测该错误的真正含义.非常感谢您的帮助!

To me the error looks like it may not be related to my configuration, however as I expect AWS's example deployments to work, I doubt that. I'm neither familiar with python's ConfigParser nor with EFS, so I can only guess what that error really means. Thanks alot for any help!

推荐答案

遇到了类似的问题.

通过将 efs-csi-node daemonset 从 amazon/aws-efs-csi-driver:v0.3.0 图像更新为 amazon/aws-efs-csi-driver:latest

Fixed by update efs-csi-node daemonset from amazon/aws-efs-csi-driver:v0.3.0 image to amazon/aws-efs-csi-driver:latest

这篇关于在 EKS 集群中挂载 EFS:示例部署失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆