How Do I Create a Service Mesh with IPv4/IPv6 Dual Stack Enabled

You can create a CCE cluster with IPv4/IPv6 dual stack enabled and enable IPv4/IPv6 dual stack for the service mesh that the cluster is added to. IPv4/IPv6 dual stack allows services in the service mesh to use both IPv4 and IPv6 addresses for service-to-service interactions. After an IPv4/IPv6 dual-stack gateway is added for the service mesh, you can provide services for users using an IPv6 client. This section describes how you can create a service mesh with IPv4/IPv6 dual stack, so that services in the service mesh can communicate with each other using IPv6 addresses.

Application Scenarios

Constraints

Service Mesh Edition

Istio Version

Cluster Type

Cluster Network Type

Remarks

Basic

1.18 or later

CCE Turbo clusters

Cloud native network 2.0

IPv6 needs to be enabled for the clusters.

Service Mesh Edition

Istio Version

Load Balancer Type

Load Balancer Specification

Remarks

Basic

1.18 or later

Dedicated

Network load balancing (Layer 4)

The load balancer has an IPv6 address.

Creating a Service Mesh with IPv6 Addresses

  1. Log in to the ASM console, a service mesh, and configure the parameters as follows:

    • Mesh Edition: Select Basic edition.
    • Mesh Name: Enter a service mesh name.
    • Istio Version: Select 1.18 or later.
    • Enable IPv6: If this option is enabled, CCE clusters that meet the conditions will be displayed.

    Configure other parameters based on site requirements.

  2. Click the service mesh name to access the details page.

    On the Mesh Configuration > Basic Information tab, you can see that IPv4/IPv6 dual stack has been enabled.

Adding an IPv4/IPv6 Dual-Stack Gateway

  1. Log in to the ASM console. On the service mesh list page, click the name of the service mesh with IPv4/IPv6 dual stack enabled. In the navigation pane, choose Gateway Management. Click Add Gateway and configure the parameters as follows:

    • Access Mode: Select IPv4/IPv6 dual stack.
    • Load Balancer: Select Dedicated. The dedicated load balancer must have an IPv6 address.

    Configure other parameters based on site requirements.

    If IPv4/IPv6 dual stack is enabled, only domain names are allowed to access the gateway.

Verification

  1. Configure domain name resolution for the client, so that the domain name is mapped to the IPv6 address of the gateway. This way, the client can access the gateway using the domain name.

  1. View the IPv6 request information in the ingressgateway log.