Interview Prep/Kubernetes/Configuration, Secrets and storage

A pod on EKS cannot attach an EBS volume: `Multi-Attach error` or volume in a different zone. Explain.

AdvancedScenarioConfiguration, Secrets and storage
Answer

Situation read → A rescheduled pod is stuck ContainerCreating with a volume error.

What I'd do →

  1. kubectl describe pod and read the AttachVolume events
  2. EBS is zonal and ReadWriteOnce, so the pod must be in the same AZ as the volume
  3. Multi-Attach means the old node still holds the volume, so wait for detach or check the old pod is gone
  4. Use topologySpreadConstraints or nodeAffinity for the zone
  5. Consider EFS for shared RWX

Why → EBS volumes attach to one instance in one AZ, so scheduling must respect that.

Interview tip → Mention WaitForFirstConsumer and zone-aware node groups.

All Kubernetes questions Roadmap: Kubernetes core

More on Configuration, Secrets and storage