All Products
Document Center

Alibaba Cloud Service Mesh:Access an ASM gateway by using multiple SLB instances

Last Updated:Jun 05, 2023

You can associate multiple Server Load Balancer (SLB) instances with a Service Mesh (ASM) gateway so that multiple SLB instances can be used to access the ASM gateway. This topic describes how to access an ASM gateway by using multiple SLB instances that are associated with the ASM gateway.



You need to create an additional SLB instance for the ASM gateway by creating a service with which the SLB instance is associated.


If you delete the service associated with the SLB instance, the SLB instance is also deleted.

  1. Log on to the ACK console.
  2. In the left-side navigation pane of the ACK console, click Clusters.
  3. On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
  4. In the left-side navigation pane of the details page, choose Network > Services
  5. In the upper part of the Services page, set the Namespace parameter to istio-system and click Create Resources in YAML in the upper-right corner.

  6. On the Create page, select Custom from the Sample Template drop-down list, enter the following content in the Template field, and then click Create.


    The value of the nodePort parameter cannot be the same as an existing port number.

    apiVersion: v1
    kind: Service
      annotations: slb.s1.small internet
        app: istio-ingressgateway
        asm-system: 'true'
        istio: ingressgateway
      name: istio-ingressgateway-2
      namespace: istio-system
      externalTrafficPolicy: Cluster
        - name: http-0
          nodePort: 30544
          port: 80
          protocol: TCP
          targetPort: 80
        - name: https-2
          nodePort: 30682
          port: 443
          protocol: TCP
          targetPort: 443
        app: istio-ingressgateway
        asm-system: 'true'
        istio: ingressgateway
        provider: asm
      sessionAffinity: None
      type: LoadBalancer
    • name: the name of the service to be created. In this example, the value is set to istio-ingressgateway-2.

    • the specifications of the SLB instance. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, and slb.s3.large.

    • the network type of the SLB instance to be created. Valid values:

      • internet: an Internet-facing SLB instance

      • intranet: an internal-facing SLB instance

    After the service is created, an SLB instance is automatically created.

  7. Access the ASM gateway by using multiple SLB instances.

    1. Obtain the IP addresses using port 80 of the istio-ingressgateway and istio-ingressgateway-2 services in the External Endpoint column on the Services page.

      IP addresses
    2. Enter http://<IP address of the istio-ingressgateway service>/productpage and http://<IP address of the istio-ingressgateway-2 service}>/productpage in the address bar of the browser.


      If the page of the Bookinfo application appears after you enter each of the URLs, the preceding configurations take effect. In this case, you can access the ASM gateway by using multiple SLB instances.