new wallpapers, new aliases for kubernetes

This commit is contained in:
2021-08-18 12:13:47 +02:00
parent a97f4e80ec
commit 493f0838fb
6 changed files with 13 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ alias docker-clean-all='stop-dockers && docker-clean-containers && docker-clean-
alias mkubectl='microk8s.kubectl'
alias kubestart='microk8s.start'
alias kubestop='microk8s.stop'
alias kubecontext='kubectl config use-context'
alias kubecontexts='kubectl config get-contexts'
#dotnet core
alias efupdate="dotnet ef database update"
@@ -169,7 +169,7 @@ killport () {
}
# function to switch kubernetes namespace
kubeswitch () {
kubenamespaceswitch () {
if [ -z "$1" ] ; then
echo "please specify a namespace to switch to"
else
@@ -177,6 +177,16 @@ kubeswitch () {
fi
}
# function to switch kubernetes context
kubecontextswitch () {
if [ -z "$1" ] ; then
echo "please specify a context to switch to, the following contexts are available:"
kubectl config get-contexts
else
kubectl config use-context "$1"
fi
}
# function to switch to a different azure kubernetes cluster
azkubeswitch () {
if [ -z "$2" ] ; then