mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
Add more kubectl aliases
* Add the alias `kd` for `kubectl describe` * Add the alias `kg` for `kubectl get`
This commit is contained in:
parent
2560f04982
commit
1ceaebb586
2 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,8 @@ plugins=(... kubectl)
|
|||
| | | **General aliases** |
|
||||
| kdel | `kubectl delete` | Delete resources by filenames, stdin, resources and names, or by resources and label selector |
|
||||
| kdelf | `kubectl delete -f` | Delete a pod using the type and name specified in -f argument |
|
||||
| kg | `kubectl get` | Get resources by filenames, stdin, resources and names, or by resources and label selector |
|
||||
| kd | `kubectl describe` | Describe resources by filenames, stdin, resources and names, or by resources and label selector |
|
||||
| | | **Pod management** |
|
||||
| kgp | `kubectl get pods` | List all pods in ps output format |
|
||||
| kgpw | `kgp --watch` | After listing/getting the requested object, watch for changes |
|
||||
|
|
|
@ -34,6 +34,8 @@ alias kcgc='kubectl config get-contexts'
|
|||
# General aliases
|
||||
alias kdel='kubectl delete'
|
||||
alias kdelf='kubectl delete -f'
|
||||
alias kg='kubectl get'
|
||||
alias kd='kubectl describe'
|
||||
|
||||
# Pod management.
|
||||
alias kgp='kubectl get pods'
|
||||
|
|
Loading…
Reference in a new issue