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

EKS/AKS 上的 Automation Suite 安装指南

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

应用其他配置

注意:仅当您无法为 Automation Suite 安装程序提供管理员权限时,才应用本节中的配置。 如果您可以为安装程序提供所需的权限,则无需应用本节中的配置。

创建优先级类别

要为 UiPath™ 应用程序创建优先级,请执行以下步骤:

  1. 将以下配置保存为 YAML 文件:
    ---
    apiVersion: scheduling.k8s.io/v1
    kind: PriorityClass
    metadata:
      name: uipath-high-priority
    value: 1000000
    preemptionPolicy: PreemptLowerPriority
    globalDefault: false
    description: "Priority class for uipath applications"---
    apiVersion: scheduling.k8s.io/v1
    kind: PriorityClass
    metadata:
      name: uipath-high-priority
    value: 1000000
    preemptionPolicy: PreemptLowerPriority
    globalDefault: false
    description: "Priority class for uipath applications"
  2. 运行以下命令,并将<file_name.yaml>占位符替换为 YAML 文件的实际名称:
    kubectl apply -f <file_name.yaml>kubectl apply -f <file_name.yaml>

标记命名空间

要创建命名空间标签,请运行以下命令:
kubectl label namespace <uipath> uipath-injection=enabled
kubectl label namespace <uipath> istio-injection=enabledkubectl label namespace <uipath> uipath-injection=enabled
kubectl label namespace <uipath> istio-injection=enabled

配置 CoreDNS

如果您使用的是代理设置,则需要更改特定的 CoreDNS 配置,以确保成功安装和运行 Automation Hub 和 Apps。

我们建议将此添加到 CoreDNS 设置中,因为它允许任何使用集群 FQDN 的服务到服务请求绕过负载均衡器,并通过 Istio 进行内部路由。

请按照以下步骤在安装过程中配置集群:

  1. 从正在运行的集群捕获现有的 coredns 配置映射:
    kubectl get configmap -n kube-system coredns -o yaml > coredns-config.yamlkubectl get configmap -n kube-system coredns -o yaml > coredns-config.yaml
  2. 编辑 coredns-config.yaml 文件以将 fqdn 重写附加到配置中。
    1. 将配置映射重命名为 coredns-custom
    2. 将以下代码块添加到 coredns-config.yaml 文件。确保代码块位于 kubernetes cluster.local in-addr.arpa ip6.arp 行之前。
      rewrite stop {
                              name exact <cluster-fqdn> istio-ingressgateway.istio-system.svc.cluster.local
                              }rewrite stop {
                              name exact <cluster-fqdn> istio-ingressgateway.istio-system.svc.cluster.local
                              }
    3. <cluster-fqdn> 替换为实际值。
    完成这些步骤后,您的文件应类似于以下示例:
    apiVersion: v1
                    data:
                    Corefile: |
                    .:53 {
                    errors
                    log
                    health
                    rewrite stop {
                    name exact mycluster.autosuite.com istio-ingressgateway.istio-system.svc.cluster.local
                    }
                    kubernetes cluster.local in-addr.arpa ip6.arpa {
                    pods insecure
                    fallthrough in-addr.arpa ip6.arpa
                    }
                    prometheus :9153
                    forward . /etc/resolv.conf
                    cache 30
                    loop
                    reload
                    loadbalance
                    }
                    kind: ConfigMap
                    metadata:
                    name: coredns-custom
                    namespace: kube-systemapiVersion: v1
                    data:
                    Corefile: |
                    .:53 {
                    errors
                    log
                    health
                    rewrite stop {
                    name exact mycluster.autosuite.com istio-ingressgateway.istio-system.svc.cluster.local
                    }
                    kubernetes cluster.local in-addr.arpa ip6.arpa {
                    pods insecure
                    fallthrough in-addr.arpa ip6.arpa
                    }
                    prometheus :9153
                    forward . /etc/resolv.conf
                    cache 30
                    loop
                    reload
                    loadbalance
                    }
                    kind: ConfigMap
                    metadata:
                    name: coredns-custom
                    namespace: kube-system
  3. 创建 coredns-custom 配置映射:
    kubectl apply -f coredns-config.yamlkubectl apply -f coredns-config.yaml
  4. coredns 中的卷引用替换为 kube-system 命名空间 coredns 部署中的 coredns-custom
    volumes:
                    - emptyDir: {}
                    name: tmp
                    - configMap:
                    defaultMode: 420
                    items:
                    - key: Corefile
                    path: Corefile
                    name: coredns-custom
                    name: config-volumevolumes:
                    - emptyDir: {}
                    name: tmp
                    - configMap:
                    defaultMode: 420
                    items:
                    - key: Corefile
                    path: Corefile
                    name: coredns-custom
                    name: config-volume
  5. 重新启动 coredns 部署,并确保 coredns Pod 正常运行:
    kubectl rollout restart deployment -n kube-system corednskubectl rollout restart deployment -n kube-system coredns

完成这些步骤后,Automation Hub 和 Apps 应在启用代理的环境中成功启动。

  • 创建优先级类别
  • 标记命名空间
  • 配置 CoreDNS

此页面有帮助吗?

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