Skip to content

Instantly share code, notes, and snippets.

@blafasel42
Created June 24, 2021 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blafasel42/1db6a7beb383fff0e6cae3e5e631289d to your computer and use it in GitHub Desktop.
Save blafasel42/1db6a7beb383fff0e6cae3e5e631289d to your computer and use it in GitHub Desktop.
set KUBECONFIG to include all config files in ~/.kube
export KUBECONFIG=$(find ~/.kube -mindepth 1 -maxdepth 1 -type f -name config* -printf '%h/%f:')
@blafasel42
Copy link
Author

This will register all files named config* in ~/.kube as kubetenetes config files to use with kubectl. kubectl will merge all these files to a final config. very handy if you work with multiple clusters...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment