kubectl taint nodes
kubectl taint nodes <node> key=value:NoSchedule | key:NoSchedule-
Risk: Careful
What it does
Puts a lock on a node. Only pods with the key (a toleration) may come.
When to use it
To keep a node for special pods.
Example
$ kubectl taint nodes dev-worker2 gpu=yes:NoScheduleOnly GPU pods at this stall.
Learn it in: Taints, tolerations and spread · Official docs