2023-10-21 14:02:19 +05:30
|
|
|
# kubectl taint
|
|
|
|
|
2024-01-25 02:28:11 -03:00
|
|
|
> Update the taints on nodes.
|
2023-10-21 14:02:19 +05:30
|
|
|
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#taint>.
|
|
|
|
|
|
|
|
- Apply taint to a node:
|
|
|
|
|
2025-08-14 06:02:55 +03:00
|
|
|
`kubectl taint {{[no|nodes]}} {{node_name}} {{label_key}}={{label_value}}:{{effect}}`
|
2023-10-21 14:02:19 +05:30
|
|
|
|
|
|
|
- Remove taint from a node:
|
|
|
|
|
2025-08-14 06:02:55 +03:00
|
|
|
`kubectl taint {{[no|nodes]}} {{node_name}} {{label_key}}:{{effect}}-`
|
2023-10-21 14:02:19 +05:30
|
|
|
|
|
|
|
- Remove all taints from a node:
|
|
|
|
|
2025-08-14 06:02:55 +03:00
|
|
|
`kubectl taint {{[no|nodes]}} {{node_name}} {{label_key}}-`
|