mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
kubectl: use kubectl to define aliases
This prevents conflicts with other utilities named k (see #6408).
This commit is contained in:
parent
1691cf8a99
commit
af1709cfdc
1 changed files with 32 additions and 32 deletions
|
@ -14,53 +14,53 @@ fi
|
|||
alias k=kubectl
|
||||
|
||||
# Apply a YML file
|
||||
alias kaf='k apply -f'
|
||||
alias kaf='kubectl apply -f'
|
||||
|
||||
# Drop into an interactive terminal on a container
|
||||
alias keti='k exec -ti'
|
||||
alias keti='kubectl exec -ti'
|
||||
|
||||
# Manage configuration quickly to switch contexts between local, dev ad staging.
|
||||
alias kcuc='k config use-context'
|
||||
alias kcsc='k config set-context'
|
||||
alias kcdc='k config delete-context'
|
||||
alias kccc='k config current-context'
|
||||
alias kcuc='kubectl config use-context'
|
||||
alias kcsc='kubectl config set-context'
|
||||
alias kcdc='kubectl config delete-context'
|
||||
alias kccc='kubectl config current-context'
|
||||
|
||||
# Pod management.
|
||||
alias kgp='k get pods'
|
||||
alias kep='k edit pods'
|
||||
alias kdp='k describe pods'
|
||||
alias kdelp='k delete pods'
|
||||
alias kgp='kubectl get pods'
|
||||
alias kep='kubectl edit pods'
|
||||
alias kdp='kubectl describe pods'
|
||||
alias kdelp='kubectl delete pods'
|
||||
|
||||
# Service management.
|
||||
alias kgs='k get svc'
|
||||
alias kes='k edit svc'
|
||||
alias kds='k describe svc'
|
||||
alias kdels='k delete svc'
|
||||
alias kgs='kubectl get svc'
|
||||
alias kes='kubectl edit svc'
|
||||
alias kds='kubectl describe svc'
|
||||
alias kdels='kubectl delete svc'
|
||||
|
||||
# Ingress management
|
||||
alias kgi='k get ingress'
|
||||
alias kei='k edit ingress'
|
||||
alias kdi='k describe ingress'
|
||||
alias kdeli='k delete ingress'
|
||||
alias kgi='kubectl get ingress'
|
||||
alias kei='kubectl edit ingress'
|
||||
alias kdi='kubectl describe ingress'
|
||||
alias kdeli='kubectl delete ingress'
|
||||
|
||||
# Secret management
|
||||
alias kgsec='k get secret'
|
||||
alias kdsec='k describe secret'
|
||||
alias kdelsec='k delete secret'
|
||||
alias kgsec='kubectl get secret'
|
||||
alias kdsec='kubectl describe secret'
|
||||
alias kdelsec='kubectl delete secret'
|
||||
|
||||
# Deployment management.
|
||||
alias kgd='k get deployment'
|
||||
alias ked='k edit deployment'
|
||||
alias kdd='k describe deployment'
|
||||
alias kdeld='k delete deployment'
|
||||
alias ksd='k scale deployment'
|
||||
alias krsd='k rollout status deployment'
|
||||
alias kgd='kubectl get deployment'
|
||||
alias ked='kubectl edit deployment'
|
||||
alias kdd='kubectl describe deployment'
|
||||
alias kdeld='kubectl delete deployment'
|
||||
alias ksd='kubectl scale deployment'
|
||||
alias krsd='kubectl rollout status deployment'
|
||||
|
||||
# Rollout management.
|
||||
alias kgrs='k get rs'
|
||||
alias krh='k rollout history'
|
||||
alias kru='k rollout undo'
|
||||
alias kgrs='kubectl get rs'
|
||||
alias krh='kubectl rollout history'
|
||||
alias kru='kubectl rollout undo'
|
||||
|
||||
# Logs
|
||||
alias kl='k logs'
|
||||
alias klf='k logs -f'
|
||||
alias kl='kubectl logs'
|
||||
alias klf='kubectl logs -f'
|
||||
|
|
Loading…
Reference in a new issue