[kubectl] Added alias for several kubectl commands

This commit is contained in:
Samreen Zarroug 2020-10-22 15:40:05 -04:00
parent 3b1699b595
commit 34f5ef355d
2 changed files with 6 additions and 0 deletions

View file

@ -26,6 +26,9 @@ 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 |
| 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** |
| kgp | `kubectl get pods` | List all pods in ps output format |
| kgpw | `kgp --watch` | After listing/getting the requested object, watch for changes |

View file

@ -34,6 +34,9 @@ alias kcgc='kubectl config get-contexts'
# General aliases
alias kdel='kubectl delete'
alias kdelf='kubectl delete -f'
alias kdelf!='kubectl delete -f --grace-period=0'
alias kd='kubectl describe'
alias kg='kubectl get'
# Pod management.
alias kgp='kubectl get pods'