chore(shell): add alias to switch kube namespaces
This commit is contained in:
parent
73ec9f8f3f
commit
acf6a0d08b
1 changed files with 1 additions and 0 deletions
|
|
@ -16,3 +16,4 @@ alias k=kubectl
|
|||
alias kube-get-url="kubectl cluster-info | grep 'Kubernetes master' | awk '/http/ {print \$NF}'"
|
||||
alias kube-get-cert="kubectl get secret \`kubectl get secrets | grep default-token | cut -d \" \" -f1\` -o jsonpath=\"{['data']['ca\.crt']}\" | base64 --decode"
|
||||
alias kube-get-token="kubectl get secret \`kubectl get secrets | grep default-token | cut -d \" \" -f1\` -o jsonpath=\"{['data']['token']}\" | base64 --decode"
|
||||
alias kube-context="kubectl config set-context --current"
|
||||
|
|
|
|||
Loading…
Reference in a new issue