Interview Prep/Kubernetes/Configuration, Secrets and storage

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 →

  1. Check the security group on the EFS mount targets allows port 2049 from the nodes
  2. Check mount targets exist in each AZ used by nodes
  3. Check the CSI driver pods and the node has nfs-utils or the driver
  4. Check DNS resolution of the filesystem ID from the node
  5. Test nc -zv <mount-target-ip> 2049 from 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.

All Kubernetes questions Roadmap: Kubernetes core

More on Configuration, Secrets and storage