aws efs connection timeout at mount

前端 未结 4 2023
粉色の甜心
粉色の甜心 2021-02-05 03:48

I am following this tutorial to mount efs on AWS EC2 instance but when Iam executing the mount command

sudo mount -t nfs4 -o vers=4.1 $(curl -s http://169.254.1         


        
4条回答
  •  走了就别回头了
    2021-02-05 04:22

    A different answer here, as I faced a very similar error and none of the answers fit.

    I was trying to mount a NFS like below (in my case EKS was doing that on my behalf, but I tested the very same command manually in the worker node with the same result):

    [root@host ~]# mount -t nfs fs-abc1234.efs.us-east-1.amazonaws.com:/persistentvolumes /mnt/test
    

    Output was: mount.nfs: Connection timed out

    When I simply tried the same command, but using / as the path:

    [root@host ~]# mount -t nfs fs-abc1234.efs.us-east-1.amazonaws.com:/ /mnt/test
    

    It worked like a charm!

    I really do not understand how a possible wrong or missing path can lead to a time out kind of error, but that was the only thing that could fix the problem for me, all the network configuration remained the same.

    As I was using EKS/Kubernetes, I dedcided to mount /, which works, and then use subPath to change the volume mounting point in the container configuration.

提交回复
热议问题