mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 07:40:07 +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
|
alias k=kubectl
|
||||||
|
|
||||||
# Apply a YML file
|
# Apply a YML file
|
||||||
alias kaf='k apply -f'
|
alias kaf='kubectl apply -f'
|
||||||
|
|
||||||
# Drop into an interactive terminal on a container
|
# 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.
|
# Manage configuration quickly to switch contexts between local, dev ad staging.
|
||||||
alias kcuc='k config use-context'
|
alias kcuc='kubectl config use-context'
|
||||||
alias kcsc='k config set-context'
|
alias kcsc='kubectl config set-context'
|
||||||
alias kcdc='k config delete-context'
|
alias kcdc='kubectl config delete-context'
|
||||||
alias kccc='k config current-context'
|
alias kccc='kubectl config current-context'
|
||||||
|
|
||||||
# Pod management.
|
# Pod management.
|
||||||
alias kgp='k get pods'
|
alias kgp='kubectl get pods'
|
||||||
alias kep='k edit pods'
|
alias kep='kubectl edit pods'
|
||||||
alias kdp='k describe pods'
|
alias kdp='kubectl describe pods'
|
||||||
alias kdelp='k delete pods'
|
alias kdelp='kubectl delete pods'
|
||||||
|
|
||||||
# Service management.
|
# Service management.
|
||||||
alias kgs='k get svc'
|
alias kgs='kubectl get svc'
|
||||||
alias kes='k edit svc'
|
alias kes='kubectl edit svc'
|
||||||
alias kds='k describe svc'
|
alias kds='kubectl describe svc'
|
||||||
alias kdels='k delete svc'
|
alias kdels='kubectl delete svc'
|
||||||
|
|
||||||
# Ingress management
|
# Ingress management
|
||||||
alias kgi='k get ingress'
|
alias kgi='kubectl get ingress'
|
||||||
alias kei='k edit ingress'
|
alias kei='kubectl edit ingress'
|
||||||
alias kdi='k describe ingress'
|
alias kdi='kubectl describe ingress'
|
||||||
alias kdeli='k delete ingress'
|
alias kdeli='kubectl delete ingress'
|
||||||
|
|
||||||
# Secret management
|
# Secret management
|
||||||
alias kgsec='k get secret'
|
alias kgsec='kubectl get secret'
|
||||||
alias kdsec='k describe secret'
|
alias kdsec='kubectl describe secret'
|
||||||
alias kdelsec='k delete secret'
|
alias kdelsec='kubectl delete secret'
|
||||||
|
|
||||||
# Deployment management.
|
# Deployment management.
|
||||||
alias kgd='k get deployment'
|
alias kgd='kubectl get deployment'
|
||||||
alias ked='k edit deployment'
|
alias ked='kubectl edit deployment'
|
||||||
alias kdd='k describe deployment'
|
alias kdd='kubectl describe deployment'
|
||||||
alias kdeld='k delete deployment'
|
alias kdeld='kubectl delete deployment'
|
||||||
alias ksd='k scale deployment'
|
alias ksd='kubectl scale deployment'
|
||||||
alias krsd='k rollout status deployment'
|
alias krsd='kubectl rollout status deployment'
|
||||||
|
|
||||||
# Rollout management.
|
# Rollout management.
|
||||||
alias kgrs='k get rs'
|
alias kgrs='kubectl get rs'
|
||||||
alias krh='k rollout history'
|
alias krh='kubectl rollout history'
|
||||||
alias kru='k rollout undo'
|
alias kru='kubectl rollout undo'
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
alias kl='k logs'
|
alias kl='kubectl logs'
|
||||||
alias klf='k logs -f'
|
alias klf='kubectl logs -f'
|
||||||
|
|
Loading…
Reference in a new issue