ACK Serverless quick start
Create an ACK Serverless cluster in the ACK console, deploy an application from an image, expose it through a public endpoint, and view pods.
Prerequisites
The following requirements must be met:
-
ACK is activated and authorized to access Alibaba Cloud services.
-
Elastic Container Instance (ECI) is activated.
Step 1: Create an ACK Serverless cluster
Only key parameters are covered. In production, configure the parameters and install the components that your workloads require. See Create an ACK Serverless cluster for all options.
Configure cluster settings
-
Log on to the ACK console. In the left-side navigation pane, click Clusters.
-
On the Clusters page, click Create Kubernetes Cluster .
-
Click the ACK Serverless tab and configure the following parameters.
|
Parameter |
Description |
Example |
|
Cluster Name |
The name of the cluster. |
ask-hangzhou |
|
Cluster Specification |
The cluster edition. This example uses Standard edition . |
Standard edition |
|
Region |
The cluster region . Choose a region close to your users to reduce latency. |
China (Hangzhou) |
|
VPC |
The cluster Virtual Private Cloud (VPC). Specify a zone to auto-create a VPC, or select an existing one. For high availability, select vSwitches in two or more different zones. We recommend that the cluster VPC use a standard private address range, such as 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16. To create a cluster with a VPC that uses a public address range, apply for a quota in the Quota Center. |
Select Existing VPC |
|
Configure SNAT for VPC |
Allows instances in the VPC to access the internet. When selected, ACK configures Source Network Address Translation (SNAT) rules automatically. See the SNAT behavior details below this table. |
Configure SNAT for VPC |
|
vSwitch |
Select an existing vSwitch or click Create vSwitch. For high availability, select vSwitches in different zones. Used by the control plane and default node pool. |
vsw-uf6x420ebylcwqclw****,vsw-uf6qbh0tfvfuco0q7**** |
|
Security Group |
Options: Create Basic Security Group , Create Advanced Security Group , or Select Existing Security Group . The Select Existing Security Group option is available only when VPC is set to Select Existing VPC. See the security group details below this table. |
Create Advanced Security Group |
|
Service CIDR |
The Classless Inter-Domain Routing (CIDR) block for cluster Services. Cannot be changed after creation. Must not overlap with VPC, cluster, or pod CIDR blocks. See Network planning of an ACK managed cluster . |
172.21.0.0/20 |
|
Access to API Server |
An internal Server Load Balancer (SLB) instance is created by default for the API server. Modify the SLB instance specification. For more information, see Performance specifications. Select or clear Expose API Server with EIP. The API server provides HTTP interfaces to create, query, update, delete, and watch resource objects such as Pods and Services. See API server access details below. |
Expose API Server with EIP |
SNAT behavior when Configure SNAT for VPC is selected:
-
No NAT gateway exists: ACK creates one, purchases a new EIP, and configures vSwitch-level SNAT rules for all vSwitches used by the cluster.
-
NAT gateway exists without VPC-level SNAT rules: ACK determines whether to purchase an additional EIP and auto-configures vSwitch-level SNAT rules. If no EIP is available, ACK automatically purchases one.
-
VPC-level SNAT rules already exist: No action is taken.
If Configure SNAT for VPC is not selected, create a NAT gateway and configure SNAT rules after cluster creation.
When you use a shared VPC, do not select Configure SNAT for VPC.
Security group details:
-
The security group applies to the cluster control plane, the default node pool, and any node pools that do not have a custom security group specified.
-
An advanced security group can contain more private IP addresses than a basic security group, but does not support intra-group connectivity.
-
Auto-created security groups allow all outbound traffic. Inbound traffic is allowed based on the recommended configuration. If you modify the rules later, make sure that inbound traffic to
100.64.0.0/10is allowed. This CIDR is used for access to Alibaba Cloud services, such as image pulling and ECS queries. -
If you select an existing security group, the system does not auto-configure rules. Manually configure security group rules .
API server access details:
-
Expose API Server with EIP selected: An Elastic IP Address (EIP) is created and associated with the SLB instance. The API server is exposed on port 6443. Connect to and manage the cluster over the internet with kubeconfig files.
-
Expose API Server with EIP cleared: No EIP is created. Connect to the cluster only within the VPC with kubeconfig files.
If you delete the internal SLB instance, you lose access to the Kubernetes API server.
Configure components
-
Click Next:Component Configurations.
|
Parameter |
Description |
Example |
|
Service Discovery |
Options: Disable, PrivateZone, or CoreDNS. PrivateZone resolves private domain names within VPCs. CoreDNS is the standard Kubernetes DNS server. |
Disable |
|
Ingress |
Options: Do Not Install , Nginx Ingress , ALB Ingress , or MSE Ingress . Nginx Ingress provides Ingress-based routing. Application Load Balancer (ALB) Ingress supports complex routing, automatic certificate discovery, and the HTTP, HTTPS, and QUIC protocols. Microservices Engine (MSE) Ingress integrates MSE gateways with ACK. |
Do Not Install |
|
Monitoring Service |
View dashboards and metrics with Managed Service for Prometheus . Optionally install the metrics-server add-on . |
Install metrics-server |
|
Log Service |
Enable Log Service. Select an existing project or create a new one. |
Create Project |
|
Knative |
Enable Knative for request-based auto scaling, scale-to-zero, version management, and canary releases. |
Enable Knative |
Confirm and create
-
Click Next:Confirm.
-
On the Confirm page, verify the configuration information and usage notes. Read the Terms of Service and click Create Kubernetes Cluster.
After creation, find the cluster on the Clusters page. Click Details in the Actions column, then view the Basic Information and Connection Information tabs.
Step 2: Create an application from an image
Only key parameters are covered. See Create a stateless application from an image for all options.
Configure basic information
-
In the left-side navigation pane of the cluster details page, choose Workloads > Deployments.
-
On the Deployments page, click Create from Image.
-
On the Basic Information page, configure the following parameters.
Parameter
Description
Example
Name
The name of the application.
serverless-app-deployment
Type
The resource type. Valid values include Deployment and StatefulSet .
Deployment
-
Click Next.
Configure container settings
-
In the General section of the Container page, configure the following parameters.
Parameter
Description
Example
Image Name
Click Select Image . In the dialog box, select the required image and click OK. Alternatively, enter a private registry address in the format
domainname/namespace/imagename:tag.An image from a Container Registry Personal Edition instance in China (Hangzhou).
Image Version
Click Select Image Version. Defaults to the latest version if unspecified.
No version specified.
-
In the Ports section, click Add to configure a container port.
Parameter
Description
Example
Name
The name of the container port.
nginx
Container Port
The container port or port name to expose. Valid values: 1 to 65535.
80
Protocol
The protocol. Valid values: TCP and UDP.
TCP
-
Click Next.
Configure advanced settings
-
In the Access Control section of the Advanced page, click Create next to Services. In the dialog box, configure the following parameters.
Parameter
Description
Example
Name
The name of the Service.
serverless-app-svc
Type
The Service type, which determines how the Service is accessed.
Select Server Load Balancer. Then select Public Access and Create SLB Instance. Click Modify to change the specification. Default: Small I (slb.s1.small).
Port Mapping
The Service port and container port. Container port must match the exposed pod port.
Service port: 8080, Container port: 80
The Service appears in the Access Control section. Click Update or Delete to modify it.
-
Click Create.
Access the NGINX application
-
On the Complete page, click View Details. Find serverless-app-deployment on the Deployments page.

-
Access the NGINX application:
-
In the left-side navigation pane of the cluster details page, choose Network > Services . Locate serverless-app-svc . The Service is of the LoadBalancer type. An assigned cluster IP and external endpoint indicate that the Service is created.
-
Click the External Endpoint address to access the NGINX application.

-
Alternatively, access services using an ALB Ingress .
Step 3: View the pod
-
In the left-side navigation pane of the cluster details page, choose Workloads > Pods.
-
Select a pod and click Details in the Actions column.
Pods can be updated or deleted. Manage template-created pods through templates. Do not modify or delete them directly.
-
View the pod details. The details page shows basic information (status, node, namespace, creation time, and pod IP), labels, annotations, and the status details (the Initialized, Ready, ContainersReady, and PodScheduled conditions). The bottom of the page provides six tabs: Containers, Events, Creator, Init Containers, Storage, and Logs. The Edit and Refresh buttons are in the upper-right corner.
Next steps
-
Create a stateless application from an image for advanced Deployment configurations.
-
Access services using an ALB Ingress for Ingress-based routing.
-
Create an ACK Serverless cluster for a comprehensive reference of all cluster parameters.