You can use the Service Mesh (ASM) feature of Distributed Cloud Container Platform for Kubernetes (ACK One) to achieve one-stop application distribution and traffic governance across multiple clusters. This topic describes how to enable and disable Service Mesh for a Fleet instance of ACK One, and how to associate clusters with a Service Mesh instance.
How it works
The four operations in this topic follow a specific order:
-
Enable ASM — creates a Service Mesh Enterprise Edition instance and associates it with your Fleet instance.
-
Associate clusters — adds clusters to the Service Mesh instance for unified traffic management.
-
Disassociate clusters — removes clusters from the Service Mesh instance before cleanup.
-
Disable ASM — releases the Service Mesh instance.
Prerequisites
Before you begin, make sure you have:
-
Activated ASM
-
Assigned the service-linked role AliyunServiceRoleForServiceMesh to ASM. For more information, see Manage the service-linked role for ASM
-
Enabled the Fleet management feature. For more information, see Enable multi-cluster management
-
Deployed the clusters you want to associate in the same virtual private cloud (VPC) as the Fleet instance and Service Mesh instance. If the clusters are in a different VPC, enable Internet access for their API servers
-
Verified that the VPC CIDR blocks, pod CIDR blocks, and Service CIDR blocks of the clusters meet the network requirements. For more information, see Network requirements
Enable Service Mesh
-
Log on to the ACK One console. In the left-side navigation pane, choose Fleet > ASM.
-
On the ASM page, click the icon to the right of the Fleet instance name, select the instance you want to manage, and then click Enable ASM.
NoteIf only one Fleet instance is available, click Enable ASM directly without selecting an instance.
-
Click OK. The system automatically creates a Service Mesh Enterprise Edition instance and associates it with the ACK One Fleet instance. Click Associated Clusters to associate or disassociate clusters.
ImportantThe ASM Enterprise Edition instance is billed after creation. For more information, see ASM billing.
Associate a cluster with the Service Mesh instance
On the Associated Clusters page, find the cluster you want to manage, click the
icon in the Actions column, and then click Associate with Service Mesh.
After association, Added is displayed for the cluster in the ASM column on the Associated Clusters page.
Disassociate a cluster from the Service Mesh instance
On the Associated Clusters page, find the cluster you want to manage, click the
icon in the Actions column, and then click Disassociate from ASM.
Disassociating a cluster from the Fleet instance automatically disassociates it from the Service Mesh instance. For more information, see Disassociate clusters from a Fleet instance.
Disable ASM
On the ASM page, click the icon to the right of the Fleet instance name, select the instance, and then click Disable in the upper-right corner.
After you disable Service Mesh, the system automatically disassociates the clusters from the Service Mesh instance and releases the Service Mesh instance. Proceed with caution when you disable ASM.
What's next
Use ASM to enable multi-cluster traffic management. For more information, see Use ASM to enable multi-cluster traffic management.