mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
kubectl: add statefulset aliases (#7826)
This commit is contained in:
parent
fb43df128f
commit
c105c04b6b
2 changed files with 19 additions and 0 deletions
|
@ -96,3 +96,12 @@ plugins=(... kubectl)
|
||||||
| kepvc | `kubectl edit pvc` | Edit pvcs from the default editor |
|
| kepvc | `kubectl edit pvc` | Edit pvcs from the default editor |
|
||||||
| kdpvc | `kubectl describe pvc` | Descirbe all pvcs |
|
| kdpvc | `kubectl describe pvc` | Descirbe all pvcs |
|
||||||
| kdelpvc | `kubectl delete pvc` | Delete all pvcs matching passed arguments |
|
| kdelpvc | `kubectl delete pvc` | Delete all pvcs matching passed arguments |
|
||||||
|
| | | |
|
||||||
|
| kgss | `kubectl get statefulset` | List the statefulsets in ps format |
|
||||||
|
| kgssw | `kgss --watch` | After getting the list of statefulsets, watch for changes |
|
||||||
|
| kgsswide| `kgss -o wide` | After getting the statefulsets, output in plain-text format with any additional information |
|
||||||
|
| kess | `kubectl edit statefulset` | Edit statefulset resource from the default editor |
|
||||||
|
| 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 |
|
||||||
|
|
|
@ -96,6 +96,16 @@ alias kgrs='kubectl get rs'
|
||||||
alias krh='kubectl rollout history'
|
alias krh='kubectl rollout history'
|
||||||
alias kru='kubectl rollout undo'
|
alias kru='kubectl rollout undo'
|
||||||
|
|
||||||
|
# Statefulset management.
|
||||||
|
alias kgss='kubectl get statefulset'
|
||||||
|
alias kgssw='kgss --watch'
|
||||||
|
alias kgsswide='kgss -o wide'
|
||||||
|
alias kess='kubectl edit statefulset'
|
||||||
|
alias kdss='kubectl describe statefulset'
|
||||||
|
alias kdelss='kubectl delete statefulset'
|
||||||
|
alias ksss='kubectl scale statefulset'
|
||||||
|
alias krsss='kubectl rollout status statefulset'
|
||||||
|
|
||||||
# Port forwarding
|
# Port forwarding
|
||||||
alias kpf="kubectl port-forward"
|
alias kpf="kubectl port-forward"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue