task(kubectl): Add HPA and top commands. Default kgp to wide for node info.
This commit is contained in:
parent
0bf70d670a
commit
644c4dd6b3
@ -21,12 +21,18 @@ if [ $commands[kubectl] ]; then
|
|||||||
alias kccc='k config current-context'
|
alias kccc='k config current-context'
|
||||||
|
|
||||||
# Pod management.
|
# Pod management.
|
||||||
alias kgp='k get pods'
|
alias kgp='k get pods -owide'
|
||||||
alias kgpa='k get pods --all-namespaces'
|
alias kgpa='k get pods -owide --all-namespaces'
|
||||||
alias klp='k logs pods'
|
alias klp='k logs pods'
|
||||||
alias kep='k edit pods'
|
alias kep='k edit pods'
|
||||||
alias kdp='k describe pods'
|
alias kdp='k describe pods'
|
||||||
alias kdelp='k delete 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.
|
# Service management.
|
||||||
alias kgs='k get svc'
|
alias kgs='k get svc'
|
||||||
@ -56,6 +62,7 @@ if [ $commands[kubectl] ]; then
|
|||||||
# Node management
|
# Node management
|
||||||
alias kgn='k get nodes'
|
alias kgn='k get nodes'
|
||||||
alias kdn='k describe nodes'
|
alias kdn='k describe nodes'
|
||||||
|
alias ktn='k top nodes'
|
||||||
|
|
||||||
# Port Forwarding
|
# Port Forwarding
|
||||||
alias kpf='k port-forward'
|
alias kpf='k port-forward'
|
||||||
|
Loading…
Reference in New Issue
Block a user