Add more kubectl aliases

* Add the alias `kd` for `kubectl describe`
 * Add the alias `kg` for `kubectl get`
This commit is contained in:
Mirco Haug 2020-04-23 16:23:02 +02:00
commit 1ceaebb586
2 changed files with 4 additions and 0 deletions

View file

@ -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 |