Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find all kubeconfig files available #4245

Open
phk-nord opened this issue Sep 5, 2024 · 0 comments
Open

Find all kubeconfig files available #4245

phk-nord opened this issue Sep 5, 2024 · 0 comments

Comments

@phk-nord
Copy link

phk-nord commented Sep 5, 2024

I use a shell variables to read all yaml in a directory and use kubectx and kubens to switch contexts.

# loads all yaml files in a dir 'config.d' to be used as kubeconfigs
export KUBECONFIG=$(ls -1 ~/.kube/config.d/*.yaml | tr "\n" ":")

# refreshes configs available to kubectl
alias rekube='export KUBECONFIG=$(ls -1 ~/.kube/config.d/*.yaml | tr "\n" ":")'

This usually just works with any application but monokle does have issues and is reading multiple files at once.

Screenshot 2024-09-05 at 19 02 44

Not sure if #3312 could be count as related but it's certainly also about kubeconfig configurations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No Status
Development

No branches or pull requests

1 participant