Created
June 24, 2021 12:00
-
-
Save blafasel42/1db6a7beb383fff0e6cae3e5e631289d to your computer and use it in GitHub Desktop.
set KUBECONFIG to include all config files in ~/.kube
This file contains hidden or 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
export KUBECONFIG=$(find ~/.kube -mindepth 1 -maxdepth 1 -type f -name config* -printf '%h/%f:') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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...