A pod mounting an NFS or EFS volume hangs on startup in ContainerCreating. What do you check?
IntermediateScenarioConfiguration, Secrets and storage
Answer
Situation read → MountVolume.SetUp failed ... mount.nfs: Connection timed out.
What I'd do →
- Check the security group on the EFS mount targets allows port 2049 from the nodes
- Check mount targets exist in each AZ used by nodes
- Check the CSI driver pods and the node has
nfs-utilsor the driver - Check DNS resolution of the filesystem ID from the node
- Test
nc -zv <mount-target-ip> 2049from the node
Why → A mount timeout is nearly always network reachability on port 2049.
Interview tip → Mention that stuck NFS mounts can also hang node shutdown.
More on Configuration, Secrets and storage
How do you inject configuration into pods and what are the options?BeginnerA ConfigMap was updated but the pod still shows old values. Why?IntermediateHow do you store a database password safely in Kubernetes?BeginnerHow do you manage secrets in GitOps without committing them in plain text?IntermediateA pod fails with `CreateContainerConfigError` and a missing key. What happened?BeginnerWhat is the difference between emptyDir, hostPath, PV/PVC and when do you use each?Beginner