-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 127.0.0.1:6443 was refused - did you specify the right host or port? #5423
Comments
Is the k3s service crashing and being restarted? |
I also have the same issue, I was following the instructions here, and tried to install and uninstall it, though in my case I am doing it in raspberry pi, with Ubuntu 22.04 and the outcome is always the same. ubuntu@loadgenerator001:~$ sudo kubectl get nodes After a lot of digging I found my answer here: And by doing this my problem vanished: Make sure to check the logs, I was having an error message: Also, in my case I was caught on the corner while following these instructions: In particular this one: I went to another error, this time due to a mismatch between the cgroups, the issue is reported here: My platform is a raspberry pi 4B I hope this can help others trying to find information |
If you are using a Raspi4 add this to the end of the line inside /boot/cmdline.txt (without the quotes) reboot and give it a try |
Up - Please
|
Is K3s running? |
systemctl status k3s.service |
nov. 01 00:57:49 PC-AMD sh[75182]: + /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service |
|
Please attach the full service logs. |
The file is very long, thank you. I put the last lines, I think the concern is in it. logs
|
yes, that was why I asked you to attach it instead of pasting it in.
There appears to be just this one pretty self-explanatory error message repeating every time. Please check the token you've configured on the CLI or in the config file, and make sure that it matches one of the requested formats. |
This fixed it for me! Thank you! |
I had this issue as well. (on RHEL 8.7) Hope this helps someone else. I looked for a solution online but only deep dive of logs told me what was wrong. |
Hi I have installed Docker Desktop in Windows 11 pro and enabled Kubernetes as well . While running kubectl get node i am getting error as below sateesh@Sateesh: Can you please help here |
@sateesh5 you don't appear to be using K3s so I'm not sure how we can help. |
I've been banging my head against a wall for a few days looking for this solution. Thank you! |
Closing as it looks like there's a sufficient workaround for this issue |
K3s Version:
k3s version v1.20.15+k3s1 (c7a91e1)
Node(s) CPU architecture, OS, and Version:
Linux k3s-master 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration:
single node
Describe the bug:
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?
Steps To Reproduce:
After installing K3S and executing the command, the following prompt will appear, and it is occasional:
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?
The text was updated successfully, but these errors were encountered: