如何添加工作节点[TLS握手超时]?

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

我有一台基于 ubuntu 的主机,其中运行着 microk8s 集群。

我想添加一个 rpi 作为工作节点。

microk8s join
工作并回复

Waiting for this node to finish joining the cluster. .. .. .. .. .. .. .. .. .. ..
Successfully joined the cluster.

但是在工作节点上运行

microk8s kubectl get nodes
显示 TLS 握手存在问题:

E0906 17:40:05.487052   89509 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:16443/api?timeout=32s": net/http: TLS handshake timeout

此外,在主节点上,列出节点时仅显示主节点。当尝试从主服务器上的工作程序访问端口时,一切似乎都很好(

nc
给出
Connection to 10.0.0.101 16443 port [tcp/*] succeeded!
)。

有什么想法这里出了什么问题吗?

kubernetes ssl kubectl microk8s kubernetes-cluster
1个回答
0
投票

好吧,如果工作正常,完全是我的错。我只是在工作节点上执行

--worker
命令时忘记了
join
标志。

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