Why do StatefulSet Pods sometimes get "Multi-Attach error" and "volume node affinity conflict"?
AdvancedConceptConfiguration & Storage
Answer
Multi-Attach: an RWO EBS volume is still attached to the old node (the node died or detach is slow) while the new Pod is on another node; it clears after the force-detach timeout (~6 minutes) or when the old node is removed. Node affinity conflict: the PV lives in one AZ but the Pod is constrained or scheduled to another zone.
kubectl describe pod db-0 | grep -A5 Events
More on Configuration & Storage
What is a ConfigMap and how can a Pod consume it?BeginnerWhat is a Secret and is it secure by default?BeginnerWhat are the common Secret types?BeginnerWhat is a Volume and how does it differ from a container filesystem?BeginnerWhat is `emptyDir` and when is it used?BeginnerWhat are PersistentVolume (PV), PersistentVolumeClaim (PVC) and StorageClass?Beginner