Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
275e5b13
Commit
275e5b13
authored
Mar 10, 2019
by
Ulrich Schreiner
Committed by
Robby Russell
Mar 10, 2019
Browse files
allow kubectl commands against all namespaces (#7637)
* allow kubectl commands against all namespaces * enhance the readme too
parent
e3e0dd59
Changes
2
Show whitespace changes
Inline
Side-by-side
plugins/kubectl/README.md
View file @
275e5b13
...
@@ -14,6 +14,7 @@ plugins=(... kubectl)
...
@@ -14,6 +14,7 @@ plugins=(... kubectl)
| Alias | Command | Description |
| Alias | Command | Description |
|:--------|:------------------------------------|:-------------------------------------------------------------------------------------------------|
|:--------|:------------------------------------|:-------------------------------------------------------------------------------------------------|
| k |
`kubectl`
| The kubectl command |
| k |
`kubectl`
| The kubectl command |
| kca |
`kubectl --all-namespaces`
| The kubectl command targeting all namespaces |
| kaf |
`kubectl apply -f`
| Apply a YML file |
| kaf |
`kubectl apply -f`
| Apply a YML file |
| keti |
`kubectl exec -ti`
| Drop into an interactive terminal on a container |
| keti |
`kubectl exec -ti`
| Drop into an interactive terminal on a container |
| | |
**Manage configuration quickly to switch contexts between local, dev and staging**
|
| | |
**Manage configuration quickly to switch contexts between local, dev and staging**
|
...
...
plugins/kubectl/kubectl.plugin.zsh
View file @
275e5b13
...
@@ -13,6 +13,9 @@ fi
...
@@ -13,6 +13,9 @@ fi
# This command is used a LOT both below and in daily life
# This command is used a LOT both below and in daily life
alias
k
=
kubectl
alias
k
=
kubectl
# Execute a kubectl command against all namespaces
alias
kca
=
'f(){ kubectl "$@" --all-namespaces; unset -f f; }; f'
# Apply a YML file
# Apply a YML file
alias
kaf
=
'kubectl apply -f'
alias
kaf
=
'kubectl apply -f'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment