Advanced Disciplines
Taints, Tolerations, and the Law of Affinity
Affinity is desire; taints are refusal. Together they define where work may live and where it must never settle.
Text
Authored as doctrine; evaluated as operations.
Boundaries are mercy
Taints prevent accidental scheduling onto reserved nodes. Tolerations allow exceptions. Affinity expresses preference or requirement for co-location or separation.
Kubblai doctrine: boundaries are not hostility—they are the mechanism that preserves stability under growth.
Practical patterns
Use these patterns to keep your cluster legible.
- Dedicated node pools for stateful or latency-sensitive workloads.
- Taints for platform nodes; tolerations only for platform workloads.
- Anti-affinity or topology spread for replicas to avoid single-node failure.
Common failure modes
Placement rules fail in predictable ways. Experienced operators recognize the pattern quickly.
- Hard affinity + small clusters = permanent Pending during maintenance.
- Overly strict anti-affinity = inability to scale during incident response.
- Taints without clear ownership = ‘mysterious’ scheduling failures across teams.
- Topology constraints misaligned with labels = false sense of resilience.
Diagnostics discipline
When scheduling fails, Kubernetes will tell you why. Read the events; they contain the constraint evaluation narrative.
If you see ‘0/… nodes available’ and you don’t know which predicate is failing, you are operating without a map.
Stewardship
Placement rules are governance. They should be reviewed like policy: documented, versioned, and owned. Otherwise they calcify into folklore.
Treat the scheduler as a shared institution, not a personal tool.
Canonical Link
Canonical URL: /library/taints-tolerations-and-the-law-of-affinity
Related Readings
Advanced Disciplines
LibraryThe Scheduler and the Ethics of Placement
Placement is policy made physical. When you schedule, you are allocating failure domains, cost, and contention.
Governance & Power
LibraryNamespaces, Boundaries, and the Shape of Order
Namespaces are not security by themselves. They are the primary unit of operational containment and governance.
Advanced Disciplines
LibraryNetwork Policy and the Discipline of Isolation
Isolation is not paranoia; it is how you keep a single compromised workload from becoming a platform incident.