CKAD · Application Design and Build · lesson 13 of 13

Taints, Tolerations, and Node Affinity

Control Pod placement with taints, tolerations, node affinity, and anti-affinity rules.

16 min · Exam domain: Application Design and Build (20%)

You kubectl apply a GPU training job and it sits Pending for 20 minutes. kubectl describe shows "0/8 nodes are available: 4 node(s) had untolerated taint, 4 node(s) didn't match node affinity." You have GPU nodes. They're idle. But the scheduler won't touch them because the scheduling constraints don't line up.

Kubernetes provides three complementary tools for controlling pod placement: taints repel pods from nodes, tolerations let specific pods override that repulsion, and node affinity attracts pods toward nodes matching label criteria. Used together, they give you precise control over where workloads land. This matters in production (dedicated node pools, hardware isolation, zone spreading) and on the CKAD exam, where scheduling falls under the Application Design and Build domain (20%).

Enroll to read the rest of this lesson

Free. Your progress and certificate come with it.

Enroll, free