liveBook · Manning

Taint

As explained in Acing the Certified Kubernetes Administrator Exam, Second Edition

A taint is a Kubernetes node attribute that repels pods from being scheduled on the node unless their specifications include a matching toleration.

A taint is a node attribute that repels application pods unless their specifications include a matching toleration. It commonly protects control-plane resources from ordinary workloads. A taint contains a key and effect, and may also contain a value; NoSchedule prevents scheduling without the required toleration. section 2.1.3 section 2.4

Use taints operationally to inspect node restrictions and test pod placement:

  • Inspect a control-plane taint with kubectl describe node kind-control-plane | grep Taints; a typical result is node-role.kubernetes.io/control-plane:NoSchedule. section 2.1.3
  • Apply a valued taint with kubectl taint node kind-worker dedicated=special-user:NoSchedule. section 2.1.3
  • Add a matching toleration to a pod specification, create the pod, and verify placement with kubectl get pods -o wide. section 2.1.3
root@kind-control-plane:/# kubectl describe node kind-control-plane | grep 
Taints
Taints:             node-role.kubernetes.io/control-plane:NoSchedule

Inspect the representative kubectl output showing a NoSchedule taint on the control-plane node. section 2.1.3

How Acing the Certified Kubernetes Administrator Exam, Second Edition covers it

How deep it goes
Defines keys, optional values, effects, inspection, application, and toleration-based scheduling, without detailing scheduler internals.
Examples
Uses control-plane NoSchedule output, a dedicated worker taint, and an nginx pod verified with kubectl get pods -o wide.
What it assumes
Assumes basic Kubernetes nodes, pods, YAML specifications, and kubectl usage while teaching taints and tolerations directly.
What you can do after
Operate/configure taints, add tolerations, and verify whether pods schedule on tainted nodes.
How it connects
Connects taints with tolerations, pods, nodes, control planes, and scheduling.

Also explained in

Compare how 4 books explain taint →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the Certified Kubernetes Administrator Exam, Second Edition. The section links point to the parts of the book it draws on.