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.
# Apply a taint to a GPU-enabled nodekubectl taint nodes gpu-node-1 accelerator=nvidia-tesla:NoSchedulePod toleration manifest:
spec: tolerations: - key: "accelerator" operator: "Equal" value: "nvidia-tesla" effect: "NoSchedule"