Adds more aliases to the kubectl plugin

The sources are:

Myself for kga and kgaa
@debovema for kgn
@raybotha for kpf
@DrMegavolt for kgpl
This commit is contained in:
Patrick Stegmann 2018-04-19 11:29:23 +02:00 committed by GitHub
parent 4fec0a46e7
commit 442b659ece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ alias kgp='k get 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 kgpl='function _kgpl(){ label=$1; shift; kgp -l $label $*; };_kgpl'
# Service management. # Service management.
alias kgs='k get svc' alias kgs='k get svc'
@ -51,6 +52,17 @@ alias kgrs='k get rs'
alias krh='k rollout history' alias krh='k rollout history'
alias kru='k rollout undo' 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 # Logs
alias kl='k logs' alias kl='k logs'
alias klf='k logs -f' alias klf='k logs -f'