What is the difference between inter-pod affinity and inter-pod anti-affinity in Kubernetes?

Kubernetes Fundamentals Hard

Kubernetes Fundamentals — Hard

What is the difference between inter-pod affinity and inter-pod anti-affinity in Kubernetes?

Key points

  • Affinity promotes pod co-location on nodes
  • Anti-affinity ensures pod separation across nodes
  • Scope of affinity and anti-affinity is node-level
  • These features are used for performance and availability

Ready to go further?

Related questions