【发布时间】:2021-06-02 09:25:58
【问题描述】:
我做了 om 主节点的命令
microk8s add-node
From the node you wish to join to this cluster, run the following:
microk8s join 192.168.0.xxx:25000/token
If the node you are adding is not reachable through the default interface you can use one of the following:
microk8s join 192.168.0.yyy:25000/token
microk8s join 192.168.0.xxx:25000/token
microk8s join 172.17.0.1:25000/token
在另一台机器上我做了
microk8s join 192.168.0.xxx:25000/token
Contacting cluster at 192.168.0.xxx
Waiting for this node to finish joining the cluster. .. .. .. .. .. .. .. .. .. ..
它在没有消息的情况下结束,但在主节点命令输出 microk8s.kubectl get no 不显示此节点仅默认节点
【问题讨论】:
-
请执行命令 microk8s status 和 microk8s inspect 进行更深入的检查。您是否打开了防火墙(ufw)?如果是,请考虑允许所有节点 ip,例如:ufw allow from xxx.xxx.xxx.xxx(对包括当前节点在内的所有节点重复)?您的实例实例是否同时具有内部网络和公共网络?有时他们会尝试与错误的人交谈。当你将外部接口拿走时,它会正常工作。
-
现在我将 microk8s 降级到 1.18 并且有节点加入并存在于节点列表中。
标签: kubernetes microk8s