[英]rancher stuck Waiting to register with Kubernetes
I use rancher to create an EC2 cluster on aws, and I get stuck in " Waiting to register with Kube.netes " every time, as shown in the figure below.我在aws上使用rancher创建EC2集群,每次都卡在“ Waiting to register with Kube.netes ”,如下图。 You can see the error message "Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s)" on the Nodes page of Rancher UI.在Rancher UI的Nodes页面可以看到“Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s)”的错误信息。 Does anyone know how to solve it?有谁知道如何解决它?
Follow installation guide carefully.请仔细遵循安装指南。
When you are ready to create cluster you have to add node with etcd role.当您准备好创建集群时,您必须添加具有 etcd 角色的节点。
Each node role (ie etcd, Control Plane, and Worker) should be assigned to a distinct node pool.每个节点角色(即 etcd、控制平面和 Worker)都应该分配给一个不同的节点池。 Although it is possible to assign multiple node roles to a node pool, this should not be done for production clusters.尽管可以将多个节点角色分配给一个节点池,但这不应该用于生产集群。
The recommended setup is to have a node pool with the etcd node role and a count of three, a node pool with the Control Plane node role and a count of at least two, and a node pool with the Worker node role and a count of at least two.推荐的设置是拥有一个具有 etcd 节点角色且计数为 3 的节点池,一个具有 Control Plane 节点角色且计数至少为 2 的节点池,以及一个具有 Worker 节点角色且计数为至少两个。
Only after that Rancher is seting up cluster.只有在那之后 Rancher 才会设置集群。
You can check the exact error (either dns or certificate) by logging into the host nodes and seeing the logs of the container (docker logs).您可以通过登录主机节点并查看容器日志(docker 日志)来检查确切的错误(dns 或证书)。
download the keys and try to ssh to the nodes to see more concrete error messages.下载密钥并尝试将 ssh 发送到节点以查看更具体的错误消息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.