Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Chapter 14: Scheduling and Placement

⏱️ Total chapter time: ~55 min (25 min reading + 30 min lab)

After this chapter, you will be able to: Explain how the Kubernetes scheduler selects nodes, pin pods to specific nodes with node selectors and affinity rules, repel pods from nodes using taints and tolerations, and co-locate or spread pods across failure domains with pod affinity and anti-affinity.

What’s Inside

SectionTopicTime
14.1The Kubernetes Scheduler — How It Picks a Node~5 min
14.2Node Affinity and Node Selectors~6 min
14.3Taints and Tolerations~6 min
14.4Pod Affinity and Anti-Affinity~6 min
14.5🔬 Lab: Control Where Pods Land~30 min

Prerequisites

  • Completed Chapters 1–13
  • minikube status shows Running
  • Multi-node Minikube recommended: minikube start --nodes=3 (single-node also works with labels)