Updated cheatsheet.md with 'get taints' command

Updated the kubectl cheat sheet (cheatsheet.md) with a command for viewing taints which exists on current nodes.
pull/34450/head
Brandon Richard 2022-06-21 15:04:37 +01:00 committed by GitHub
parent 235c75c66b
commit 2f2a4d5bae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -381,6 +381,9 @@ kubectl cluster-info # Display
kubectl cluster-info dump # Dump current cluster state to stdout
kubectl cluster-info dump --output-directory=/path/to/cluster-state # Dump current cluster state to /path/to/cluster-state
# View existing taints on which exist on current nodes.
kubectl get nodes -o=custom-columns=NodeName:.metadata.name,TaintKey:.spec.taints[*].key,TaintValue:.spec.taints[*].value,TaintEffect:.spec.taints[*].effect
# If a taint with that key and effect already exists, its value is replaced as specified.
kubectl taint nodes foo dedicated=special-user:NoSchedule
```