Automation Suite
2023.10
False
- 概述
- 要求
- 推荐:部署模板
- 手动:准备安装
- 手动:准备安装
- 步骤 1:为离线安装配置符合 OCI 的注册表
- 步骤 2:配置外部对象存储
- 步骤 3:配置 High Availability Add-on
- 步骤 4:配置 Microsoft SQL Server
- 步骤 5:配置负载均衡器
- 步骤 6:配置 DNS
- 步骤 7:配置内核和操作系统级别设置
- Step 8: Configuring the disks
- 步骤 9:配置节点端口
- 步骤 10:应用其他设置
- 步骤 12:验证并安装所需的 RPM 包
- 步骤 13:生成 cluster_config.json
- 证书配置
- 数据库配置
- 外部对象存储配置
- 预签名 URL 配置
- 符合 OCI 的外部注册表配置
- Disaster Recovery:主动/被动和主动/主动配置
- High Availability Add-on 配置
- 特定于 Orchestrator 的配置
- Insights 特定配置
- Process Mining 特定配置
- Document Understanding 特定配置
- Automation Suite Robot 特定配置
- 监控配置
- 可选:配置代理服务器
- 可选:在多节点 HA 就绪生产集群中启用区域故障恢复
- 可选:传递自定义 resolv.conf
- 可选:提高容错能力
- install-uipath.sh 参数
- 添加具有 GPU 支持的专用代理节点
- 为 Task Mining 添加专用代理节点
- 连接 Task Mining 应用程序
- 为 Automation Suite Robot 添加专用代理节点
- Step 15: Configuring the temporary Docker registry for offline installations
- Step 16: Validating the prerequisites for the installation
- 手动:执行安装
- 安装后
- 集群管理
- 监控和警示
- 迁移和升级
- 特定于产品的配置
- 最佳实践和维护
- 故障排除
如何在升级后从旧安装程序中删除映像
Linux 版 Automation Suite 安装指南
上次更新日期 2024年4月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