Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
c105c04b
Commit
c105c04b
authored
Jun 15, 2019
by
Jason Schwerberg
Committed by
Marc Cornellà
Jun 15, 2019
Browse files
kubectl: add statefulset aliases (#7826)
parent
fb43df12
Changes
2
Show whitespace changes
Inline
Side-by-side
plugins/kubectl/README.md
View file @
c105c04b
...
...
@@ -96,3 +96,12 @@ plugins=(... kubectl)
| kepvc |
`kubectl edit pvc`
| Edit pvcs from the default editor |
| kdpvc |
`kubectl describe pvc`
| Descirbe all pvcs |
| 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 |
plugins/kubectl/kubectl.plugin.zsh
View file @
c105c04b
...
...
@@ -96,6 +96,16 @@ alias kgrs='kubectl get rs'
alias
krh
=
'kubectl rollout history'
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
alias
kpf
=
"kubectl port-forward"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment