kubernetes:无法加入节点

问题描述 投票:0回答:1

我创建了一个master,我正在尝试加入一个节点来创建一个集群。当我尝试join命令时,我得到以下错误。两个节点都在同一网络上。该错误消息表明主机不存在路由。我不确定如何建立到主机的路线。任何帮助表示赞赏。

 sudo kubeadm join --token d23afe.14fde99cd03def7e 192.168.178.24:6443 --discovery-token-ca-cert-hash sha256:6a5e2674825e683bbdfe9bab512b03c556bcf89d8648317a64372bb44746bb39
[preflight] Running pre-flight checks.
        [WARNING SystemVerification]: docker version is greater than the most recently validated version. Docker version: 18.02.0-ce. Max validated version: 17.03
        [WARNING FileExisting-crictl]: crictl not found in system path
[discovery] Trying to connect to API Server "192.168.178.24:6443"
[discovery] Created cluster-info discovery client, requesting info from "https://192.168.178.24:6443"
[discovery] Failed to request cluster info, will try again: [Get https://192.168.178.24:6443/api/v1/namespaces/kube-public/configmaps/cluster-info: dial tcp 192.168.178.24:6443: getsockopt: no route to host]

这是sudo路线的输出。不幸的是,我对从这个输出进行故障排除知之甚少

这是输出

`sudo route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.178.1   0.0.0.0         UG    202    0        0 eth0
10.32.0.0       0.0.0.0         255.240.0.0     U     0      0        0 weave
link-local      0.0.0.0         255.255.0.0     U     205    0        0 datapath
link-local      0.0.0.0         255.255.0.0     U     210    0        0 vethwe-datapath
link-local      0.0.0.0         255.255.0.0     U     211    0        0 vethwe-bridge
link-local      0.0.0.0         255.255.0.0     U     212    0        0 vxlan-6784
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
192.168.178.0   0.0.0.0         255.255.255.0   U     202    0        0 eth0

`

kubernetes
1个回答
0
投票

我设法确定了这个问题。问题在于编织网插件。我做了一个拆卸并重新安装插件。然后我就能加入节点了。谢谢大家的建议。

© www.soinside.com 2019 - 2024. All rights reserved.