mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 14:20: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 |
|
||||
| kdeld | `kubectl delete deployment` | Delete the 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 |
|
||||
| kres | `kubectl set env $@ REFRESHED_AT=...` | Recreate all pods in deployment with zero-downtime |
|
||||
| | | **Rollout management** |
|
||||
|
@ -105,7 +106,8 @@ plugins=(... kubectl)
|
|||
| kdss | `kubectl describe statefulset` | Describe statefulset resource in detail |
|
||||
| kdelss | `kubectl delete statefulset` | Delete the 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** |
|
||||
| kdsa | `kubectl describe sa` | Describe a service account in details |
|
||||
| kdelsa | `kubectl delete sa` | Delete the service account |
|
||||
|
|
|
@ -96,6 +96,7 @@ alias ked='kubectl edit deployment'
|
|||
alias kdd='kubectl describe deployment'
|
||||
alias kdeld='kubectl delete deployment'
|
||||
alias ksd='kubectl scale deployment'
|
||||
alias krrd='kubectl rollout restart deployment'
|
||||
alias krsd='kubectl rollout status deployment'
|
||||
kres(){
|
||||
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 kdelss='kubectl delete statefulset'
|
||||
alias ksss='kubectl scale statefulset'
|
||||
alias krrss='kubectl rollout restart statefulset'
|
||||
alias krsss='kubectl rollout status statefulset'
|
||||
|
||||
# Port forwarding
|
||||
|
|
Loading…
Reference in a new issue