Pod Anti-Affinity for HA

Spread pods across nodes/zones. The pattern.

Idea

Pod anti-affinity discipline is the practice of distributing pods of the same service across different nodes (or zones, or other topology). Without it, multiple replicas can land on the same node; node failure takes them all down; the workload's redundancy is theoretical.

What the idea looks like:

The idea is foundational. Without anti-affinity, the redundancy benefit is partially undone.

Setup

The pod spec includes podAntiAffinity rules. The rule specifies the topology key (where to spread) and whether the requirement is hard or soft.

Setup is per-pod-template. The discipline is consistent across multi-replica workloads.

Limits

Hard anti-affinity can prevent scheduling. The team's discipline includes recognizing when soft is the right choice.

Pod anti-affinity discipline is one of those Kubernetes scheduling disciplines that pays off in real availability. Nova AI Ops integrates with cluster pod placement telemetry, surfaces patterns, and supports the team's distribution discipline.