Commit c105c04b authored by Jason Schwerberg's avatar Jason Schwerberg Committed by Marc Cornellà
Browse files

kubectl: add statefulset aliases (#7826)

parent fb43df12
...@@ -96,3 +96,12 @@ plugins=(... kubectl) ...@@ -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' ...@@ -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"
......
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