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 acac224 commit 9c83678Copy full SHA for 9c83678
content/en/docs/reference/kubectl/cheatsheet.md
@@ -73,6 +73,9 @@ kubectl config set-context gce --user=cluster-admin --namespace=foo \
73
&& kubectl config use-context gce
74
75
kubectl config unset users.foo # delete user foo
76
+
77
+# short alias to set/show namespace (useful for CKAD/CKA exams)
78
+alias kn='f() { [ "$1" ] && kubectl config set-context --current --namespace $1 || kubectl config view --minify | grep namespace ; } ; f'
79
```
80
81
## Kubectl apply
0 commit comments