automation-suite
2024.10
true
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Linux 版 Automation Suite 安装指南

上次更新日期 2025年9月24日

为 Automation Suite Robot 添加专用代理节点

要求

在开始安装 Automation Suite 机器人之前,请确保您满足硬件要求。

  • 在单节点评估安装中,Automation Suite 机器人在主服务器节点上运行。 缓存的包存储在主节点的文件系统中,位于交互式安装程序自动配置的文件夹中。 在单节点评估安装中,为 Automation Suite 机器人添加专用代理节点是可选的。

    注意:在单节点评估安装中,并发 Serverless 作业的数量的上限为 5 个。
  • 在多节点 HA 就绪生产环境中,必须为 Automation Suite 机器人添加专用节点。有关专用节点必须满足的要求的详细信息,请参阅硬件和软件要求

    注意:在多节点 HA 就绪生产安装中,并发无服务器作业的最大数量由节点的资源(CPU/内存)决定。
  • 包缓存至少需要 10GB。

将 Automation Suite 代理节点添加到集群

以下部分说明了如何为 Automation Suite 机器人添加专用代理节点。

步骤 1:配置计算机

步骤 1.1:对磁盘进行分区

为确保磁盘已正确分区,请参阅配置磁盘中的说明。请确保按照代理节点的步骤操作。

步骤 1.2:配置磁盘以进行包缓存
选项 A
如果您在安装期间启用了包缓存,则必须在主机的文件系统上的/uipath_asrobots_package_cache位置或通过cluster_config.json/packagecachefolder配置的自定义路径配置一个文件夹。 该文件夹必须至少有 10GB 的可用空间,否则安装将失败。
选项 B
或者,您可以为configureUiPathDisks脚本配置单独的磁盘,该脚本可以配置磁盘和路径:
./bin/uipathctl rke2 disk --robot-package-disk-name [DISKNAME] --robot-package-path /uipath_asrobots_package_cache./bin/uipathctl rke2 disk --robot-package-disk-name [DISKNAME] --robot-package-path /uipath_asrobots_package_cache
备注:
--robot-package-path参数是可选参数。 如果未设置,则参数默认为/uipath_asrobots_package_cache
如果您修改cluster_config.json/packagecachefolder的默认值,请确保传递给--robot-package-path参数的值与配置的值匹配。
步骤 1.3:为 Serverless Robot 配置节点

When configuring a node for serverless robots, the setup depends on how the node is added to the cluster:

Option A: Add a dedicated ASR node

If you add a new node to the cluster as a dedicated ASR node, the required labels and taints are automatically applied. Run the following command:

./bin/uipathctl rke2 install -i ./cluster_config.json -o ./output.json -k -j asrobots --accept-license-agreement./bin/uipathctl rke2 install -i ./cluster_config.json -o ./output.json -k -j asrobots --accept-license-agreement
The command automatically adds the following:
  • taint: serverless.robot=present:NoSchedule
  • labels: serverless.robot=true and serverless.daemon=true

Option B: Use an existing agent node

If you want to repurpose an already configured agent node (not configured by default as ASR), you must manually add the labels, taints, and configure the package cache disk. Run the following commands to configure the node manually:

  1. Add a taint for serverless robots:

    kubectl taint nodes [NODE_NAME] serverless.robot=present:NoSchedulekubectl taint nodes [NODE_NAME] serverless.robot=present:NoSchedule
  2. Add the labels for serverless robots:
    kubectl label nodes [NODE_NAME] serverless.robot=true serverless.daemon=truekubectl label nodes [NODE_NAME] serverless.robot=true serverless.daemon=true

步骤 2:将交互式安装程序复制到目标计算机

要将交互式安装程序复制到目标计算机,请执行以下步骤:

  1. 通过 SSH 连接到正确的计算机:
    • 如果您已将 Automation Suite 机器人添加到单节点评估安装,请转到主机。
    • 如果您已将 Automation Suite 机器人添加到多节点 HA 就绪生产安装,请转到任何服务器节点。
  2. UiPathAutomationSuite 文件夹的内容 复制到 Automation Suite Robot 节点。确保使用特定于 Automation Suite Robot 节点的 用户名和 DNS。
    sudo su -
    scp -r /opt/UiPathAutomationSuite <username>@<node dns>:/opt/
    scp -r ~/* <username>@<node dns>:/opt/UiPathAutomationSuite/sudo su -
    scp -r /opt/UiPathAutomationSuite <username>@<node dns>:/opt/
    scp -r ~/* <username>@<node dns>:/opt/UiPathAutomationSuite/

步骤 3:运行交互式安装程序以配置专用节点

要配置专用节点,请执行以下步骤:

  1. 通过 SSH 连接到 Automation Suite 机器人节点。
  2. 运行 Automation Suite 交互式安装程序。
    sudo su -
    cd /opt/UiPathAutomationSuite
    yum install unzip jq -y
    CONFIG_PATH=/opt/UiPathAutomationSuite/cluster_config.json 
    
    ./bin/uipathctl rke2 install -i ./cluster_config.json -o ./output.json -k -j asrobots --accept-license-agreementsudo su -
    cd /opt/UiPathAutomationSuite
    yum install unzip jq -y
    CONFIG_PATH=/opt/UiPathAutomationSuite/cluster_config.json 
    
    ./bin/uipathctl rke2 install -i ./cluster_config.json -o ./output.json -k -j asrobots --accept-license-agreement

步骤 4:启用 kubectl

要在 Automation Suite 机器人计算机上设置 kubectl 上下文,请运行以下命令:

sudo su -
export KUBECONFIG=/var/lib/rancher/rke2/agent/kubelet.kubeconfig
export PATH=$PATH:/var/lib/rancher/rke2/bin
kubectl get nodessudo su -
export KUBECONFIG=/var/lib/rancher/rke2/agent/kubelet.kubeconfig
export PATH=$PATH:/var/lib/rancher/rke2/bin
kubectl get nodes

您应该会看到节点及其相应的名称。 在下一步中,您需要 Automation Suite 机器人节点的名称。

步骤 5:验证 Automation Suite Robot 配置

检查是否已配置 Automation Suite 机器人节点。 确保将<node name>替换为 Automation Suite 机器人节点名称。
kubectl describe node <node name> | grep -i "taints"kubectl describe node <node name> | grep -i "taints"

该命令应返回以下输出:

$ kubectl describe node asrobots0 | grep -i "taints"
Taints:             serverless.robot=present:NoSchedule$ kubectl describe node asrobots0 | grep -i "taints"
Taints:             serverless.robot=present:NoSchedule

至此,您已成功完成 Automation Suite 机器人的安装。

此页面有帮助吗?

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