To use Service Mesh (ASM), you must first create an ASM instance. ASM allows you to perform operations such as traffic management, security management, fault recovery, observation, and monitoring on applications. This topic describes how to create an ASM instance in the ASM console.
When you create a Service Mesh instance, ASM may perform the following operations based on your settings:
Creates a security group that allows access to a virtual private cloud (VPC) by using all Internet Control Message Protocol (ICMP) ports.Note
An existing security group cannot be reused. A security group cannot be modified after it is created.
Adds route entries to the route table of the VPC.
Creates an Elastic IP Address (EIP).
Creates a RAM role and policies, and attaches the policies to the RAM role to grant full permissions on Server Load Balancer (SLB), CloudMonitor, VPC, and Log Service. The RAM role allows Service Mesh to dynamically create SLB instances and add route entries to the route table of the VPC based on your settings.
Creates an internal-facing SLB instance and exposes ports 6443 and 15011.
Collects the logs of managed components to ensure stability when you use the Service Mesh instance.
- Log on to the ASM console. In the left-side navigation pane, choose .
On the Mesh Management page, click Create ASM Instance. Then, configure related information.
Service mesh name
The name of the Service Mesh instance.
The edition of the ASM instance. Valid values: Enterprise Edition and Ultimate Edition. For more information about the features provided by different editions, see What is ASM?
The region in which the Service Mesh instance resides.
The billing method of the ASM instance. Only the pay-as-you-go billing method is supported.
The Istio version.
The system automatically selects a VPC, a vSwitch, and a cluster domain based on the information about the Kubernetes cluster to be added to the Service Mesh instance. For more information, see Create an ACK managed cluster.
The VPC of the Service Mesh instance. You can click Create VPC to create a VPC. For more information, see Create and manage a VPC.
The vSwitch of the Service Mesh instance. You can click Create vSwitch to create a vSwitch. For more information, see Create and manage a vSwitch.
Istio control plane access
The SLB instance that is used to access the Istio control plane.
API Server access
The specification of the SLB instance that is used to access the API server. You can specify whether to enable access to the API server by using an EIP.
If you select Use EIP to expose API Server, an EIP is created and associated with the internal-facing SLB instance. Then, you can use kubectl to connect to and manage the ASM instance over the Internet based on the information in the kubeconfig file.
If you clear Use EIP to expose API Server, no EIP is created. You can use kubectl to connect to and manage the ASM instance only in the VPC based on the information in the KubeConfig file.
Specifies whether to enable Tracing Analysis for the ASM instance.
ASM integrates with Tracing Analysis. Tracing Analysis provides a wide range of tools to help you efficiently identify the performance bottlenecks of distributed applications. For example, you can use these tools to view trace data, display trace topologies, analyze application dependencies, and count the number of requests. This helps you improve the efficiency of developing and troubleshooting distributed applications. For more information about Tracing Analysis, see Use Tracing Analysis to trace applications inside and outside an ASM instance.Note
Before you enable Tracing Analysis, make sure that you have activated Tracing Analysis in the Alibaba Cloud Console.
Specifies whether to enable Prometheus for the ASM instance. For more information about Prometheus, see Monitor service meshes based on ARMS Prometheus and Monitor ASM instances by using a self-managed Prometheus instance.
Specifies whether to enable ASM Mesh Topology.
ASM Mesh Topology is a tool that is used to observe Service Mesh instances. This tool provides a GUI that allows you to view related services and configurations. ASM Mesh Topology is a built-in tool for ASM instances whose versions are 220.127.116.11 or later. For more information, see Enable Mesh Topology to observe an ASM instance in the ASM console.
Specifies whether to collect access logs for Alibaba Cloud Log Service. If access logs are collected, you can use Log Service to view the access logs of ingress gateways. For more information about access logs, see Use Log Service to collect logs of ingress gateways on the data plane and Use Log Service to collect access logs on the data plane.
Specifies whether to enable the collection of control plane logs.
ASM can collect logs of the control plane and generate alerts based on the logs. For example, ASM can collect logs related to configuration pushes from the control plane to sidecar proxies on the data plane. For more information, see Enable control-plane log collection and log-based alerting.
Specifies whether to enable the mesh audit feature.
You can enable the mesh audit feature to record and trace the operations of users. This is an important O&M feature that ensures cluster security. For more information about the mesh audit feature, see Use the KubeAPI operation audit feature in ASM.
Specifies whether to enable version control for custom Istio resources.
When you update fields in the
specblock of an Istio resource, ASM records the resource version before the update. ASM stores up to five latest versions. For more information about how to roll back an Istio resource to an earlier version, see Roll back an Istio resource to an earlier version.
Specifies whether to allow access to Istio resources by using the Kubernetes API of clusters on the data plane.
ASM allows you to create, delete, modify, and query Istio resources by using the Kubernetes API of clusters on the data plane. For more information, see Use the Kubernetes API of clusters on the data plane to access Istio resources.
The cluster domain for the Service Mesh instance. Default value: cluster.local. You can add only Kubernetes clusters that share the same cluster domain with the ASM instance to the ASM instance.Note
You can set this parameter only if the version of the ASM instance is 18.104.22.168 or later. For an ASM instance of a version earlier than 22.214.171.124, this parameter is not available.
Activate the pay-as-you-go billing method for ASM.
If you create an ASM instance of a commercial edition for the first time, the value in the State column on the right of Dependency Check is Not pass. In this case, you must activate the pay-as-you-go billing method for ASM.
Click Activate now in the Illustrate column on the right of Dependency Check. On the page that appears, select ASM (Pay-as-you-go) Terms of Service and click Activate Now. Return to the Create Service Mesh page and click Check again for ASM service activation check. Pass is displayed in the State column.
Select I have understood and accepted the Service Agreement and have read and agreed Alibaba Cloud Service Mesh ASM Service Level Agreement, and then click Create Service Mesh.Note
It takes about 2 to 3 minutes to create an ASM instance.
After an ASM instance is created, you can view the instance in the instance list on the Mesh Management page. In the Actions column of the instance list, you can also perform the following operations:
Find the ASM instance and click Manage in the Actions column to view the basic information and configurations of the instance.
By default, the system creates five namespaces for a new ASM instance. Only the istio-system and default namespaces can be viewed in the ASM console. You can use kubectl to query and manage all namespaces, including istio-system, kube-node-lease, kube-public, kube-system, and default.
Find the ASM instance and click Specification change in the Actions column to change the instance specifications. For more information, see Change the edition of an ASM instance.
Find the ASM instance and click Log in the Actions column to view logs.
Find the ASM instance and click > Delete in the Actions column to delete the instance. In the Delete ASM Instance dialog box that appears, read the Delete Notice carefully, select the resources that you want to retain, and then click OK.
Exercise caution when you perform delete operations:
After you delete an ASM instance, you cannot use the Service Mesh features of the instance.
After you delete the SLB instance that is used to expose the API server, you cannot perform operations on the clusters managed by the Service Mesh instance and related configurations.
After you delete the SLB instance that is used by Istio Pilot, you cannot perform operations on the Service Mesh instance and related configurations.