StudyToCert

All certifications / CKA / Lessons

Certified Kubernetes Administrator CKA (Kubernetes v1.35 curriculum) · Domain 2: Workloads and Scheduling

Pod affinity and anti-affinity with topologyKey; topologySpreadConstraints

▶ Watch the overview video

Last reviewed September 25, 2026 · Leer en español

Node affinity relates Pods to node labels. Pod affinity and anti-affinity relate Pods to other Pods: put this web Pod near a cache Pod, or never put two replicas of the same database in the same zone.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 4 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study CKA for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the CKA study plan