Skip to main content

Why do some workloads require pod-level anti-affinity instead of PDB?

Senior Kubernetes
Quick Answer PDB protects against voluntary disruptions (drain, eviction). During node failures (involuntary), PDB doesn't apply รขโ‚ฌโ€ Kubernetes terminates the node's Pods regardless. Pod anti-affinity ensures replicas land on different nodes, so a node failure only kills one replica. Anti-affinity is the HA strategy; PDB is the controlled-maintenance strategy.

Answer

Anti-affinity prevents co-location to reduce correlated failures; PDB does not control placement.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice