[英]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?
When i would like to join a node by selecting etcd, Controle Plane and Worker in rancher UI, i got this error:当我想通过在 Rancher UI 中选择 etcd、Controle Plane 和 Worker 来加入节点时,出现此错误:
Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) [10.xxx.xxx.36]集群必须至少有一个 etcd 平面主机:无法连接到以下 etcd 主机 [10.xxx.xxx.36]
Click here to see the screenshot单击此处查看屏幕截图
So Rancher it could not download the remind docker containers (like etcd, kubectl..) automatically since the docker images should be preceded by the proxy: <proxy_url>
因此 Rancher 无法自动下载提醒 docker 容器(如 etcd、kubectl ..),因为 docker 图像应该在代理之前:
<proxy_url>
docker pull <proxy_url>/ubuntu
for downloading ubuntu images.docker pull <proxy_url>/ubuntu
用于下载 ubuntu 图像。 Any help to resolve this would be appreciated.任何解决此问题的帮助将不胜感激。 Thank you in advance!
先感谢您!
You can define a private registry that Rancher should use to build downstream Kubernetes clusters with by setting the system-default-registry
parameter in the "Settings" section of the Rancher UI.您可以通过在 Rancher UI 的“设置”部分中设置
system-default-registry
参数来定义 Rancher 用于构建下游 Kubernetes 集群的私有注册表。 Then when you launch clusters, it should use this registry to fetch the images.然后当你启动集群时,它应该使用这个注册表来获取图像。 This assumes you have already copied the images needed to this repo ( example of how to do that ).
这假设您已经复制了此存储库所需的图像( 如何执行此操作的示例)。
Since you already created this cluster, you'll need to regenerate the docker run
command and reapply to the node.由于您已经创建了此集群,因此您需要重新生成
docker run
命令并重新应用到该节点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.