To use Alibaba Cloud Service Mesh (ASM), you must create an ASM instance. This topic describes how to create an ASM instance in the ASM console.
- Creates a security group that allows access to a virtual private cloud (VPC) by using all Internet Control Message Protocol (ICMP) ports.
- Adds route entries to a 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 ASM to dynamically create SLB instances and add route entries to a VPC based on your settings.
- Creates an internal-facing SLB instance to expose port 6443.
- Creates an internal-facing SLB instance to expose port 15011.
- Collects the logs of managed components to ensure stability when you use the ASM instance.
- Log on to the ASM console.
- In the left-side navigation pane, choose .
- On the Mesh Management page, click Create ASM Instance.
- On the Create Service Mesh page, set the parameters as required.
- The following table describes the basic settings for an ASM instance.
Parameter Description Service mesh name The name of the ASM instance. Spec The edition of the ASM instance. Valid values: Standard Edition, Enterprise Edition, and Ultimate Edition. For more information about the features of each edition, see the "Instance types" section of the Instance editions topic. Region The region in which the ASM instance resides. Payment typeThe billing method of the ASM instance. Valid values: Pay as you go and Subscription. If you set this parameter to Subscription, you must set the following parameters:Note If you set the Payment type parameter to Subscription, only the internal-facing SLB instances of the Istio control plane and API server are billed in subscription mode. The EIPs of the ASM instance and API server are still billed in pay-as-you-go mode.
- Purchase time: the subscription period. Valid values: 1 month, 2 months, 3 months, 6 months, 1 year, 2 years, and 3 years.
- Automatic renewal: specifies whether to enable auto-renewal.
Istio Version The Istio version. VPC The VPC of the ASM instance. You can click Create VPC to create a VPC. For more information, see Create and manage a VPC. vSwitch The vSwitch of the ASM instance. You can click Create vSwitch to create a vSwitch. For more information, see Work with vSwitches. Istio control plane access The SLB instance that is used to control access to the Istio control plane. API Server access The SLB instance that is used to control access to 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 the kubeconfig file to connect to and manage the ASM instance over the Internet.
- If you clear Use EIP to expose API Server, no EIP is created. You can use the kubeconfig file to connect to and manage the ASM instance only in the VPC.
Observability 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 map traces, 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 Tracing Analysis console.
Specifies whether to enable Prometheus Service (Prometheus) for the ASM instance.
For more information about Prometheus, see Monitor service meshes based on ARMS Prometheus and Deploy a self-managed Prometheus instance to monitor ASM instances.
Specifies whether to enable Kiali for ASM.
Kiali for ASM is a tool that is used to observe ASM instances. This tool provides a GUI that allows you to view services and configurations. Kiali for ASM is a built-in tool in ASM instances whose Istio version is 18.104.22.168 or later. For more information, see Enable Kiali for ASM to observe an ASM instance in the ASM console.
Specifies whether to enable collection of access logs. If access logs are collected, you can use Log Service to view the access logs of ingress gateway services.
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 of the data plane.
Specifies whether to enable 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 push from the control plane to the sidecar proxies on the data plane. For more information, see Enable collection of control plane logs and control plane alerting.
Mesh Audit 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.
Resource configuration 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.
Cluster Domain The cluster domain for the ASM 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 Istio version of the ASM instance is 22.214.171.124 or later. Otherwise, this parameter is unavailable.
- The following table describes the basic settings for an ASM instance.
- Activate ASM in pay-as-you-go mode.
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 ASM in pay-as-you-go mode.
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.
- Click Create Service Mesh. Note It takes about 2 to 3 minutes to create an ASM instance.
- On the Mesh Management page, view the basic information about the ASM instance.
To view the latest information about the ASM instance, click the icon on the right.
- On the Mesh Management page, find the ASM instance and click Log in the Actions column. In the ASM Instance Logs panel, you can view the logs of the ASM instance.
- On the Mesh Management page, find the ASM instance and click Specification change in the Actions column to update the instance type. For more information, see Update the instance type of an ASM instance.
- On the Mesh Management page, find the ASM instance and click Manage in the Actions column. On the Basic Information page, you can view the basic information of the
instance, such as the instance ID and the security group.
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 the kubectl client to query and manage all namespaces, including istio-system, kube-node-lease, kube-public, kube-system, and default.