Interview Prep/Real-World Interview/Kubernetes cluster-level

After a node failure, the rescheduled database pod is stuck in `ContainerCreating` with "Multi-Attach error for volume "pvc-1a2b" Volume is already exclusively attached to one node and can't be attached to another".

IntermediateTroubleshootingKubernetes cluster-level
Answer

Likely causes → EBS (and most block volumes) are ReadWriteOnce and can attach to one instance at a time. The old node died uncleanly, so the attach-detach controller still thinks the volume is attached there and waits (about 6 minutes) before force-detaching.

Diagnose →

kubectl describe pod pg-0 | grep -A3 Multi-Attach
kubectl get volumeattachment | grep pvc-1a2b
aws ec2 describe-volumes --volume-ids vol-0abc --query 'Volumes[0].Attachments'

Fix → If the old node is really gone, delete its Node object and the stale VolumeAttachment; the volume detaches and attaches to the new node. If the instance is still running but broken, stop it first so you don't risk two writers.

Prevent → Use the out-of-service taint for faster failover, keep databases on replicated setups (operators, RDS) rather than relying on a single volume moving, and keep pods with zonal volumes pinned to the same AZ.

All Real-World Interview questions Roadmap: Interview readiness

More on Kubernetes cluster-level