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

Kubernetes Hard
Select the correct answer: Single Choice

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?