-
Notifications
You must be signed in to change notification settings - Fork 18
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
k8s kubectl takes 12 seconds #1031
Comments
Hi @nobuto-m, Thank you for raising your issue. The difference that you are seeing is likely a consequence of a check that we run before executing the kubectl command. This check looks if the node that you're on is already part of the cluster, if it is not the user is asked to bootstrap the node. This check shouldn't be taking seconds to execute. Is this high execution time reproducible? |
Is there any way to increase the log level to confirm it? Like
It's consistent to me although the system is a bit busy. The context is Sunbeam deployment on top of Canonical K8s. |
Hi @nobuto-m, You can run You can increase the log-level for k8sd to see more details by adding flags to this file:
run Does this point you to the cause? |
Summary
It takes 12 seconds before starting loading kubeconfig.
In the meantime, kubectl snap with a pregenerated kubeconfig takes 2.6 seconds.
And a bare binary takes 0.5 seconds.
What Should Happen Instead?
Just taking less than a few seconds is a fair expectation.
Reproduction Steps
As per above.
System information
k8s v1.32.0 1931 latest/stable canonical✓ classic,held
Can you suggest a fix?
No response
Are you interested in contributing with a fix?
No response
The text was updated successfully, but these errors were encountered: