Node Affinity
Tolerations let a Pod in. Affinity decides where it wants to be — and splits one fleet into two roles.
Skill labintermediate~25 minPro
What you'll do
- ✓Label nodes to describe what they are for
- ✓Select nodes with required node affinity
- ✓Use NotIn to express a complement set
- ✓Explain how affinity differs from a toleration
Lab outline
- 01Labels are the vocabulary
- 02Required affinity
- 03The complement set
Before you start
- Taints and tolerations
- Running a DaemonSet
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.