All Products
Search
Document Center

Alibaba Cloud Service Mesh:Add a cluster to an ASM instance

Last Updated:Nov 03, 2023

Applications that are deployed in a Service Mesh (ASM) instance run in clusters. To use an ASM instance to manage applications, you must add a Container Service for Kubernetes (ACK) cluster to the ASM instance. This topic describes how to add an ACK cluster to an ASM instance.

Prerequisites

  • An ASM instance is created. If no ASM instance is created, create one by referring to Create an ASM instance.

  • An ACK cluster is created. If no ACK cluster is created, create one by referring to Create an ACK dedicated cluster or Create an ACK managed cluster.

  • The API server of the ACK cluster can be accessed from the Internet, or the cluster resides in the same virtual private cloud (VPC) as the ASM instance.

Procedure

  1. Log on to the ASM console. In the left-side navigation pane, choose Service Mesh > Mesh Management.

  2. On the Mesh Management page, click the name of the ASM instance. In the left-side navigation pane, choose Cluster & Workload Management > Kubernetes Clusters. On the page that appears, click Add.

  3. On the Add Kubernetes Cluster page, select the cluster to be added to the ASM instance and click OK.

    • If your application runs in a single cluster or multiple clusters in a VPC, we recommend that you select Filter out Kubernetes clusters that are in the same VPC as the ASM Instance to filter clusters.

    • Make sure that the proxy container of the cluster to be added to the ASM instance can access Istio Pilot of the ASM instance. If Istio Pilot of the ASM instance does not allow Internet access, make sure that it can be accessed by the proxy container in the VPC.

  4. In the Note message, click OK.

    After you add a cluster to the ASM instance, you can find that the status of the ASM instance changes to Updating on the ASM Instance > Base Information page. Wait a few seconds and click Refresh in the upper-right corner. The status of the ASM instance becomes Running. The waiting duration varies with the number of clusters that you added. On the Kubernetes Clusters page, you can view the information about the added cluster.

Note

If you no longer need a cluster in the ASM instance, you can remove the cluster from the ASM instance. On the Kubernetes Clusters page, select the cluster that you want to remove and click Remove. In the Submit dialog box, click OK.

After you remove a cluster, Service Mesh is unavailable to this cluster. Exercise caution when you remove a cluster.