繁体   English   中英

Azure Kubernetes - Istio 多个负载均衡器?

[英]Azure Kubernetes - Istio Multiple Loadbalancers?

我为 Istio Ingress 控制器创建了一个内部负载均衡器,如下所示

apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  namespace: istio-system
  name: istio-control-plane
spec:
  profile: default #or demo
  components:
    ingressGateways:
      - name: istio-internal-ingressgateway
        enabled: true
        k8s:
          serviceAnnotations:
            service.beta.kubernetes.io/azure-load-balancer-internal: "true"

由于这个原因,默认的外部负载均衡器被删除了。

是不是意味着 Istio 只支持一个 Loadbalancer? 我不能有 2 个或更多负载均衡器,每个 Istio 网关可能有一个吗?

是不是意味着 Istio 只支持一个 Loadbalancer? 我不能有 2 个或更多负载均衡器,每个 Istio 网关可能有一个吗?

不,istio 支持多个网关,您更改了错误的组件。

网关是一种特殊类型的组件,因为可以定义多个入口和出口网关。 在 IstioOperator API 中,网关被定义为列表类型。


看看这个文档。

有一个例子。

可以通过添加新的列表条目来创建新的用户网关:

apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  components:
    ingressGateways:
      - name: istio-ingressgateway
        enabled: true
      - namespace: user-ingressgateway-ns
        name: ilb-gateway
        enabled: true
        k8s:
          resources:
            requests:
              cpu: 200m
          serviceAnnotations:
            cloud.google.com/load-balancer-type: "internal"
          service:
            ports:
            - port: 8060
              targetPort: 8060
              name: tcp-citadel-grpc-tls
            - port: 5353
              name: tcp-dns

其他资源:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM