Search

please create a mount target

Warning FailedScheduling 5m54s default-scheduler 0/2 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling. Normal Scheduled 5m53s default-scheduler Successfully assigned default/efs-app-sts-0 to ip-10-100-12-180.ap-northeast-2.compute.internal Warning FailedMount 97s (x10 over 5m52s) kubelet MountVolume.SetUp failed for volume "pvc-82503e06-614e-4240-a010-7416e113aff3" : rpc error: code = Internal desc = Could not mount "fs-0cb5f28b4c0a28330:/" at "/var/lib/kubelet/pods/0c7ceccf-1b0c-4d72-a959-57c4be11ca81/volumes/kubernetes.io~csi/pvc-82503e06-614e-4240-a010-7416e113aff3/mount": mount failed: exit status 1 Mounting command: mount Mounting arguments: -t efs -o accesspoint=fsap-00e2db5630a184997,tls fs-0cb5f28b4c0a28330:/ /var/lib/kubelet/pods/0c7ceccf-1b0c-4d72-a959-57c4be11ca81/volumes/kubernetes.io~csi/pvc-82503e06-614e-4240-a010-7416e113aff3/mount Output: Failed to resolve "fs-0cb5f28b4c0a28330.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. Cannot find mount target for the file system fs-0cb5f28b4c0a28330, please create a mount target in ap-northeast-2b. 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
복사
위 문제는 마운트 타겟을 생성하지 않았기 때문에 발생하는 문제이다.
아래와 같이 마운트 타겟을 생성 해준 후 재생성 하면 해결 된다.
# 서브넷 ID 확인 SUBNET_IDS=$(aws eks describe-cluster --name $CLUSTER_NAME --query "cluster.resourcesVpcConfig.subnetIds" --output text) # EFS 마운트 타겟 생성 (각 서브넷에 대해) for SUBNET_ID in $SUBNET_IDS; do aws efs create-mount-target \ --file-system-id $EFS_ID \ --subnet-id $SUBNET_ID \ --security-groups $EKS_NODE_GROUP_SG_ID done # 마운트 타겟 상태 확인 aws efs describe-mount-targets --file-system-id $EFS_ID # 파드 재생성 kubectl delete pod efs-app-sts-0
Shell
복사