-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Namespaces list is empty #1358
Comments
@morigs Something else must be going on... What happens if you list other resources? Also could you include k9s debug logs? Tx! |
Hello, @derailed . Other resources are working well, except for nodes. Logs
This looks like a permissions issue. However, |
@morigs Can u give v0.25.10 a rinse and see if we're happier? Tx! |
It looks like nothing has changed 😞 |
This version (v0.25.10) breaks it for me. I do not have access to list namespaces or nodes so I learned the blind way :ns xxx :po but this version seams to fail to do the namespace change so it keeps being black after :po Downgraded to v0.25.8 and it worked again. Love the tool, keep up the good work. |
@softstuff Thank you!! Let's see if v0.25.12 helps. @morigs I think something else about your cluster setup is throwing k9s off but I can't seem to find a good repro. More details about configs, env and cluster setup could help?? |
@derailed v0.25.12 works fine, still in the dark but the pods pops up. |
@derailed Still the same... Which details can I provide (pls note it's a private cluster)? Maybe I can debug it myself? |
same issue here this morning |
@morigs No sure what's happening on v0.25.12. @softstuff seemed better on this rev. Does it make any difference with v0.25.15? Also do you have rbac policies set on your user? How is kubeconfig configured for your cluster, where does it reside and how are you launching k9s vs kubectl? Tx! |
0.25.15 still the same 😢
All my configs are in the Some differences in kubeconfig between cluster that works fine in k9s and the clusters which dodn't work:
|
@morigs Thank you Igor for the follow up! So I don't think the casing is going to matter however I am dubious about the auth-provider given the inherent privilege issue in the initial logs. Another thing I think would be worth is trying to isolate the use case you've highlighted. ie potential dns issue? does a given non-working cluster using an ip vs domain works? Also to eliminate a casing issues, you could try to rename a non working context with a plain name and see if that makes any difference (tho I would be surprised) ?? or is it any issue with caching ie does your token expires and we fail to renew. Isolating use case between k9s and kubectl on a given context could help shade some light too... |
Ok, I'll try to debug. What's really strange is that kubectl works fine in all cases |
I finished my debugging here. Example
I'll investigate our k8s api-server hereinafter.
|
@morigs You are awesome Igor! Thank you for this great analysis! I think you've highlighted some good issues and bugs in k9s. I think the access review is indeed an issue, along with the crash you'd mentioned above. I'll push a patch up and let's see if we can zero in a bit more on this deal. I'll also add a trace level for debugging access issue on your clusters it won't log everything (for now!) but will help us zero in if that's still a deal after this next drop ie |
AFAICT this isn't currently possible via flags. If you build k9s locally, the hack I do to turn on client-go logging and get per request/response logging is:
This should work like passing -v=99 to kubectl. Of course, you can use lower verbosity levels depending on what you're troubleshooting. The output ends up in a debug log in a temp directory (previously it was part of k9s own log, but when I build off master it's now in a separate file in the same directory). |
No response. Closing... |
Describe the bug
After some version of k9s list of namespaces stopped working. When switching to the view using
:ns
main part of the screen is totally empty, even the header is missing. When I try searching using/
on the screen, K9S crashes with the following logs:To Reproduce
Steps to reproduce the behavior:
:ns
Expected behavior
List of namespaces is shown
Screenshots
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: