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

无法使用代理设置启动 Automation Hub 和 Apps

在 EKS/AKS 上使用代理配置来启动 Automation Hub 和 Apps 失败的解决方案。

描述​

如果您使用代理设置,则在尝试启动 Automation Hub 和 Apps 时可能会遇到问题。

解决方案​

您可以通过执行以下步骤来解决此问题:

  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. 根据您的平台应用正确的配置:
      • 对于 AKS,为 FQDN 定义新的 CoreDNS 区域,如以下示例所示:
        apiVersion: v1
        kind: ConfigMap
        metadata:
          name: coredns-custom
          namespace: kube-system
        data:
          <FQDN>.server: |
            <FQDN>:53 {
                errors
                log
                health
                rewrite stop {
                    name exact <FQDN> 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
            }
        apiVersion: v1
        kind: ConfigMap
        metadata:
          name: coredns-custom
          namespace: kube-system
        data:
          <FQDN>.server: |
            <FQDN>:53 {
                errors
                log
                health
                rewrite stop {
                    name exact <FQDN> 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
            }
        
      • 对于 EKS,仅将重写块添加到现有 CoreDNS Corefile 就足够了:
        rewrite stop {
            name exact <FQDN> istio-ingressgateway.istio-system.svc.cluster.local
        }
        rewrite stop {
            name exact <FQDN> istio-ingressgateway.istio-system.svc.cluster.local
        }
        
  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
    
  6. 您现在应该可以启动 Automation Hub 和 Apps。
  • 描述​
  • 解决方案​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新