ACK Serverless clusters are a container service provided by Alibaba Cloud to allow you to deploy workloads without the need to purchase nodes. ACK Serverless clusters can scale within seconds and schedule resources based on the predefined CPU and memory requests of application pods. These on-demand resource scheduling capabilities can greatly reduce the computing costs of fluctuating workloads. ACK Serverless clusters provide comprehensive Kubernetes-compatible capabilities to narrow the technical gap for beginners. You can focus on application development without the need to worry about infrastructure management. This topic describes how to create an ACK Serverless cluster in the ACK console.
Table of contents
Prerequisites
ACK is activated and authorized to access Alibaba Cloud services.
Elastic Container Instance is activated in the Elastic Container Instance console.
Step 1: Log on to the ACK console
Log on to the ACK console. In the left-side navigation pane, click Clusters.
On the Clusters page, click Create Kubernetes Cluster.
Step 2: Create a cluster
Click the ACK Serverless tab and configure the cluster.
Parameter | Description |
All Resources | Move the pointer over All Resources at the top of the page and select the resource group that you want to use. After you select a resource group, virtual private clouds (VPCs) and vSwitches that belong to the resource group are displayed. When you create a cluster, only VPCs and vSwitches that belong to the specified resource group are displayed. |
Cluster Name | The name of the cluster. The name must be 1 to 63 characters in length, and can contain digits, letters, hyphens (-), and underscores (_). The name must start with a letter or digit. |
Cluster Specification | Select a cluster type. You can select Professional or Basic. We recommend that you use ACK Pro clusters in the production environment and test environment. ACK Basic clusters can meet the learning and testing needs of individual users. Select Professional to create an ACK Serverless Pro cluster. For more information, see ACK Serverless Pro cluster overview. |
Region | The region of the cluster. |
Kubernetes Version | The Kubernetes versions that are supported by ACK Serverless are displayed. |
IPv6 Dual-stack | You can select Enable to create an ACK Serverless cluster that has IPv4/IPv6 dual stack enabled. This feature is in public preview. To use this feature, go to the Quota Center console and submit an application. Note
|
VPC | Set the VPC where you want to deploy the cluster. Kubernetes clusters support only VPCs. You can select Create VPC or Select Existing VPC.
For more information, see Create and manage VPCs. |
Zone | Select the zone where you want to deploy the cluster. |
Configure SNAT | Specify whether to automatically create a NAT gateway and configure SNAT rules on the NAT gateway. This check box is selected by default when you create a cluster. This parameter is required only when you select Create VPC for VPC. Note After you select Create VPC, you can select or clear Configure SNAT. If you clear this check box, you need to manually create a NAT gateway and configure SNAT rules on the VPC. Otherwise, the cluster deployed in the VPC cannot access the Internet. For more information, see Create and manage Internet NAT gateways. |
Service CIDR | Set Service CIDR. The Service CIDR block must not overlap with the CIDR block of the VPC, the CIDR blocks of the ACK clusters in the VPC, or the pod CIDR block. The Service CIDR block cannot be modified after it is specified. For more information about how to plan CIDR blocks for a cluster, see Plan the network of an ACK cluster. |
IPv6 Service CIDR | If you enable IPv4/IPv6 dual stack, you must specify an IPv6 CIDR block for Services. When you set this parameter, take note of the following items:
For more information about how to plan CIDR blocks for a cluster, see Plan the network of an ACK cluster. |
Access to API Server | By default, an internal-facing Server Load Balancer (SLB) instance is created for the Kubernetes API server of an ACK Serverless cluster. The SLB instance is billed on a pay-as-you-go basis. You can manually change the billing method. For more information, see Pay-as-you-go. Select or clear Expose API Server with EIP. The ACK API server provides multiple HTTP-based RESTful APIs, which can be used to create, delete, modify, query, and monitor resources, such as pods and Services.
For more information, see Control public access to the API server of a cluster. |
Security Group | You can select Create Basic Security Group, Create Advanced Security Group, or Select Existing Security Group. For more information about security groups, see Overview. Note
|
Time Zone | The time zone of the cluster. By default, the time zone of your browser is selected. |
Deletion Protection | Specify whether to enable deletion protection for the cluster. Deletion protection prevents the cluster from being deleted in the console or by calling the API. This prevents user errors. |
Resource Group | Move the pointer over All Resources at the top of the page and select the resource group that you want to use. After you select a resource group, virtual private clouds (VPCs) and vSwitches that belong to the resource group are displayed. When you create a cluster, only VPCs and vSwitches that belong to the specified resource group are displayed. Move the pointer over All Resources in the upper part of the page and select the resource group to which the cluster belongs. The name of the selected resource group is displayed. |
Labels | Add labels to the cluster. Enter a key and a value, and then click Add. Note
|
Cluster Domain | Enter a domain name for the cluster. Default value: cluster.local. |
Step 3: Configure components
Click Next:Component Configurations to configure components.
Parameter | Description |
Service Discovery | Configure service discovery for the cluster. You can select Disable, PrivateZone, or CoreDNS. Note
|
Ingress | Specify whether to install an Ingress controller. You can select Do Not Install, Nginx Ingress, ALB Ingress, or MSE Ingress.
|
Monitor containers | Specify whether to enable Managed Service for Prometheus. |
Log Service | Specify whether to enable Simple Log Service. You can select an existing project or create a project. If Simple Log Service is disabled, you cannot use the cluster auditing feature. For more information about Simple Log Service, see Getting Started. |
Knative | Specify whether to enable Knative. Knative is a Kubernetes-based serverless framework. The main objective of Knative is to develop a cloud-native and cross-platform orchestration standard for serverless applications. For more information, see Overview. |
Step 4: Confirm the configuration
Click Next:Confirm Order to confirm the configuration, read and select I have read and understand the ACK Terms of Service and Disclaimer, and then click Create Cluster.
After the cluster is created, you can find the cluster on the Clusters page in the ACK console.
It requires approximately 10 minutes to create a cluster.
What to do next
View the basic information about the cluster
On the Clusters page, find the cluster that you created and click Details in the Actions column. On the details page, click the Basic Information tab to view basic information about the cluster and click the Connection Information tab to view information about how to connect to the cluster. The following information is displayed:
API Server Public Endpoint: the IP address and port that the Kubernetes API Server uses to provide services over the Internet. It allows you to manage the cluster by using kubectl or other tools on the client.
Only ACK managed clusters support the Associate EIP and Disassociate EIP features.
Associate EIP: You can select an existing EIP or create an EIP.
The API server restarts after you associate an EIP with the API server. We recommend that you do not perform operations during the restart process.
Disassociate EIP: After you disassociate the EIP, you can no longer access the API server over the Internet.
The API server restarts after you disassociate the EIP from the API Server. We recommend that you do not perform operations on the cluster during the restart process.
API Server Internal Endpoint: the IP address and port that the API server uses to provide services within the cluster. The IP address belongs to the SLB instance that is associated with the cluster.
View cluster logs
Click the Cluster Logs tab to view the logs of the cluster.