-
Notifications
You must be signed in to change notification settings - Fork 158
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
Cluster/context selection and multi-file KUBECONFIG #123
Comments
Hi @thomas-riccardi, thanks for opening this issue. I assume the "cross-file" context selection is something that works out of the box with Context selection makes sense. I think |
Hi @stepanstipl
Yes; that's indeed a little bit surprising for k8s tools developers but it works transparently on kubectl.
Personally I only use |
Just stumbled across this tool as something to investigate, but we also have the same issue; multiple kubeconfig files. |
Addresses multi-file part of #123
Addresses multi-file part of #123
@thomas-riccardi @ryan-dyer-sp Support for both multiple kubeconfig files and selecting context has now been added and is part of the latest 0.5.0 release. Please give it a go and let me know if there are any issues. Cheers 👍 |
@stepanstipl Can confirm it works. Thanks! |
@stepanstipl I confirm this works in our setup, great with kubectx and explicit --context option, thx! (though 0.5.0 broke |
I have access to multiple k8s clusters, they are defined in multiple config files, all pointed-to by the
KUBECONFIG
env var, separated with:
:kubent
doesn't support context selection, it seems to use the default context on the first config file, and if it points to a context defined in another file it fails:ERR Failed to initialize collector: <nil> error="invalid configuration: [context was not found for specified context: bar-context, cluster has no server defined]"
Currently I workaround that by setting the current context and edit KUBECONFIG, that's not ideal.
Ideally:
KUBECONFIG
--context
(alas the standard-c
is already used for something else)The text was updated successfully, but these errors were encountered: