2025-03-14 21:59:59 -06:00
|
|
|
# kubectl taint
|
|
|
|
|
|
|
|
|
|
> Update the taints on nodes.
|
|
|
|
|
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#taint>.
|
|
|
|
|
|
|
|
|
|
- Apply taint to a node:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`kubectl taint {{[no|nodes]}} {{node_name}} {{label_key}}={{label_value}}:{{effect}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Remove taint from a node:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`kubectl taint {{[no|nodes]}} {{node_name}} {{label_key}}:{{effect}}-`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Remove all taints from a node:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`kubectl taint {{[no|nodes]}} {{node_name}} {{label_key}}-`
|