Alibaba Cloud Service Mesh (ASM) allows you to manage applications in external Kubernetes clusters that are registered in the Container Service for Kubernetes (ACK) console.
Prerequisites
- An external Kubernetes cluster that can access the Internet is registered in the ACK console. For more information, see Register an external Kubernetes cluster.
- ASM is activated. To activate ASM, go to the ASM console.
- A Server Load Balancer (SLB) instance is associated with Istio Pilot on the control plane. The virtual private cloud (VPC) of the data plane is connected to the VPC in which the SLB instance resides. For more information, see Cloud Enterprise Network.
Procedure
- Create an ASM instance.
- Add an external cluster to the ASM instance.
- On the Mesh Management page, click the ASM instance to which you want to add the external cluster. In the left-side navigation pane, choose . Then, click Add.
- On the Add Kubernetes Cluster page, select the external cluster that you want to add to the ASM instance, and click OK.
- Create an ingress gateway.
Deploy applications in the external cluster
Deploy applications in the external cluster by running commands on the kubectl client or using the external cluster console. For more information, see Deploy an application in an ASM instance.
Note To create an ASM gateway, make sure that your cluster supports LoadBalancer Services or specify the serviceType field in the YAML file of the ASM gateway. The default value of the serviceType field is LoadBalancer.
Define Istio resources
Define Istio resources in the ASM console. For more information, see Use Istio resources to route traffic to different versions of a service.