We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e85065 commit dc9f8bfCopy full SHA for dc9f8bf
content/en/docs/reference/kubectl/cheatsheet.md
@@ -74,7 +74,7 @@ kubectl config set-context gce --user=cluster-admin --namespace=foo \
74
75
kubectl config unset users.foo # delete user foo
76
77
-# short alias to set/show context/namespace (useful for CKAD/CKA exams)
+# short alias to set/show context/namespace
78
alias kn='f() { [ "$1" ] && kubectl config set-context --current --namespace $1 || kubectl config view --minify | grep namespace | cut -d" " -f6 ; } ; f'
79
alias kx='f() { [ "$1" ] && kubectl config use-context $1 || kubectl config current-context ; } ; f'
80
```
0 commit comments