UiPath Documentation
automation-suite
2.2510
true
EKS/AKS 上的 Automation Suite 安装指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

应用其他配置

创建优先级类,标记命名空间,并在 EKS/AKS 上为 Automation Suite 配置 CoreDNS。

备注:

仅当您无法为 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>
    
重要提示:

优先级类别名称uipath-high-priority为必填项,且无法更改。

要禁用优先级类创建,请在input.json文件中将ignore_priority_class设置为true 。

标记命名空间​

要创建命名空间标签,请运行以下命令:

kubectl label namespace <uipath> uipath-injection=enabled
kubectl label namespace <uipath> istio-injection=enabled
kubectl 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.yaml
    kubectl 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-system
       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-system
    
  3. 创建 coredns-custom 配置映射:

    kubectl apply -f coredns-config.yaml
    kubectl 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-volume
    volumes:
                    - 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 coredns
    kubectl rollout restart deployment -n kube-system coredns
    

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

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

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新