简体   繁体   English

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

[英]Azure Kubernetes - Istio Multiple Loadbalancers?

I have create an internal load balancer for my Istio Ingress controller as shown below我为 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"

due this the default external loadbalancer got removed.由于这个原因,默认的外部负载均衡器被删除了。

Does it mean that Istio support only one Loadbalancer?是不是意味着 Istio 只支持一个 Loadbalancer? Can't I have 2 or more loadbalancer, may be one per Istio Gateway?我不能有 2 个或更多负载均衡器,每个 Istio 网关可能有一个吗?

Does it mean that Istio support only one Loadbalancer?是不是意味着 Istio 只支持一个 Loadbalancer? Can't I have 2 or more loadbalancer, may be one per Istio Gateway?我不能有 2 个或更多负载均衡器,每个 Istio 网关可能有一个吗?

No, istio support multiple gateways, you changed wrong component.不,istio 支持多个网关,您更改了错误的组件。

Gateways are a special type of component, since multiple ingress and egress gateways can be defined.网关是一种特殊类型的组件,因为可以定义多个入口和出口网关。 In the IstioOperator API, gateways are defined as a list type.在 IstioOperator API 中,网关被定义为列表类型。


Take a look at this documentation.看看这个文档。

There is an example.有一个例子。

A new user gateway can be created by adding a new list entry:可以通过添加新的列表条目来创建新的用户网关:

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

Additional resources:其他资源:

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

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