Skip to content

Instantly share code, notes, and snippets.

@jimmynguyc
Last active May 21, 2021 08:29
Show Gist options
  • Save jimmynguyc/3aa4b3ba8a8e9c4a7ee531d8619476de to your computer and use it in GitHub Desktop.
Save jimmynguyc/3aa4b3ba8a8e9c4a7ee531d8619476de to your computer and use it in GitHub Desktop.
Multi-Session kubectx
# 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