100. 如何在集群 API(CAPI)暂停时恢复

张开发
2026/4/21 21:53:51 15 分钟阅读

分享文章

100. 如何在集群 API(CAPI)暂停时恢复
Environment 环境Rancher 2.x.x 牧场主 2.x.xDownstream cluster RKE2 / K3S下游集群 RKE2 / K3SSituation 地理位置The Rancher UI displays Updating Statefor the downstream cluster, which is a symptom of a stalled reconciling. Inspection of the provisioning logs reveals the specific cause: the cluster reconciliation is currently stuck at the log message[INFO ] CAPI cluster or RKEControlPlane is paused.Rancher 界面显示下游集群的“更新状态”这是对账卡住的症状。检查配置日志揭示了具体原因集群对账目前卡在日志消息[INFO ] CAPI cluster or RKEControlPlane is paused。Resolution 结局The cluster can be unpaused using the steps outlined below, allowing reconciliation to proceed. Following steps has to be performed from the local cluster CLI可以通过以下步骤解除集群的暂停以便进行对和。需要从本地集群 CLI 执行以下步骤Identify the cluster name识别集群名称span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcodekubectl get cluster -A/code/span/span/spanPatch the cluster object and set thepausedfield tofalse.修补集群对象并将暂停字段设置为false。span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcodekubectl patch cluster cluster-name -n fleet-default --type merge -p {spec:{paused:false}}/code/span/span/spanVerify the Cluster provisioning logs from Rancher UI从 Rancher UI 核实集群配置日志Cause 病因The message[INFO ] CAPI cluster or RC Control Plane is pausedindicates that either a CAPI (Cluster API) cluster or the Kubernetes control plane is in a paused state, meaning reconciliation is intentionally stopped to prevent changes. This can happen manually, often for tasks like backups, removing any task from cluster config, or as a result of a cluster issue that needs to be manually addressed before the control plane can resume normal operations.该消息[INFO ] CAPI cluster or RC Control Plane is paused表明CAPI集群 API集群或 Kubernetes 控制平面处于暂停状态这意味着有意停止对账以防止更改。这可以手动完成通常是备份 、从集群配置中移除任务或是集群问题需要手动解决后控制平面才能恢复正常操作。访问Rancher-K8S解决方案博主企业合作伙伴 https://blog.csdn.net/lidw2009

更多文章