Schedule Kubernetes Workloads Across Failure Domains

8 steps · about 2 h 50 min · Intermediate

  1. Express required and preferred placement (doc, Kubernetes Documentation, 24 min)

    The scheduling framework shows where filtering and scoring apply placement requirements and preferences.

  2. Reserve nodes with taints and tolerations (doc, Kubernetes Documentation, 20 min)

    Taints repel unsuitable pods while tolerations permit, but do not guarantee, placement.

  3. Spread replicas across zones and nodes (doc, Kubernetes Documentation, 22 min)

    Topology constraints limit skew so one failure domain does not hold every replica.

  4. Set priority without causing surprise evictions (doc, Kubernetes Documentation, 20 min)

    Priority can protect critical work but may displace lower-priority pods when capacity is tight.

  5. Account for node pressure during placement (doc, Kubernetes Documentation, 22 min)

    Memory, disk and process pressure can evict pods even when their initial scheduling constraints were satisfied.

  6. Separate voluntary and involuntary disruption (doc, Kubernetes Documentation, 16 min)

    Failure-domain placement and maintenance behaviour must be reasoned about together.

  7. Reserve node capacity for system work (tutorial, Kubernetes Documentation, 18 min)

    Explicit reservations keep node services healthy when scheduled workloads consume their requested capacity.

  8. Test placement with a controlled node drain (tutorial, Kubernetes Documentation, 28 min)

    Draining one node proves whether replicas redistribute and exposes rules that make replacement pods unschedulable.