2023-10-21 09:32:19 +01:00
|
|
|
# kubectl taint
|
|
|
|
|
2024-01-25 05:28:11 +00:00
|
|
|
> Update the taints on nodes.
|
2023-10-21 09:32:19 +01:00
|
|
|
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#taint>.
|
|
|
|
|
|
|
|
- Apply taint to a node:
|
|
|
|
|
|
|
|
`kubectl taint nodes {{node_name}} {{label_key}}={{label_value}}:{{effect}}`
|
|
|
|
|
|
|
|
- Remove taint from a node:
|
|
|
|
|
|
|
|
`kubectl taint nodes {{node_name}} {{label_key}}:{{effect}}-`
|
|
|
|
|
|
|
|
- Remove all taints from a node:
|
|
|
|
|
|
|
|
`kubectl taint nodes {{node_name}} {{label_key}}-`
|