kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.53k stars 4.89k forks source link

The connection to the server 10.0.2.15:6443 was refused - did you specify the right host or port? #17859

Closed siddique670 closed 2 weeks ago

siddique670 commented 11 months ago

What Happened?

As per attached below screnshot getting the "connection refused" error.

connection_refuse

Attach the log file

I configured the master node on ubuntu it has installed on VirtualBox -07. As per below ubuntu version.

root@master:~# cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.1 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.1 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy

Docker service is also running fine as per the below screenshot.

image

Container also running fine.

image

Swap is also i did off.

image

IP netsed.

image

systemctl status kubelet.service

image

kubectl config view

image

sudo systemctl restart kubelet.service

image

Please help us with where i am working as per the above issue and attached screenshot, If need any info and logs please let me know.

Operating System

Ubuntu

Driver

VirtualBox

devopsncloud commented 11 months ago

Me too facing the same issue. When we restart it's fine but after a while it's repeating the same.

OleksandrTimoshenko commented 8 months ago

I faced the same issue, with the same symptoms, as described in this topic. I used this Vagrantfile In my case, the problem was with containerd settings. I regenerate the /etc/containerd/config.toml file, and it fixes the problem. containerd config default | sudo tee /etc/containerd/config.toml >/dev/null 2>&1 also if you use Systemd cgroup driver you need to do sudo sed -i 's/SystemdCgroup \= false/SystemdCgroup \= true/g' /etc/containerd/config.toml after that, you can restart the containerd service, and it should help

pythonkid2 commented 7 months ago

@siddique670 Have u found the solution ?

siddique670 commented 7 months ago

@pythonkid2 Issue is still there, it's need to add some rules in ubuntu firewall with port or else?

gu1gzz commented 5 months ago

Same issue, I add the right rules on UFW, but I think it's not the root cause because after reboot the cluster is ok and after sometimes the error appears, and I need to restart the controlplane to "resolve" the problem.

k8s-triage-robot commented 2 months ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 1 month ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot commented 2 weeks ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

k8s-ci-robot commented 2 weeks ago

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to [this](https://github.com/kubernetes/minikube/issues/17859#issuecomment-2459526147): >The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. > >This bot triages issues according to the following rules: >- After 90d of inactivity, `lifecycle/stale` is applied >- After 30d of inactivity since `lifecycle/stale` was applied, `lifecycle/rotten` is applied >- After 30d of inactivity since `lifecycle/rotten` was applied, the issue is closed > >You can: >- Reopen this issue with `/reopen` >- Mark this issue as fresh with `/remove-lifecycle rotten` >- Offer to help out with [Issue Triage][1] > >Please send feedback to sig-contributor-experience at [kubernetes/community](https://github.com/kubernetes/community). > >/close not-planned > >[1]: https://www.kubernetes.dev/docs/guide/issue-triage/ Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.