Created
November 24, 2019 03:41
-
-
Save jack4it/7821e8729dff0bb995a2bd596a786859 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
# kubeconfig per session | |
file="$(mktemp -t "kubectx.XXXXXX")" | |
export KUBECONFIG="${file}:${KUBECONFIG}" | |
cat <<EOF >"${file}" | |
apiVersion: v1 | |
kind: Config | |
current-context: "" | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment