This topic describes how to create a serverless Kubernetes (ASK) cluster in the Container Service for Kubernetes (ACK) console.

Procedure

  1. Log on to the ACK console.
  2. In the left-side navigation pane, click Serverless Clusters.
  3. On the Clusters page, click Create Serverless Kubernetes Cluster in the upper-right corner of the page.
  4. Configure the ASK cluster.
    Parameter Description
    Cluster Name Enter a name for the cluster.
    Note The name must be 1 to 63 characters in length, and can contain digits, letters, and hyphens (-).
    Resource Group
    Move the pointer over All Resources at the top of the page and select the resource group to which the ACK cluster belongs. The name of the selected resource group appears on the page.Resource Group
    Move the pointer over All Resources at the top of the page and select the resource group to which the cluster belongs. The name of the selected resource group appears.
    Region Select a region to deploy the ASK cluster.
    Time Zone

    Select a time zone for the ACK cluster. By default, the time zone configured for your browser is selected.

    Kubernetes Version

    Select a Kubernetes version.

    VPC Set the virtual private cloud (VPC) to deploy the cluster. ASK clusters support only VPCs. You can select an existing VPC or create a VPC.
    • Create VPC: If you select this option, ACK automatically creates a VPC and a Network Address Translation (NAT) gateway in the VPC. ACK also configures source network address translation (SNAT) entries for the NAT gateway.
    • Select Existing VPC: If you select this option, you need to select a VPC from the VPC drop-down list and select vSwitches from the VSwitch list. If you want to enable Internet access, for example, to download container images from the Internet, you must configure a NAT gateway. We recommend that you upload container images to a Container Registry instance in the region where the ASK cluster is deployed. This way, you can pull the images through the VPC where the cluster is deployed.

    For more information, see Create a VPC.

    Zone Select a zone to deploy the cluster.
    NAT Gateway Specify whether to automatically create a NAT gateway and configure SNAT entries for the NAT gateway.

    This parameter is required only when you set VPC to Create VPC.

    Note After you select Create VPC, you can specify whether to automatically create a NAT gateway and configure SNAT rules for the NAT gateway. If you clear this check box, you must manually create a NAT gateway and configure SNAT entries to enable Internet access for the cluster. Otherwise, the cluster cannot access the Internet.

    For more information, see Create a NAT gateway.

    Service CIDR

    Set Service CIDR. The CIDR block that is specified by Service CIDR cannot overlap with that of the VPC or existing ACK clusters in the VPC. The CIDR block cannot be modified after it is specified. The Service CIDR block cannot overlap with the pod CIDR block. For more information about subnetting for ACK clusters, see Assign CIDR blocks to resources in a Kubernetes cluster under a VPC.

    Public Access Specify whether to expose the API server with an elastic IP address (EIP). If you select this check box, you can access the API server of the cluster over the Internet.
    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.
    • If you select this check box, an EIP is created, and port 6443 used by the API server is opened on master nodes. You can connect to and manage the cluster by using kubeconfig over the Internet.
    • If you clear this check box, no EIP is created. You can connect to and manage the cluster only by using kubeconfig from within the VPC.

    For more information, see What is an EIP?.

    Service Discovery Configure service discovery for the cluster. You can select Disable, PrivateZone, or CoreDNS.
    Note
    • Alibaba Cloud DNS PrivateZone is a private domain name resolution and management service based on VPC. You can use PrivateZone to resolve private domain names to IP addresses in one or more VPCs.
    • CoreDNS is a flexible and scalable DNS server for standard Kubernetes service discovery.
    Ingress

    Specify whether to install Ingress controllers. By default, Install Ingress Controllers is selected. For more information, see Configure an Ingress.

    Log Service Specify whether to enable Log Service. You can select an existing Log Service project or create one.

    If Log Service is not enabled, you cannot use the cluster auditing feature. For more information about Log Service, see Quick Start.

    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.
    Deletion Protection Specify whether to enable deletion protection. If you select this check box, the cluster cannot be deleted in the console or by calling the API. This prevents user errors.
    Labels
    Add labels to the cluster nodes. Enter keys and values, and then click Add.
    Note
    • Key is required. Value is optional.
    • Keys are not case-sensitive. A key must be 1 to 64 characters in length, and cannot start with aliyun, http://, or https://.
    • Values are not case-sensitive. A value must be 1 to 128 characters in length, and cannot start with http:// or https://.
    • The keys of labels that are added to the same resource must be unique. If you add a label with a used key, the label overwrites the one that uses the same key.
    • You can add up to 20 labels to each resource. If you add more than 20 labels to a resource, all labels become invalid. You must remove unused labels for the remaining labels to take effect.
    Terms of Service You must read and select Terms of Service for Serverless Kubernetes before the cluster is created.
  5. Click Create Cluster on the right side of the page. In the Confirm message, click OK to start the deployment.

What to do next

  • After the cluster is created, you can find the created cluster on the Clusters page in the console.
    Create an ASK cluster
  • On the Clusters page, find the created cluster 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.