automation-suite
2023.10
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

EKS/AKS 上的 Automation Suite 安装指南

上次更新日期 2025年11月13日

如何卸载 Automation Suite

本节说明如何使用提供的卸载脚本从 EKS/AKS 环境中卸载 Automation Suite。

您将学习如何准备系统、执行脚本、排除问题以及扩展功能以满足自定义要求。

了解脚本和要求

本节让您深入了解卸载脚本,并概述有效使用卸载脚本所需的先决条件。

卸载脚本支持有选择地删除 Automation Suite 组件、空运行模拟、详情输出以及通过命令行标志或 JSON 配置文件排除特定组件的功能。

先决条件

这一小节列出了在环境中必须安装才能成功运行卸载脚本的工具:
  • EKS/AKS:
    • kubectl
    • helm
  • 可选:
    • jq - 用于 JSON 解析

下载和准备脚本

要获取卸载脚本并准备执行,请执行以下步骤:

  1. 下载uninstall.sh脚本。
  2. 通过运行以下命令使脚本可执行:
    chmod +x uninstall.shchmod +x uninstall.sh

运行脚本并使用选项

本节介绍如何运行卸载脚本,包括命令语法、支持的环境和可用标志。

您可以使用以下命令运行脚本:

./uninstall.sh [DISTRIBUTION] [OPTIONS]./uninstall.sh [DISTRIBUTION] [OPTIONS]

您可以根据环境使用以下发行选项:

  • k8s :使用标准 Kubernetes 命令(默认)。
  • openshift :使用 OpenShift 命令和 API。

下表列出了可用于为您的特定环境自定义卸载行为的所有受支持的标志和参数。

选项描述
-h--help显示帮助信息。
-d--dry-run预览更改而不删除任何内容。
-v--verbose启用详细日志记录。
--excluded COMPONENTS要跳过的组件的逗号分隔列表。
--clusterconfig FILE排除项的 JSON 配置文件的路径。
--istioNamespace NAMESPACE覆盖默认的 Istio 命名空间。
--uipathNamespace NAMESPACE覆盖默认的 UiPath 命名空间。
--argocdNamespace NAMESPACE覆盖默认的 ArgoCD 命名空间。

使用基本示例

本节提供简单的示例命令,以帮助您快速开始使用带有最少选项的卸载脚本。

# Exclude istio from deletion in k8s
./uninstall.sh k8s --excluded istio

# Exclude istio and argocd in OpenShift
./uninstall.sh openshift --excluded istio,argocd# Exclude istio from deletion in k8s
./uninstall.sh k8s --excluded istio

# Exclude istio and argocd in OpenShift
./uninstall.sh openshift --excluded istio,argocd

使用高级组合

本节介绍高级示例,这些示例结合了多个选项,可实现更灵活、更强大的卸载方案。

# Dry run to preview changes
./uninstall.sh openshift --dry-run

# Use a JSON config file
./uninstall.sh k8s --clusterconfig input.json

# Custom namespaces
./uninstall.sh openshift --uipathNamespace uipath-prod --istioNamespace custom-istio

# Combined options with verbosity
./uninstall.sh k8s --excluded gatekeeper,falco --clusterconfig input.json --verbose# Dry run to preview changes
./uninstall.sh openshift --dry-run

# Use a JSON config file
./uninstall.sh k8s --clusterconfig input.json

# Custom namespaces
./uninstall.sh openshift --uipathNamespace uipath-prod --istioNamespace custom-istio

# Combined options with verbosity
./uninstall.sh k8s --excluded gatekeeper,falco --clusterconfig input.json --verbose

配置组件和排除项

本节概述脚本管理的组件、如何排除它们,以及要考虑哪些依赖项。

支持的组件

本节列出了卸载脚本能够管理和删除的 Automation Suite 组件:

  • istio - 服务网格组件
  • istio_configure - Istio 配置
  • argocd - ArgoCD 部署
  • uipath - 核心 UiPath 组件
  • cert_manager - 证书管理
  • network_policies - 网络策略
  • gatekeeper - 强制执行 Gatekeeper
  • falco - 强制执行 Gatekeeper

使用配置文件

本节演示如何使用 JSON 文件配置组件排除项。

您可以通过 JSON 排除组件,如下所示:

{
  "exclude_components": [
    "istio",
    "argocd",
    "gatekeeper"
  ]
}{
  "exclude_components": [
    "istio",
    "argocd",
    "gatekeeper"
  ]
}

了解组件依赖项

本节说明组件之间的关系,以帮助您避免在排除特定项目时出现问题。

一些组件依赖于其他组件:

  • 如果保留uipath ,请考虑同时保留istioargocd
  • 如果保留cert_manager ,请考虑也保留uipath

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。