mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-27 08:10:08 +00:00
feat(kubectl): add aliases for kubectl rollout restart
This commit is contained in:
parent
e32d4b1e19
commit
cf8b85d1d9
2 changed files with 5 additions and 1 deletions
|
@ -70,6 +70,7 @@ plugins=(... kubectl)
|
||||||
| kdd | `kubectl describe deployment` | Describe deployment resource in detail |
|
| kdd | `kubectl describe deployment` | Describe deployment resource in detail |
|
||||||
| kdeld | `kubectl delete deployment` | Delete the deployment |
|
| kdeld | `kubectl delete deployment` | Delete the deployment |
|
||||||
| ksd | `kubectl scale deployment` | Scale a deployment |
|
| ksd | `kubectl scale deployment` | Scale a deployment |
|
||||||
|
| krrd | `kubectl rollout restart deployment` | Rollout restart a deployment |
|
||||||
| krsd | `kubectl rollout status deployment` | Check the rollout status of a deployment |
|
| krsd | `kubectl rollout status deployment` | Check the rollout status of a deployment |
|
||||||
| kres | `kubectl set env $@ REFRESHED_AT=...` | Recreate all pods in deployment with zero-downtime |
|
| kres | `kubectl set env $@ REFRESHED_AT=...` | Recreate all pods in deployment with zero-downtime |
|
||||||
| | | **Rollout management** |
|
| | | **Rollout management** |
|
||||||
|
@ -105,7 +106,8 @@ plugins=(... kubectl)
|
||||||
| kdss | `kubectl describe statefulset` | Describe statefulset resource in detail |
|
| kdss | `kubectl describe statefulset` | Describe statefulset resource in detail |
|
||||||
| kdelss | `kubectl delete statefulset` | Delete the statefulset |
|
| kdelss | `kubectl delete statefulset` | Delete the statefulset |
|
||||||
| ksss | `kubectl scale statefulset` | Scale a statefulset |
|
| ksss | `kubectl scale statefulset` | Scale a statefulset |
|
||||||
| krsss | `kubectl rollout status statefulset`| Check the rollout status of a deployment |
|
| krrss | `kubectl rollout restart statefulset` | Rollout restart a statefulset |
|
||||||
|
| krsss | `kubectl rollout status statefulset`| Check the rollout status of a statefulset |
|
||||||
| | | **Service Accounts management** |
|
| | | **Service Accounts management** |
|
||||||
| kdsa | `kubectl describe sa` | Describe a service account in details |
|
| kdsa | `kubectl describe sa` | Describe a service account in details |
|
||||||
| kdelsa | `kubectl delete sa` | Delete the service account |
|
| kdelsa | `kubectl delete sa` | Delete the service account |
|
||||||
|
|
|
@ -96,6 +96,7 @@ alias ked='kubectl edit deployment'
|
||||||
alias kdd='kubectl describe deployment'
|
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 krrd='kubectl rollout restart deployment'
|
||||||
alias krsd='kubectl rollout status deployment'
|
alias krsd='kubectl rollout status deployment'
|
||||||
kres(){
|
kres(){
|
||||||
kubectl set env $@ REFRESHED_AT=$(date +%Y%m%d%H%M%S)
|
kubectl set env $@ REFRESHED_AT=$(date +%Y%m%d%H%M%S)
|
||||||
|
@ -115,6 +116,7 @@ alias kess='kubectl edit statefulset'
|
||||||
alias kdss='kubectl describe statefulset'
|
alias kdss='kubectl describe statefulset'
|
||||||
alias kdelss='kubectl delete statefulset'
|
alias kdelss='kubectl delete statefulset'
|
||||||
alias ksss='kubectl scale statefulset'
|
alias ksss='kubectl scale statefulset'
|
||||||
|
alias krrss='kubectl rollout restart statefulset'
|
||||||
alias krsss='kubectl rollout status statefulset'
|
alias krsss='kubectl rollout status statefulset'
|
||||||
|
|
||||||
# Port forwarding
|
# Port forwarding
|
||||||
|
|
Loading…
Reference in a new issue