从rancher2.0上添加工作节点不成功

我已经在rancher 服务器添加了一个节点,节点角色:etcd,control,work,然后执行添加节点,建立了一个主节点(华为云ECS)的集群,该节点创建成功,一切正常。另外,我再阿里ECS服务器增加一个工作节点,角色只有work ,如图:

https://forums.cnrancher.com/uploads/image/fujian/20180907/1536308574682800.png

,然后拷贝脚本,在阿里云的work机器执行脚本,集群提示一个主机加入。但一次提示:

    Registering 状态,并提示:Waiting to register with Kubernetes;同时在工作节点里面发现如下错误:

level=error msg="Failed to connect to proxy" error="websocket: bad handshake"

 [error] 11#11: *871 upstream timed out (110: Operation timed out) while connecting to upstream, client: 127.0.0.1, server: 0.0.0.0:6443, upstream: "192.168.1.189:6443", bytes from/to client:0/0, bytes from/to upstream:0/0

 Attempting to register node k8s-1

2018-09-07T08:28:26.563242755Z E0907 08:28:26.563049   31576 kubelet_node_status.go:103] Unable to register node "k8s-1" with API server: Post https://127.0.0.1:6443/api/v1/nodes: read tcp 127.0.0.1:60838->127.0.0.1:6443: read: connection reset by peer

2018-09-07T08:28:27.847745079Z W0907 08:28:27.847538   31576 cni.go:172] Unable to update cni config: No networks found in /etc/cni/net.d

2018-09-07T08:28:27.847900670Z E0907 08:28:27.847728   31576 kubelet.go:2110] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

2018-09-07T08:28:29.169399871Z E0907 08:28:29.169229   31576 event.go:212] Unable to write event: 'Post https://127.0.0.1:6443/api/v1/namespaces/default/events: read tcp 127.0.0.1:60862->127.0.0.1:6443: read: connection reset by peer' (may retry after sleeping)

2018-09-07T08:28:31.729832882Z E0907 08:28:31.729569   31576 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: an error on the server ("") has prevented the request from succeeding (get pods)

2018-09-07T08:28:31.729851709Z E0907 08:28:31.729569   31576 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:464: Failed to list *v1.Node: an error on the server ("") has prevented the request from succeeding (get nodes)

2018-09-07T08:28:31.729856113Z E0907 08:28:31.729624   31576 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:455: Failed to list *v1.Service: an error on the server ("") has prevented the request from succeeding (get services)

2018-09-07T08:28:32.802271354Z E0907 08:28:32.802077   31576 eviction_manager.go:243] eviction manager: failed to get get summary stats: failed to get node info: node "k8s-1" not found

2018-09-07T08:28:32.856975137Z W0907 08:28:32.856684   31576 cni.go:172] Unable to update cni config: No networks found in /etc/cni/net.d

2018-09-07T08:28:32.856992104Z E0907 08:28:32.856792   31576 kubelet.go:2110] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

2018-09-07T08:28:33.563418930Z I0907 08:28:33.563204   31576 kubelet_node_status.go:269] Setting node annotation to enable volume controller attach/detach

2018-09-07T08:28:33.565748692Z I0907 08:28:33.565589   31576 kubelet_node_status.go:441] Recording NodeHasSufficientDisk event message for node k8s-1

2018-09-07T08:28:33.565765704Z I0907 08:28:33.565634   31576 kubelet_node_status.go:441] Recording NodeHasSufficientMemory event message for node k8s-1

2018-09-07T08:28:33.565769791Z I0907 08:28:33.565645   31576 kubelet_node_status.go:441] Recording NodeHasNoDiskPressure event message for node k8s-1

2018-09-07T08:28:33.565772951Z I0907 08:28:33.565652   31576 kubelet_node_status.go:441] Recording NodeHasSufficientPID event message for node k8s-1



docker 版本都是Docker version 17.03.1-ce, build c6d412e

操作系统都是CentOS Linux release 7.4.1708 (Core) 


错误中提示没有网络,不知道是何原因。查了部分资料,提示阿里对flannel网络的情况,但不明白

   希望能提供帮助

   谢谢

已邀请:

Upstream Timed Out (110: Operation Timed Out) While Connecting To Upstream, Client: 127.0.0.1, Server: 0.0.0.0:6443, Upstream: "192.168.1.189:6443", Bytes From/To Client:0/0, Bytes From/To Upstream:0/0


这个192.168.1.189:6443" 是什么地址?

这个问题怎么解决的啊

要回复问题请先登录注册