All Products
Search
Document Center

Container Service for Kubernetes:ACK Serverless quick start

Last Updated:Feb 27, 2026

This guide walks you through creating an ACK Serverless cluster, deploying an NGINX application from a container image, and accessing the application through a public endpoint.

Prerequisites

Before you begin, complete the following:

Step 1: Create an ACK Serverless cluster

This section covers only the key parameters. For a complete reference, see Create an ACK Serverless cluster.

Configure cluster settings

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, click Create Kubernetes Cluster.

  3. Click the ACK Serverless tab and configure the following parameters.

ParameterDescriptionExample
Cluster NameThe name of the cluster.ask-hangzhou
Cluster SpecificationThe cluster edition. Select Pro. ACK Pro clusters are recommended for production and test environments.Standard edition
RegionThe region for the cluster. A region closer to your users reduces network latency and improves access speed.China (Hangzhou)
VPCThe Virtual Private Cloud (VPC) for the cluster. Specify a zone to automatically create a VPC, or select an existing VPC.Select Existing VPC
Configure SNAT for VPCAllows instances in the VPC to access the internet. When selected, ACK configures SNAT automatically. See the SNAT behavior details below this table.Configure SNAT for VPC
vSwitchSelect an existing vSwitch or click Create vSwitch. For high availability, select multiple vSwitches in different zones. The control plane and the default node pool use the selected vSwitch.vsw-uf6x420ebylcwqclw\*\*\*\*,vsw-uf6qbh0tfvfuco0q7\*\*\*\*
Security GroupOptions: 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 CIDRThe CIDR block for cluster Services. This value cannot be changed after the cluster is created. The CIDR block must not overlap with the VPC CIDR block, ACK cluster CIDR blocks in the VPC, or the pod CIDR block. For more information, see Network planning of an ACK managed cluster.172.21.0.0/20
Access To API ServerAn internal-facing SLB instance is created by default for the Kubernetes API server. You can modify the specification of the SLB instance. For more information, see Specification. Select or clear Expose API Server with EIP. See the API server access details below this table.Expose API Server with EIP

SNAT behavior when Configure SNAT for VPC is selected:

  • No NAT Gateway exists: ACK creates a NAT Gateway and configures switch-level SNAT rules for all switches used by the cluster.

  • NAT Gateway exists but no VPC-level SNAT rules: ACK configures switch-level SNAT rules automatically.

  • VPC-level SNAT rules already exist: No action is taken.

If you do not select this check box, manually configure a NAT Gateway and SNAT rules after cluster creation. For more information, see Create and manage an Internet NAT gateway.

Important

When using VPC sharing, do not select this option.

Security group details:

  • Auto-created security groups allow all outbound traffic. Traffic to 100.64.0.0/10 must be allowed because this CIDR block is used to access Alibaba Cloud services for image pulling and ECS information queries.

  • If you select an existing security group, the system does not automatically configure security group rules. You must configure them manually. For more information, see Configure security groups for clusters.

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 to the internet through port 6443. You can use kubeconfig files to connect to and manage the cluster over the internet.

  • Expose API Server with EIP cleared: No EIP is created. You can only connect to the cluster from within the VPC using kubeconfig files.

Important

If you delete the internal SLB instance, you lose access to the Kubernetes API server.

For more information, see Expose the API server to the Internet.

Configure components

  1. Click Next:Component Configurations in the lower-right corner of the page.

ParameterDescriptionExample
Service DiscoveryOptions: Disable, PrivateZone, or CoreDNS. PrivateZone resolves private domain names to IP addresses within one or more VPCs. CoreDNS is a flexible, scalable DNS server and the standard service discovery component in Kubernetes.Disable
IngressOptions: Do Not Install, Nginx Ingress, ALB Ingress, or MSE Ingress. Nginx Ingress provides routing based on Ingresses. ALB Ingress supports complex routing, automatic certificate discovery, and HTTP, HTTPS, and QUIC protocols. MSE Ingress integrates MSE cloud-native gateways with ACK for ingress traffic management.Do Not Install
Monitoring ServiceView predefined dashboards and metrics with Managed Service for Prometheus. You can also install the metrics-server component. For more information, see Managed Service for Prometheus.Install metrics-server
Log ServiceEnable Log Service. Select an existing project or create a new one.Create Project
KnativeEnable Knative, a Kubernetes-based serverless framework that supports request-based auto scaling, scaling to zero, version management, and canary release.Enable Knative

Confirm and create

  1. Click Next:Confirm in the lower-right corner of the page.

  2. On the Confirm wizard page, read the Term of Service and click Create Cluster.

After the cluster is created, you can view it on the Clusters page. Locate the cluster and click Details in the Actions column. Then click the Basic Information and Connection Information tabs to view the cluster details.

Step 2: Create an application from an image

This section covers only the key parameters. For more information, see Create a stateless application from an image.

Configure basic information

  1. In the left-side navigation pane of the cluster details page, choose Workloads > Deployments.

  2. In the upper-right corner of the Deployments page, click Create from Image.

  3. On the Basic Information wizard page, configure the following parameters.

ParameterDescriptionExample
NameThe name of the application.serverless-app-deployment
TypeThe resource type. Valid values: Deployment and StatefulSet.Deployment
  1. Click Next.

Configure container settings

  1. In the General section of the Container wizard page, configure the container settings.

ParameterDescriptionExample
Image NameClick Select Image to choose an image, or enter the address of a private registry image. The image address format is domainname/namespace/imagename:tag.In this example, an image stored on a Container Registry Personal Edition instance in the China (Hangzhou) region is used.
Image VersionClick Select Image Version to select a version. If you do not specify a version, the latest version is used.In this example, no image version is specified.
  1. In the Ports section, click Add to configure a container port.

ParameterDescriptionExample
NameThe name of the container port.nginx
Container PortThe container port to expose. Valid values: 1 to 65535.80
ProtocolThe protocol. Valid values: TCP and UDP.TCP
  1. Click Next.

Configure advanced settings

  1. In the Access Control section of the Advanced wizard page, click Create next to Services to configure a Service that exposes the backend pod. In the Create Service dialog box, configure the following parameters.

ParameterDescriptionExample
NameThe name of the Service.serverless-app-svc
TypeThe 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 SLB specification. The default specification is Small I (slb.s1.small).
Port MappingThe Service port and container port. The container port must match the port exposed in the backend pod.Service port: 8080, Container port: 80

The created Service appears in the Access Control section. You can click Update or Delete to modify it.

  1. Click Create.

Access the NGINX application

  1. On the Complete wizard page, click View Details. You can find serverless-app-deployment on the Deployments page. Deployments

  2. Access the NGINX application:

    1. In the left-side navigation pane of the cluster details page, choose Network > Services. On the Services page, locate the serverless-app-svc Service. Services

    2. Click the address in the External Endpoint column to access the NGINX application in your browser. NGINX welcome page

You can also access an application by using an Ingress. For more information, see Access Services by using an ALB Ingress.

Step 3: View the pod

  1. In the left-side navigation pane of the cluster details page, choose Workloads > Pods.

  2. Select the pod you want to view and click Details in the Actions column.

Use templates to manage pods that were created by templates. Do not directly modify or delete these pods.
  1. On the pod details page, view detailed information about the pod. Pod details

Next steps