-
Notifications
You must be signed in to change notification settings - Fork 792
How do I execute the kubectl command on a slave node #3954
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
Comments
Hi @jepson66 By default, MicroK8s worker nodes do not get an admin kubeconfig file. Instead what you can do is grab one from any of the control plane nodes and run kubectl manually, e.g.: Print a kubeconfig file for the admin user by running this command on any of the control plane nodes:
Then manually move this to
Hope this helps! |
OK, thank @neoaggelos, I'll try it. |
@neoaggelos,According to what you said, it is configured, but the slave node still cannot use the kubectl command |
@jepson66 is it possible you have an alias of |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
What should I do if I want to execute the kubectl command on the slave node?
The text was updated successfully, but these errors were encountered: