Rancher导入ack群集报错tls: failed to verify certificate: x509: certificate signed by unknown authority

Rancher Server 设置

  • Rancher 版本: [v2.10.3]
  • 安装选项 (Docker install/Helm Chart):
    • 如果是 Helm Chart 安装,需要提供 Local 集群的类型(RKE1, RKE2, k3s, EKS, 等)和版本:
  • 在线或离线部署:

下游集群信息

  • Kubernetes 版本: 1.36.1-aliyun.1
  • Cluster Type (Local/Downstream):
    • 托管

群集的rancher-agent:v2.10.3
(cattle-cluster-agent) 启动报错:
CATTLE_NODE_NAME=cattle-cluster-agent-5c7dbd8d5-7sms4 CATTLE_RANCHER_PROVISIONING_CAPI_VERSION=105.1.0+up0.6.0 CATTLE_RANCHER_WEBHOOK_VERSION=105.0.3+up0.6.4 CATTLE_SERVER=https://rancher-sit.tuomin.com CATTLE_SERVER_VERSION=v2.10.3
INFO: Using resolv.conf: search cattle-system.svc.cluster.local svc.cluster.local cluster.local nameserver 169.254.20.10 nameserver 10.3.144.10 options ndots:3 timeout:1 attempts:2
INFO: https://rancher-sit.tuomin.com/ping is accessible
INFO: rancher-sit.tuomin.com resolves to 120.25.233.243
INFO: Value from https://rancher-sit.tuomin.com/v3/settings/cacerts is an x509 certificate
time=“2026-06-12T09:42:46Z” level=info msg=“Listening on /tmp/log.sock”
time=“2026-06-12T09:42:46Z” level=info msg=“Rancher agent version v2.10.3 is starting”
time=“2026-06-12T09:42:46Z” level=info msg=“Testing connection to https://rancher-sit.tuomin.com using trusted certificate authorities within: /etc/kubernetes/ssl/certs/serverca”
time=“2026-06-12T09:42:46Z” level=error msg="Could not securely connect to https://rancher-sit.tuomin.com: Get “https://rancher-sit.tuomin.com": tls: failed to verify certificate: x509: certificate signed by unknown authority”

有几个问题需要确认下:

  1. 这个 Rancher Server 在最开始创建的时候,就是使用的这个证书么?还是说运行过程中调整过证书?
  2. 正常创建自定义集群是可以的么?

另外,你使用的 rancher 版本是 2.10.3,但是要导入的集群是 1.36,rancher 2.10.3 并不支持这个 K8s 版本,建议还是根据本论坛右上角的支持矩阵去调整 Rancher 或者 K8s 的版本,然后在做后续的操作或者排查。

实际架构: alb负载均衡 443 ,证书配置这里,rancher后端端口:80,所以浏览器正常。

docker 安装
c75ed743-688a-4fbb-8f69-663e3233d9b5

443端口的证书,目前是没有用443端口,用80端口。

如果是这样的架构,在安装 Rancher 的时候,需要启用 --no-cacerts 参数,然后在 alb 上终止证书

(帖子已被作者删除)