Created
August 16, 2020 23:37
-
-
Save erikh/5b4b968f279cf7287b4b49e039e6e0b9 to your computer and use it in GitHub Desktop.
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
if [ -x "$(which kubectl)" ] && [ -d ~/.kube ] | |
then | |
## usage: k <config file> <kubectl command> | |
## config file must exist in ~/.kube | |
k() { | |
config=$1 | |
shift | |
KUBECONFIG=~/.kube/${config} kubectl "$@" | |
} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment