-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Error] Getsockopt: connection refused - Kubernetes apiserver #2249
Comments
Hey @Tedezed, try to change 443 to 6443 (under |
Before you do that, take a look if you can list cluster nodes from the master node. If you can, then the problem can be in iptables. |
Hi @ingvagabund, thanks for your reply. Yes, the master can list nodes. I modify:
to
or only |
In that case, the port can stay as it is. I am not much into networking but usually I have resolved very similar issue by introducing additional iptables rule on the master node:
|
It's a good idea, but keep the error: connection refused My test:1 - Iptables:
OR
Log traefik-ingress-controller
2 - Deploy with port 6443Edit
Does not the port change?
Log traefik-ingress-controller
Try this |
I had the same issue. Can you check your iptables FORWARD policy,
You'll also need to edit kube-proxy and add I opened kubernetes/kubernetes#39823 for k8s to better handle this. |
One thing I've found that causes this if you change your TLS certificates on your apiserver(s), you'll need to refresh the service accounts as they'll now contain invalid tokens.
|
Add
@jpiper I guess I have to re-create the serviceaccount for
|
@Tedezed You may also assert that kernel parameters bridge-nf-call-iptables and bridge-nf-call-arptables is set to the value of 1 cat /proc/sys/net/bridge/bridge-nf-call-iptables If the value is 0, you can set it with: |
@bjornl THX
I try it in CentOS 7 and I have the same problem. |
I managed to run Kubernetes in OpenStack without problems with the following configuration, it although may just be Vagrant's problem. FIle:
|
How to solve it, I met the same problem in traefik.. @Tedezed
|
@zouhuigang I really do not solve it in Vagrant. I recommend you use KVM for your machines. |
@Tedezed thanks ,I've solved it
|
@zouhuigang Great! Thanks for your solution, I will consider your solution for future tests. |
@zouhuigang I had a similar problem that appeared to be caused by the API server silently dying on resource shortages. Once I gave the VM 2 CPU and 2 GB memory it worked. |
I used service networking restart. thanks |
Currently I'm still having these problems when I'm using centos 7.5, k8s 1.10.8 ,kubespray 2.6 and --masquerade-all option off. Any solutions without --masquerade-all option? |
Hey @pmb311 , how did you resize the apiserver's resources? I am using GKE |
Uh oh!
There was an error while loading. Please reload this page.
Environment
Hi friends, I need help to solve this error.
My error:
Reason: Get https://10.254.0.1:443/version: dial tcp 10.254.0.1:443: getsockopt: connection refused
Pods
Service API Kubernetes
Kube-system Errors
DNS
Dashboard
Traefik-ingress-controller
My tests
The text was updated successfully, but these errors were encountered: