Skip to content

Commit 119fd7b

Browse files
authored
Merge pull request #34450 from Kwazimolo/patch-1
Updated cheatsheet.md with 'get taints' command
2 parents 7b81b6a + 2f2a4d5 commit 119fd7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/en/docs/reference/kubectl/cheatsheet.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ kubectl cluster-info # Display
381381
kubectl cluster-info dump # Dump current cluster state to stdout
382382
kubectl cluster-info dump --output-directory=/path/to/cluster-state # Dump current cluster state to /path/to/cluster-state
383383

384+
# View existing taints on which exist on current nodes.
385+
kubectl get nodes -o=custom-columns=NodeName:.metadata.name,TaintKey:.spec.taints[*].key,TaintValue:.spec.taints[*].value,TaintEffect:.spec.taints[*].effect
386+
384387
# If a taint with that key and effect already exists, its value is replaced as specified.
385388
kubectl taint nodes foo dedicated=special-user:NoSchedule
386389
```

0 commit comments

Comments
 (0)