1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 22:00:08 +00:00

added change namespace and rolling restart functions for kubectl

This commit is contained in:
Yusuf Kocaman 2019-01-07 17:24:44 +03:00
parent a29950146b
commit 2596aef866
No known key found for this signature in database
GPG key ID: F44A6293F8D9DD41

View file

@ -59,6 +59,7 @@ alias kgns='kubectl get namespaces'
alias kens='kubectl edit namespace' alias kens='kubectl edit namespace'
alias kdns='kubectl describe namespace' alias kdns='kubectl describe namespace'
alias kdelns='kubectl delete namespace' alias kdelns='kubectl delete namespace'
alias kcn='kubectl config set-context $(kubectl config current-context) --namespace' #change namespace
# ConfigMap management # ConfigMap management
alias kgcm='kubectl get configmaps' alias kgcm='kubectl get configmaps'
@ -80,6 +81,10 @@ alias kdd='kubectl describe deployment'
alias kdeld='kubectl delete deployment' alias kdeld='kubectl delete deployment'
alias ksd='kubectl scale deployment' alias ksd='kubectl scale deployment'
alias krsd='kubectl rollout status deployment' alias krsd='kubectl rollout status deployment'
# Recreate all pods in deployment with zero-downtime
kres(){
kubectl set env $@ REFRESHED_AT=$(date +%Y%m%d%H%M%S)
}
# Rollout management. # Rollout management.
alias kgrs='kubectl get rs' alias kgrs='kubectl get rs'