简体   繁体   English

牧场主卡在等待注册 Kube.netes

[英]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?有谁知道如何解决它?

This is the screenshot with the error这是有错误的截图

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.

相关问题 GCP 中的 Kube.netes PersistentVolume 问题(部署停留在待定状态) - Kubernetes PersistentVolume issues in GCP ( Deployment stuck in pending ) Flutter 中的 StreamBuilder 卡在 ConnectionState.waiting 中,仅显示加载标记 - StreamBuilder in Flutter stuck with ConnectionState.waiting and displays only the loading mark Kube.netes 挑战等待 http-01 传播:拨打 tcp:没有这样的主机 - Kubernetes challenge waiting for http-01 propagation: dial tcp: no such host 扩展 AWS 后,Kube.netes pod 卡住了。 卷的多重附加错误 - Kubernetes pods are stuck after scale up AWS. Multi-Attach error for volume 使用 Docker 图像在 Kube.netes 中部署服务时卡在“使用 pid: 7 启动工作程序”,这里似乎有什么问题? - Stuck on "Booting worker with pid: 7" while deploying a service in Kubernetes using Docker image, What seems to be the problem here? ElasticBeanstalk 工作环境卡在“等待 EC2 实例启动。这可能需要几分钟时间。” 然后超时 - ElasticBeanstalk worker environment stuck in "Waiting for EC2 instances to launch. This may take a few minutes." and then times out 无法将寄存器移动到寄存器 - Cannot move a register to a register 使用 Rancher OS 运行 docker-compose - Running docker-compose with Rancher OS Redshift 卡在调整大小模式? - Redshift stuck in resize mode? 等待 NDB 中的事务完成 - Waiting till a transaction completes in NDB
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM