From 2f2a4d5bae9f45392516e521a4570f4f7d730150 Mon Sep 17 00:00:00 2001 From: Brandon Richard <56069278+Kwazimolo@users.noreply.github.com> Date: Tue, 21 Jun 2022 15:04:37 +0100 Subject: [PATCH] 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. --- content/en/docs/reference/kubectl/cheatsheet.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index 3f96fd6e4c..03fbff2f78 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -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 ```