Rancher Server 设置
- Rancher 版本:rancher2.6.3
- 安装选项 (Docker install/Helm Chart):
- 在线或离线部署:在线docker部署
下游集群信息
- Kubernetes 版本: v1.21.14-rancher1-1
- Cluster Type (Local/Downstream):
- 如果 Downstream,是什么类型的集群?(自定义/导入或为托管 等):
用户信息
- 登录用户的角色是什么? (管理员/集群所有者/集群成员/项目所有者/项目成员/自定义):管理员
- 如果自定义,自定义权限集:
**主机操作系统:**CentOS Linux release 7.9.2009 (Core)
**问题描述:**rancher报错,ui界面无法创建自定义集群
重现步骤:
docker版本 23.0.1
运行命令:docker run -d --privileged --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:latest
结果:
ui界面能正常访问,但在ui界面创建集群也一直无法成功,界面一直提示“Cluster must have at least one etcd plane host: please specify one or more etcd in cluster config”,查看rancher服务日志一直erro,应该是rancher异常引起了下游集群无法创建成功(运行低版本的rancher无这类问题)
预期结果:
在ui能创建下游集群,并发布服务
截图:
其他上下文信息:
日志
2023/02/16 01:27:57 [INFO] [certificates] Generating kube-etcd-192-168-52-100 certificate and key
2023/02/16 01:27:57 [INFO] cluster [c-chccb] provisioning: Successfully Deployed state file at [management-state/rke/rke-737886933/cluster.rkestate]
2023/02/16 01:27:57 [INFO] cluster [c-chccb] provisioning: Building Kubernetes cluster
2023/02/16 01:27:57 [INFO] cluster [c-chccb] provisioning: [dialer] Setup tunnel for host [192.168.52.100]
2023/02/16 01:27:57 [INFO] cluster [c-chccb] provisioning: [network] Deploying port listener containers
2023/02/16 01:27:57 [INFO] Pulling image [rancher/rke-tools:v0.1.87] on host [192.168.52.100], try #1
2023/02/16 01:28:12 [ERROR] Failed to install system chart fleet: pod cattle-system/helm-operation-59wxn failed, watch closed
2023/02/16 01:28:20 [ERROR] error syncing 'validating-webhook-configuration': handler need-a-cert: services "webhook-service" not found, requeuing
2023/02/16 01:28:20 [ERROR] error syncing 'mutating-webhook-configuration': handler need-a-cert: services "webhook-service" not found, requeuing
2023/02/16 01:28:50 [ERROR] error syncing 'validating-webhook-configuration': handler need-a-cert: services "webhook-service" not found, requeuing
2023/02/16 01:28:50 [ERROR] error syncing 'mutating-webhook-configuration': handler need-a-cert: services "webhook-service" not found, requeuing
2023/02/16 01:29:12 [ERROR] Failed to install system chart fleet-crd: pod cattle-system/helm-operation-w4527 failed, watch closed
2023/02/16 01:29:20 [ERROR] error syncing 'validating-webhook-configuration': handler need-a-cert: services "webhook-service" not found, requeuing
2023/02/16 01:29:20 [ERROR] error syncing 'mutating-webhook-configuration': handler need-a-cert: services "webhook-service" not found, requeuing
2023/02/16 01:29:50 [ERROR] error syncing 'validating-webhook-configuration': handler need-a-cert: services "webhook-service" not found, requeuing
2023/02/16 01:29:50 [ERROR] error syncing 'mutating-webhook-configuration': handler need-a-cert: services "webhook-service" not found, requeuing
2023/02/16 01:30:12 [ERROR] Failed to install system chart fleet: pod cattle-system/helm-operation-f8692 failed, watch closed
2023/02/16 01:30:20 [ERROR] error syncing 'validating-webhook-configuration': handler need-a-cert: services "webhook-service" not found, requeuing
2023/02/16 01:30:20 [ERROR] error syncing 'mutating-webhook-configuration': handler need-a-cert: services "webhook-service" not found, requeuing
2023/02/16 01:30:50 [ERROR] error syncing 'validating-webhook-configuration': handler need-a-cert: services "webhook-service" not found, requeuing
2023/02/16 01:30:50 [ERROR] error syncing 'mutating-webhook-configuration': handler need-a-cert: services "webhook-service" not found, requeuing
2023/02/16 01:31:12 [ERROR] Failed to install system chart fleet-crd: pod cattle-system/helm-operation-m6ffp failed, watch closed