From 644c4dd6b3c755ba24a1abeb072b1892bbe76436 Mon Sep 17 00:00:00 2001 From: Michael Favia Date: Thu, 18 Jan 2018 20:48:01 -0600 Subject: [PATCH] task(kubectl): Add HPA and top commands. Default kgp to wide for node info. --- plugins/kubectl/kubectl.plugin.zsh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh index 4545f60c..db0d75dd 100644 --- a/plugins/kubectl/kubectl.plugin.zsh +++ b/plugins/kubectl/kubectl.plugin.zsh @@ -21,12 +21,18 @@ if [ $commands[kubectl] ]; then alias kccc='k config current-context' # Pod management. - alias kgp='k get pods' - alias kgpa='k get pods --all-namespaces' + alias kgp='k get pods -owide' + alias kgpa='k get pods -owide --all-namespaces' alias klp='k logs pods' alias kep='k edit pods' alias kdp='k describe pods' alias kdelp='k delete pods' + alias ktp='k top pods' + + # Horizontal Pod Autoscaler Management + alias kdhpa='k describe hpa' + alias kehpa='k edit hpa' + alias kdelhpa='k delete hpa' # Service management. alias kgs='k get svc' @@ -56,6 +62,7 @@ if [ $commands[kubectl] ]; then # Node management alias kgn='k get nodes' alias kdn='k describe nodes' + alias ktn='k top nodes' # Port Forwarding alias kpf='k port-forward'