Unverified Commit af1709cf authored by Marc Cornellà's avatar Marc Cornellà Committed by GitHub
Browse files

kubectl: use kubectl to define aliases

This prevents conflicts with other utilities named k (see #6408).
parent 1691cf8a
...@@ -14,53 +14,53 @@ fi ...@@ -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'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment