Skip to content

Taints and Tolerations

Taints allow a node to repel a set of pods. Tolerations are applied to pods, allowing (but not requiring) the pods to schedule onto nodes with matching taints.

Terminal window
# Apply a taint to a GPU-enabled node
kubectl taint nodes gpu-node-1 accelerator=nvidia-tesla:NoSchedule

Pod toleration manifest:

spec:
tolerations:
- key: "accelerator"
operator: "Equal"
value: "nvidia-tesla"
effect: "NoSchedule"