68. Resolving a fleet-agent that is stuck in the Pending-Upgrade state
环境访问Rancher-K8S解决方案博主 https://blog.csdn.net/lidw2009情况The fleet-agent is stuck in a Pending-Upgrade state and showing the following error:代理卡在“待升级”状态显示以下错误span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#f3f3f3time2022-07-19T16:12:08Z levelinfo msgpreparing upgrade for fleet-agent-c-97hcq time2022-07-19T16:12:08Z levelinfo msggetting history for release fleet-agent-c-97hcq time2022-07-19T16:12:08Z levelerror msgerror syncing cluster-fleet-default-c-97hcq-86145229ab95/fleet-agent-c-97hcq: handler bundle-deploy: another operation (install/upgrade/rollback) is in progress, requeuing/span/span/span解决方案Run the following command against the cluster where the fleet-agent is running:span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#f3f3f3kubectl get secret -A -l statuspending-upgrade/span/span/spanIt will show the output of a secret that is causing the pending-upgrade state as follows:span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#f3f3f3NAMESPACE NAME TYPE DATA AGE cattle-fleet-system sh.helm.release.v1.fleet-agent-c-97hcq.v2 a>Based on the above output, run through the following steps:对舰队代理运行的集群执行以下命令 它将显示导致待处理升级状态的秘密输出如下基于上述输出执行以下步骤1. Backup the secret into a yaml file (and save it to a persistent location) for the fleet secret that is causing the pending-upgrade state:1. 将秘密备份到 yaml 文件并保存到持久位置以保存导致待升级状态的车队秘密span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#f3f3f3kubectl get secret -n cattle-fleet-system sh.helm.release.v1.fleet-agent-c-97hcq.v2 -oyaml fleet-agent-c-97hcq.yaml/span/span/span2. Delete the secret:2. 删除秘密span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#f3f3f3kubectl delete secret -n cattle-fleet-system sh.helm.release.v1.fleet-agent-c-97hcq.v2/span/span/span3. In the Rancher UI, go to Continuous Delivery and do a Force Update on the downstream cluster in question3. 在 Rancher 界面中进入持续交付对相关下游集群执行“强制更新”
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2419340.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!