Back to all scenarios
Scenario #361
Storage
Kubernetes v1.24, AWS EBS, ReadWriteOnce PVC
Concurrent Pod Scheduling on the Same PVC Causes Mount Conflict
Two pods attempted to use the same PVC simultaneously, causing one pod to be stuck in ContainerCreating.
Find this helpful?
What Happened
A deployment scale-up triggered duplicate pods trying to mount the same EBS volume on different nodes.
Diagnosis Steps
- 1One pod was running, the other stuck in ContainerCreating.
- 2Events showed Volume is already attached to another node.
Root Cause
EBS supports ReadWriteOnce, not multi-node attach.
Fix/Workaround
• Added anti-affinity to restrict pod scheduling to a single node.
• Used EFS (ReadWriteMany) for workloads needing shared storage.
Lessons Learned
Not all storage supports multi-node access.
How to Avoid
- 1Understand volume access modes.
- 2Use StatefulSets or anti-affinity for PVC sharing.