Kubernetes & Operations
Node affinity
Node affinity constrains or prefers node labels.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A command to try yourself
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kubernetes & Operations
- DaemonSetBeginner · 4 min
DaemonSet schedules a Pod on qualifying nodes.
- NoSchedule taintBeginner · 4 min
NoSchedule taint blocks new Pods lacking a matching toleration.
- Pod anti-affinityBeginner · 4 min
Pod anti-affinity spreads workloads relative to other Pods.
- Topology spreadBeginner · 4 min
Topology spread balances replicas across topology domains.
- Services: ClusterIP and stable namesBeginner · 5 min
Pod IPs change on every deploy, so nothing should ever call one. A Service is a fixed address that follows whichever Pods are ready, and one wrong label silently…
- EndpointSliceBeginner · 4 min
EndpointSlice tracks network endpoints backing Services.