From 442b659ece2fe2c8f1498789531e7be37dcfb317 Mon Sep 17 00:00:00 2001 From: Patrick Stegmann Date: Thu, 19 Apr 2018 11:29:23 +0200 Subject: [PATCH] Adds more aliases to the kubectl plugin The sources are: Myself for kga and kgaa @debovema for kgn @raybotha for kpf @DrMegavolt for kgpl --- plugins/kubectl/kubectl.plugin.zsh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh index 97e429aa..9f2d5f0b 100644 --- a/plugins/kubectl/kubectl.plugin.zsh +++ b/plugins/kubectl/kubectl.plugin.zsh @@ -26,6 +26,7 @@ alias kgp='k get pods' alias kep='k edit pods' alias kdp='k describe pods' alias kdelp='k delete pods' +alias kgpl='function _kgpl(){ label=$1; shift; kgp -l $label $*; };_kgpl' # Service management. alias kgs='k get svc' @@ -51,6 +52,17 @@ alias kgrs='k get rs' alias krh='k rollout history' alias kru='k rollout undo' +# Node management +alias kgn='k get nodes' +alias kdn='k describe node' + +# Tools for accessing all information +alias kga='k get all' +alias kgaa='k get all --all-namespaces' + +# Forward a local port to a pod +alias kpf='k port-forward' + # Logs alias kl='k logs' alias klf='k logs -f'