From b809bdcba0f7c21adb414a995c073ad73e9adc7f Mon Sep 17 00:00:00 2001 From: Tennis Smith Date: Mon, 8 Apr 2019 20:01:04 -0500 Subject: [PATCH] Add 'get-contexts' (#13677) Added `kubectl config get-contexts` for completeness --- content/en/docs/reference/kubectl/cheatsheet.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index be4dce189d..32a724d082 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -62,6 +62,7 @@ KUBECONFIG=~/.kube/config:~/.kube/kubconfig2 kubectl config view kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}' kubectl config view -o jsonpath='{.users[].name}' # get a list of users +kubectl config get-contexts # display list of contexts kubectl config current-context # display the current-context kubectl config use-context my-cluster-name # set the default context to my-cluster-name