-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
The connection to the server localhost:8080 was refused - did you specify the right host or port? #3862
Comments
The agent does not have a copy of the admin kubeconfig. If you want it, you should copy it off a server node. |
But BTW I can not find ~./kube/config in my agent. |
No, as I said the agent won't have a kubeconfig. You need to copy it off the server. |
Thank you man, I am done, what I did. server
Client
|
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 180 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. |
I tried the suggested solution, it does not work for me. |
@puppeteer701 where are you receiving this error? What did you try doing? As noted above, this is the error you will get if you are not using the K3s kubeconfig, and kubectl is instead trying to connect to Kubernetes on the default ports. |
I resolve this error with using this |
I tried to build my Agent for the first time.
I run my system on VirtualBox. and install K3OS and set the machine as "Agent" while I built my master use "Ubuntu"
I have 2 interfaces for each of my systems, master, and agents as well. eth0 for both machines I set as a private IP address, while eth1 as public, which I NAT them, so they can connect to the internet. for networking has no issues.
I built the master and try to run, and it is working fine
but when I do the same command to my agent I got this error message.
what is the problem ? do I need to open the 8080 port on my client? do I need to Install the same operating system between Master and client?
thank you.
The text was updated successfully, but these errors were encountered: