An EFS-backed Pod hangs in `ContainerCreating` and the CSI node logs show `mount.nfs4: Connection timed out`.
IntermediateTroubleshootingStorage and volumes
Answer
Likely causes → The node cannot reach the EFS mount target on TCP 2049: mount target security group does not allow the node security group, no mount target in that AZ, or DNS for the file system ID does not resolve in the VPC.
Diagnose →
kubectl logs -n kube-system -l app=efs-csi-node -c efs-plugin --tail=50
aws efs describe-mount-targets --file-system-id fs-0abc --query 'MountTargets[].[AvailabilityZoneName,IpAddress]'
kubectl debug node/<node> -it --image=nicolaka/netshoot -- nc -zv <mount-target-ip> 2049
Fix → Add an inbound rule on the mount target security group for TCP 2049 from the node (or Pod) security group, and create mount targets in every AZ with nodes.
Prevent → Provision EFS mount targets and security groups with the cluster in IaC.
More on Storage and volumes
A PVC is `Pending` with `no persistent volumes available for this claim and no storage class is set`.BeginnerA PVC sits `Pending` with event `waiting for first consumer to be created before binding`. Is something broken?BeginnerA PVC is stuck with `waiting for a volume to be created, either by external provisioner "ebs.csi.aws.com" or manually created by system administrator`.IntermediateA Pod is stuck `ContainerCreating` with `Multi-Attach error for volume "pvc-3f1c..." Volume is already exclusively attached to one node and can't be attached to another`.IntermediateA Deployment with one replica and an RWO PVC gets `Multi-Attach error` on every rollout.BeginnerVolume attach fails with `AttachVolume.Attach failed for volume "pvc-..." : rpc error: code = Internal desc = Could not attach volume ... UnauthorizedOperation: You are not authorized to perform this operation`.Intermediate