Files
cheatsheet-tldr/tldr/kubectl-taint
2025-10-06 00:19:32 +00:00

22 lines
541 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubectl taint
> Update the taints on nodes.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_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}}-`