mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-22 00:02:25 +00:00
Update cheatsheets
This commit is contained in:
21
kubectl-taint
Normal file
21
kubectl-taint
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
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/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}}-`
|
||||
Reference in New Issue
Block a user