1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-17 13:55:51 +02:00
tldr/pages/common/kubectl-taint.md

16 lines
457 B
Markdown

# kubectl taint
> Update the taints on nodes.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#taint>.
- Apply taint to a node:
`kubectl taint {{[no|nodes]}} {{node_name}} {{label_key}}={{label_value}}:{{effect}}`
- Remove taint from a node:
`kubectl taint {{[no|nodes]}} {{node_name}} {{label_key}}:{{effect}}-`
- Remove all taints from a node:
`kubectl taint {{[no|nodes]}} {{node_name}} {{label_key}}-`