mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 14:20:08 +00:00
[kubectl] Added alias for several kubectl commands
This commit is contained in:
parent
3b1699b595
commit
34f5ef355d
2 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,9 @@ plugins=(... kubectl)
|
||||||
| | | **General aliases** |
|
| | | **General aliases** |
|
||||||
| kdel | `kubectl delete` | Delete resources by filenames, stdin, resources and names, or by resources and label selector |
|
| 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 |
|
| kdelf | `kubectl delete -f` | Delete a pod using the type and name specified in -f argument |
|
||||||
|
| kdelf! | `kubectl delete -f --grace-period=0`| Delete a pod using the type and name specified in -f argument with no grace period |
|
||||||
|
| kd | `kubectl describe ` | General describe |
|
||||||
|
| kg | `kubectl get` | General get |
|
||||||
| | | **Pod management** |
|
| | | **Pod management** |
|
||||||
| kgp | `kubectl get pods` | List all pods in ps output format |
|
| kgp | `kubectl get pods` | List all pods in ps output format |
|
||||||
| kgpw | `kgp --watch` | After listing/getting the requested object, watch for changes |
|
| kgpw | `kgp --watch` | After listing/getting the requested object, watch for changes |
|
||||||
|
|
|
@ -34,6 +34,9 @@ alias kcgc='kubectl config get-contexts'
|
||||||
# General aliases
|
# General aliases
|
||||||
alias kdel='kubectl delete'
|
alias kdel='kubectl delete'
|
||||||
alias kdelf='kubectl delete -f'
|
alias kdelf='kubectl delete -f'
|
||||||
|
alias kdelf!='kubectl delete -f --grace-period=0'
|
||||||
|
alias kd='kubectl describe'
|
||||||
|
alias kg='kubectl get'
|
||||||
|
|
||||||
# Pod management.
|
# Pod management.
|
||||||
alias kgp='kubectl get pods'
|
alias kgp='kubectl get pods'
|
||||||
|
|
Loading…
Reference in a new issue