每次在Ubuntu 16.04中kubeadm join命令都会超时 [英] kubeadm join command gets timed out every time in Ubuntu 16.04
问题描述
我正在使用Ubuntu 16.04(Xenial),但是在将nodes
联接到我的master
时,我遇到了kubeadm
的问题:
I am using Ubuntu 16.04 (Xenial) but here's a problem which I face with kubeadm
while joinig nodes
to my master
:
将node
加入我的master
时,我不断遇到超时问题-
While joining a node
to my master
, I continuouly get a timeout issue -
[discovery] Failed to request cluster info, will try again: [Get
https://{{MASTER_IP}}/api/v1/namespaces/kube-
public/configmaps/cluster-info: dial tcp {{MASTER_IP}}: i/o timeout]
[discovery] Failed to request cluster info, will try again: [Get
https://{{MASTER_IP}}/api/v1/namespaces/kube-
public/configmaps/cluster-info: dial tcp {{MASTER_IP}}: i/o timeout]
注意:我故意将我的IP地址更改为{{MASTER_IP}},但这只是主服务器的IP地址.
我可以从node
ping master
.我什至可以加入ssh
,但是不能将其加入集群.我还必须提到,我不是在代理后面进行操作(我稍后添加了此内容)
I can ping the master
from my node
. I can even ssh
into it but I can't join it to the cluster. I must also mention that I am not operating behind a proxy (I added this later)
我尝试过使用no_proxy={{MASTER_IP}}
这样的标志.我还尝试使用命令
I have tried with flags like no_proxy={{MASTER_IP}}
. I have also tried initiating the cluster on the master with the command
sudo kubeadm init --apiserver-advertise-address={{MASTER_IP}}
我可能在哪里出错?请帮助大家!!
P.S. -我已经解决了与此相关的git问题.我曾尝试过他们的解决方案,但徒劳无功.这是其中一个的链接- https://github.com/kubernetes/kubernetes/issues/58921
P.S. - I have gone through the git issues which are related to this. I've tried their solutions but in vain. Here's a link to one of them - https://github.com/kubernetes/kubernetes/issues/58921
推荐答案
禁用防火墙对我有用.我可以使用kubeadm join
将Node
机器连接到master
机器.
Disabling the firewall worked for me. I was able to connect my Node
machine to the master
machine using kubeadm join
.
这篇关于每次在Ubuntu 16.04中kubeadm join命令都会超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!