Automation Suite
2023.10
False
横幅背景图像
Linux 版 Automation Suite 安装指南
上次更新日期 2024年4月19日

步骤 7:配置内核和操作系统级别设置

此页面介绍了 Linux 管理员在执行 Automation Suite 安装之前必须执行的操作系统和内核设置。

通常,这些设置通过 Puppet、Ansible 等部署工具进行管理。确保通过环境的控制流程进行这些更改,以防止以后还原这些更改。

重要提示:

请确保在开始安装前完成以下步骤,因为操作系统和内核级别的错误配置可能会导致不直观的错误。检查这些特定设置通常可以避免此类错误。

配置 sysctl 设置

The following sysctl settings are required on the machine:
  • 启用 IP 转发

  • 禁用反向路径筛选

您可以通过运行以下命令来执行此操作:

cat <<EOF >>"/etc/sysctl.d/99-sysctl.conf"
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.ipv4.conf.all.rp_filter=0
EOFcat <<EOF >>"/etc/sysctl.d/99-sysctl.conf"
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.ipv4.conf.all.rp_filter=0
EOF
注意:大多数 Kubernetes 部署都需要 nf-call-iptables。Kubernetes 在集群内部创建虚拟网络。在这种情况下,每个 Pod 都可以拥有自己的 IP 地址,通过结合使用该地址与内部名称服务,可促进服务间的通信。如果未启用 nf-call-iptables,集群将无法工作。有关详细信息,请参阅官方 Kubernetes 文档

配置 fapolicy 设置

如果使用 fapolicy,则需要特定于 RKE2 的策略。要生成此策略,请使用以下命令:

cat <<-EOF >>"/etc/fapolicyd/rules.d/69-rke2.rules"
allow perm=any all : dir=/var/lib/rancher/
allow perm=any all : dir=/opt/cni/
allow perm=any all : dir=/run/k3s/
allow perm=any all : dir=/var/lib/kubelet/
EOFcat <<-EOF >>"/etc/fapolicyd/rules.d/69-rke2.rules"
allow perm=any all : dir=/var/lib/rancher/
allow perm=any all : dir=/opt/cni/
allow perm=any all : dir=/run/k3s/
allow perm=any all : dir=/var/lib/kubelet/
EOF
备注:

确保将变更传达给您的 Linux 团队,并采取适当的配置管理流程。

配置 noexec 和 nosuid 设置

The disks used for the /var/lib/rancher mount must not have noexec or nosuid set. The configureUiPathDisks.sh tool automatically creates these mounts without these properties.
重要提示:

如果 Linux 管理员手动设置这些属性,则实例将无法运行。

有关磁盘配置的更多详细信息,请参阅步骤 8:配置磁盘

  • 配置 sysctl 设置
  • 配置 fapolicy 设置
  • 配置 noexec 和 nosuid 设置

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.