LinuxCommandLibrary

kubectl-taint

Update the taints on one or more nodes.

TLDR

Apply taint to a node

$ kubectl taint nodes [node_name] [label_key]=[label_value]:[effect]
copy


Remove taint from a node
$ kubectl taint nodes [node_name] [label_key]:[effect]-
copy


Remove all taints from a node
$ kubectl taint nodes [node_name] [label_key]-
copy

Copied to clipboard