From 1ceaebb586bc27a8857a51b93e90cb428f7e8796 Mon Sep 17 00:00:00 2001 From: Mirco Haug Date: Thu, 23 Apr 2020 16:23:02 +0200 Subject: [PATCH] Add more kubectl aliases * Add the alias `kd` for `kubectl describe` * Add the alias `kg` for `kubectl get` --- plugins/kubectl/README.md | 2 ++ plugins/kubectl/kubectl.plugin.zsh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/kubectl/README.md b/plugins/kubectl/README.md index c0db59362..b3a42992c 100644 --- a/plugins/kubectl/README.md +++ b/plugins/kubectl/README.md @@ -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 | diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh index 92688c53c..d1dff2b98 100644 --- a/plugins/kubectl/kubectl.plugin.zsh +++ b/plugins/kubectl/kubectl.plugin.zsh @@ -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'