Kubernetes Practical By Samson Tanimawo, PhD Published Mar 15, 2026 4 min read

Pod Anti-Affinity for HA

Spread pods across nodes/zones. The pattern.

Idea

Pods of the same service should not co-locate.

One node down ≠ all pods down.

Setup

podAntiAffinity with hostname or zone topology key.

Hard or soft requirement.

Limits

Hard anti-affinity can prevent scheduling.

Soft is more flexible; usually correct.