Last active
May 27, 2020 03:09
-
-
Save erkolson/ca411be2e6418ae1f9cd117e630b06ed to your computer and use it in GitHub Desktop.
Kubernetes shell shortcuts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias k=kubectl | |
alias kks='kubectl -n kube-system' | |
alias wp='watch kubectl get pods' | |
ctx() { | |
context=$1 | |
if [ -z "$context" ] ; then | |
echo "USAGE: ctx <context-name>" | |
echo "Available contexts:" | |
kubectl config get-contexts | |
else | |
kubectl config use-context $context | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment