简体   繁体   English

如何修复 Rancher 中的“集群必须至少有一个 etcd 平面主机:无法连接到以下 etcd 主机 [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?

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>

  • example: 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.

相关问题 如何修复 Laravel Sail“SQLSTATE[HY000] [1130] 主机 'XXX.XXX.XX' 不允许连接到此 MySQL 服务器”错误 - How to fix a Laravel Sail "SQLSTATE[HY000] [1130] Host 'XXX.XXX.X.X' is not allowed to connect to this MySQL server" error 与服务器rancher.xxx.xxx的连接被拒绝 - 您是否指定了正确的主机或端口? - The connection to the server rancher.xxx.xxx was refused - did you specify the right host or port? 拨打 tcp: lookup xxx.xxx.xxx.xxx: no such host - dial tcp: lookup xxx.xxx.xxx.xxx: no such host OSX Docker / WordPress / MySQL —连接错误:(1130)不允许主机“ xxx.xxx.xxx.xxx”连接到此MariaDB服务器 - OSX Docker/WordPress/MySQL — Connection Error: (1130) Host 'xxx.xxx.xxx.xxx' is not allowed to connect to this MariaDB server ETCD群集设置失败 - Etcd cluster setup failure CoreOS / etcd群集最低主机 - CoreOS/etcd cluster minimum hosts 尝试从另一个容器访问mysql Docker容器时出现“不允许主机&#39;192.XXX.XXX.X&#39;连接到该MySQL服务器”错误 - “Host '192.XXX.XXX.X' is not allowed to connect to this MySQL server” error when attempting to access mysql Docker container from another container 如何在Docker中访问etcd - How to access etcd in docker 无法连接到 Kubernetes 的 ETCD - Can't connect to the ETCD of Kubernetes Rancher:在CERTIFICATE_VERIFY_FAILED上向Rancher添加另一个主机失败 - Rancher: Adding another Host to Rancher fails on CERTIFICATE_VERIFY_FAILED
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM