如何在 Rancher 中修复 "Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) [10.xxx.xxx.36]"?

How to fix "Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) [10.xxx.xxx.36]" in Rancher?

当我想通过在 rancher UI 中选择 etcd、Controle Plane 和 Worker 来加入一个节点时,我得到了这个错误:

集群必须至少有一个 etcd 平面主机:无法连接到以下 etcd 主机 [10.xxx.xxx.36]

Click here to see the screenshot

因此 Rancher 无法自动下载提醒 docker 容器(如 etcd、kubectl..),因为 docker 图像应该在代理之前:<proxy_url>

如能帮助解决此问题,我们将不胜感激。提前致谢!

您可以通过在 Rancher UI 的 "Settings" 部分中设置 system-default-registry 参数来定义 Rancher 用于构建下游 Kubernetes 集群的私有注册表。然后当你启动集群时,它应该使用这个注册表来获取图像。这假设您已经将所需的图像复制到此存储库 (example of how to do that)。

由于您已经创建了这个集群,因此您需要重新生成 docker run 命令并重新应用到节点。