Search

Faild Mount EFS-PV

오류문

FailedMount 1s (x3 over 4m7s) kubelet MountVolume.SetUp failed for volume "efs-pv" : rpc error: code = Internal desc = Could not mount "fs-07138bba436f717a5:/" at "/var/lib/kubelet/pods/da7a1772-12a8-4b57-873a-d3cb0d65ece1/volumes/kubernetes.io<del>csi/efs-pv/mount": mount failed: exit status 1 Mounting command: mount Mounting arguments: -t efs -o tls fs-07138bba436f717a5:/ /var/lib/kubelet/pods/da7a1772-12a8-4b57-873a-d3cb0d65ece1/volumes/kubernetes.io</del>csi/efs-pv/mount Output: Failed to resolve "fs-07138bba436f717a5.efs.ap-northeast-2.amazonaws.com". The file system mount target ip address cannot be found, please pass mount target ip address via mount options. The file system fs-07138bba436f717a5 is not found Warning: config file does not have fips_mode_enabled item in section mount.. \ You should be able to find a new config file in the same folder as current config file /etc/amazon/efs/efs-utils.conf. Consider update the new config file to latest config file. Use the default value [fips_mode_enabled = False].Warning: config file does not have fips_mode_enabled item in section mount.. You should be able to find a new config file in the same folder as current config file /etc/amazon/efs/efs-utils.conf. Consider update the new config file to latest config file. Use the default value [fips_mode_enabled = False].
Shell
복사
이 오류는 권한이 없어 발생합니다.

해결방안 (AmazonElasticFileSystemFullAccess 권한 주기)

aws iam attach-role-policy --role-name eksctl-dev-eks-cluster-nodegroup-d-NodeInstanceRole-DU1gW4i5zion --policy-arn arn:aws:iam::aws:policy/AmazonElasticFileSystemFullAccess
Shell
복사