FahamLah

Commands

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:NoSchedule

Only GPU pods at this stall.