-
Notifications
You must be signed in to change notification settings - Fork 1
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
Can't connect to AWS cluster #2
Comments
It's correct that It's also correct that the snap has not the permissions to read inside The easiest way it probably to copy/move the credentials over to |
Unfortunately this does not work because
and even if on startup I see a report on the console that the config files are (linked/copied?) but the k9s-nsg gives the error: I think the root of this problem is that I use separate config file for each cluster and I merge these configs with a KUBECONFIG variable, and k9s cannot handle multiple configfiles separated with
I should figure out how to specify the location of the credentials file for the |
I have never used
Ah, of course.
Linked, I guess multiple files are not supported with vanilla k9s either, derailed/k9s#829 |
By the way, symlinks outside
Now, both |
Ok, I've checked how the aws-iam-authenticator is finding the credentials file, and it seems the location can be overridden with the env variable So as I understand I need to get my credentials file into the
BTW the vanilla k9s can use multiple config files. |
Yes, or just
Yeah, if the
Yes, I just realized that. The linked issue has been updated with more information now. I split my If you like to "jump in" to the snaps environment you can run |
OK,
it still works on my locally installed k9s while the k9s-nsg is still not working. I've jumped in to the snap env and I see that the |
K9s will try to open that file relative to the configuration file. From the point of view of kubectl that's
Are you unable to execute the script? Any messages? |
Add KUBECONFIG and External commands sections from discussion in issue #2. The interface is also auto connected so I added a "may", for the future, possible remove that sentence.
Same here. I have to set I found that https://github.com/snapcrafters/helm and https://snapcraft.io/devoperator |
I'll double @joeky888 opinion. Several development and DevOps tools use classic confinment and so should k9s. I presume it may save a lot of time. |
I can open the minikube cluster, but if I try to open an AWS connection, I got "Boom!! K9s can't connect to cluster."
I suspect that either $KUBECONFIG is ignored, or the aws-iam-authenticator cannot read the ~/.aws/credentials in a confined env, but I don't know much about snaps.
The text was updated successfully, but these errors were encountered: