Skip to content

Commit 8dd6fa6

Browse files
authored
--all-namespaces shorthand
As a beginner to kubectl, I must have typed (and re-typed due to typos) --all-namespaces many hundreds of times before I stumbled across the -A shorthand notation for this. I sincerely would be grateful on behalf of all kubectl beginners if this very useful cheat could be added to this cheatsheet. I have proposed in this PR a location quite near the beginning of the cheatsheet for this so that it is very hard to miss.
1 parent 2cb3079 commit 8dd6fa6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

content/en/docs/reference/kubectl/cheatsheet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ complete -F __start_kubectl k
3838
source <(kubectl completion zsh) # setup autocomplete in zsh into the current shell
3939
echo "[[ $commands[kubectl] ]] && source <(kubectl completion zsh)" >> ~/.zshrc # add autocomplete permanently to your zsh shell
4040
```
41+
### A Note on --all-namespaces
42+
43+
Appending --all-namespaces happens frequently enough where you should be aware of the shorthand for --all-namespaces:
44+
45+
```kubectl -A```
4146

4247
## Kubectl context and configuration
4348

0 commit comments

Comments
 (0)