2025-03-14 21:59:59 -06:00
|
|
|
# kubectl taint
|
|
|
|
|
|
|
|
|
|
> Update the taints on nodes.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_taint>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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}}-`
|