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
Ohmyzsh
Commits
2596aef8
Unverified
Commit
2596aef8
authored
Jan 07, 2019
by
Yusuf Kocaman
Browse files
added change namespace and rolling restart functions for kubectl
parent
a2995014
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/kubectl/kubectl.plugin.zsh
View file @
2596aef8
...
...
@@ -59,6 +59,7 @@ alias kgns='kubectl get namespaces'
alias
kens
=
'kubectl edit namespace'
alias
kdns
=
'kubectl describe namespace'
alias
kdelns
=
'kubectl delete namespace'
alias
kcn
=
'kubectl config set-context $(kubectl config current-context) --namespace'
#change namespace
# ConfigMap management
alias
kgcm
=
'kubectl get configmaps'
...
...
@@ -80,6 +81,10 @@ alias kdd='kubectl describe deployment'
alias
kdeld
=
'kubectl delete deployment'
alias
ksd
=
'kubectl scale deployment'
alias
krsd
=
'kubectl rollout status deployment'
# Recreate all pods in deployment with zero-downtime
kres
(){
kubectl
set env
$@
REFRESHED_AT
=
$(
date
+%Y%m%d%H%M%S
)
}
# Rollout management.
alias
kgrs
=
'kubectl get rs'
...
...
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