automation-suite
2022.4
false
- 概述
- 要求
- 安装
- 安装后
- 集群管理
- 监控和警示
- 迁移和升级
- 特定于产品的配置
- 最佳实践和维护
- 故障排除
- 无法获取沙盒映像
- Pod 未显示在 ArgoCD 用户界面中
- Redis 探测器失败
- RKE2 服务器无法启动
- 在 UiPath 命名空间中找不到密码
- 初始安装后,ArgoCD 应用程序进入“进行中”状态
- MongoDB Pod 处于 CrashLoopBackOff 状态或在删除后处于“等待 PVC 配置”状态
- 意外错误:不一致;手动运行 fsck
- 集群还原后 MongoDB 或业务应用程序降级
- 缺少 Self-heal-operator 和 Sf-k8-utils 存储库
- 集群还原或回滚后服务不正常
- RabbitMQ Pod 卡在 CrashLoopBackOff 中
- Prometheus 处于 CrashLoopBackoff 状态,并出现内存不足 (OOM) 错误
- 监控仪表板中缺少 Ceph-rook 指标
- Pod 无法在代理环境中与 FQDN 通信
- 使用 Automation Suite 诊断工具
- 使用 Automation Suite 支持捆绑包
- 探索日志
如何在升级后从旧安装程序中删除映像
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。

Automation Suite 安装指南
上次更新日期 2024年12月19日
如何在升级后从旧安装程序中删除映像
如果在执行升级后遇到映像漏洞或存储消耗问题,可以从旧的安装程序中删除映像。
要执行此可选的升级后操作,请执行以下步骤:
-
根据以下脚本中的集群配置更新
IMG
、TAG
、USER
、PASS
、registry
和latest_image_json
,然后运行该脚本:#!/bin/bash ### Please change below variables as required IMG=<E.g. dataservice/dataservice-designer> TAG=<E.g. v20231116-tag> USER=<E.g. "admin"> PASS=<E.g. "password"> registry=<E.g. "registry.mycluster.com"> latest_image_json=<E.g. "/opt/UiPathAutomationSuite/UiPath_Installer/versions/docker-images.json"> #### [[ -f "${latest_image_json}" ]] || { echo "File "$latest_image_json" doesn't exist" exit 1 } cat "${latest_image_json}" | tr -d '",' | grep -w "${IMG}:${TAG}" >> /dev/null && { echo "Image ${IMG}:${TAG} is being used in cluster. Will skip the deletion." exit 0 } echo "Deleting image ${IMG}:${TAG}" cred="-u ${USER}:${PASS}" for i in `curl -k -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' $cred "https://$registry/v2/$IMG/manifests/$TAG" | jq -r '.layers | .[] | .digest'`; do curl -k -H "Accept: application/vnd.docker.distribution.manifest.v2+json" $cred -X DELETE "https://$registry/v2/$IMG/manifests/$i" done for i in `curl -k -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' $cred "https://$registry/v2/$IMG/manifests/$TAG" | jq -r '.config.digest'`; do curl -k -H "Accept: application/vnd.docker.distribution.manifest.v2+json" $cred -X DELETE "https://$registry/v2/$IMG/manifests/$i" done
#!/bin/bash ### Please change below variables as required IMG=<E.g. dataservice/dataservice-designer> TAG=<E.g. v20231116-tag> USER=<E.g. "admin"> PASS=<E.g. "password"> registry=<E.g. "registry.mycluster.com"> latest_image_json=<E.g. "/opt/UiPathAutomationSuite/UiPath_Installer/versions/docker-images.json"> #### [[ -f "${latest_image_json}" ]] || { echo "File "$latest_image_json" doesn't exist" exit 1 } cat "${latest_image_json}" | tr -d '",' | grep -w "${IMG}:${TAG}" >> /dev/null && { echo "Image ${IMG}:${TAG} is being used in cluster. Will skip the deletion." exit 0 } echo "Deleting image ${IMG}:${TAG}" cred="-u ${USER}:${PASS}" for i in `curl -k -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' $cred "https://$registry/v2/$IMG/manifests/$TAG" | jq -r '.layers | .[] | .digest'`; do curl -k -H "Accept: application/vnd.docker.distribution.manifest.v2+json" $cred -X DELETE "https://$registry/v2/$IMG/manifests/$i" done for i in `curl -k -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' $cred "https://$registry/v2/$IMG/manifests/$TAG" | jq -r '.config.digest'`; do curl -k -H "Accept: application/vnd.docker.distribution.manifest.v2+json" $cred -X DELETE "https://$registry/v2/$IMG/manifests/$i" done -
重新启动注册表 Pod 以执行垃圾收集,或在注册表 Pod 中执行并使用以下命令运行垃圾收集:
registry garbage-collect /etc/docker/registry/config.yml
registry garbage-collect /etc/docker/registry/config.yml