解决 Cilium 报错 Cluster Mesh control plane sync failed 跨集群同步失败修复
排查 Cilium 跨集群服务网格 Cluster Mesh 报 failed to synchronize with remote cluster kvstore,分析 etcd TLS 证书与端口连通性。
问题现象
两套 Kubernetes 集群启用 Cilium Cluster Mesh 后,无法发现跨集群服务,cilium clustermesh status 报错:
Error: Remote cluster cluster-2 connection is degraded: remote etcd is unavailable
remote error: tls: bad certificate
触发根因
- 两个独立集群之间的 Cluster Mesh 专用外部 etcd(clustermesh-apiserver)TLS 证书未建立双向互信;
- 跨集群 NodePort 或 LoadBalancer 的 2379 通信端口被云安全组拦截。
解决步骤
使用 cilium CLI 工具执行双向证书与连接自动同步
在控制端运行互信命令:
cilium clustermesh connect --context cluster-1 --destination-context cluster-2
验证跨集群端点端口连通性
确保两集群节点能互相访问对方的 clustermesh-apiserver 端口:
nc -zvw 3 198.51.100.20 2379
验证确认
检查跨集群网格同步状态:
cilium clustermesh status
输出 Global services: 12 ready, All clusters connected (2/2),跨多集群透明网络打通。


