Last active
May 21, 2021 08:29
-
-
Save jimmynguyc/3aa4b3ba8a8e9c4a7ee531d8619476de to your computer and use it in GitHub Desktop.
Multi-Session kubectx
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")" | |
cat $HOME/.kube/config > $file | |
export KUBECONFIG="${file}:$HOME/.kube/config" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment