【问题标题】:Set Ingress Gateway NodePort with Isito Operator使用 Isito Operator 设置 Ingress Gateway NodePort
【发布时间】:2021-08-04 21:17:19
【问题描述】:

我正在我的本地 Kubernetes 集群中配置 Istio。作为其中的一部分,我必须与我的系统管理员协调以设置 DNS 和负载平衡器资源。

我在学习和设置 Istio 的工作中发现,我需要完全卸载它并重新安装它。 当我这样做时,Istio 将为 Ingress Gateway 选择一个新端口。这需要我与系统管理员协调更新。

如果我可以强制 Istio 继续使用相同的端口会很方便。

我正在使用 Istio Operator 来管理 Istio。 有没有办法使用 Istio Operator 设置 Ingress Gateway 的 NodePort?

【问题讨论】:

    标签: kubernetes istio istio-gateway istio-operator


    【解决方案1】:

    在您的 Istio 操作员 yaml 中,您可以定义/覆盖入口网关设置(入口网关定义的 k8s 部分)

    https://istio.io/latest/docs/reference/config/istio.operator.v1alpha1/#KubernetesResourcesSpec

    例如:

    components: 
        ingressGateways:
          - name: istio-ingressgateway
            enabled: true
            k8s:
              service:
                ports:
                  - name: status-port
                    port: 15021
                  - name: tls-istiod
                    port: 15012
                  - name: tls
                    port: 15443
                    nodePort: 31371
                  - name: http2
                    port: 80
                    nodePort: 31381
                    targetPort: 8280
                  - name: https
                    port: 443
                    nodePort: 31391
                    targetPort: 8243
    

    【讨论】:

    • 我只想指定用于正常 http 流量的 NodePort。我是否也必须选择所有其他端口?
    猜你喜欢
    • 1970-01-01
    • 2020-01-23
    • 2020-01-09
    • 2019-02-20
    • 1970-01-01
    • 1970-01-01
    • 2020-01-31
    • 1970-01-01
    • 2020-05-19
    相关资源
    最近更新 更多