Unlike container clusters, serverless clusters do not rely on nodes. You can quickly create a serverless cluster through cluster and network configurations. To create a serverless cluster, perform the following steps:
- Log in to the KCE console.
- In the left navigation pane, click ServerlessCluster. The cluster management page appears.
- Click Create Cluster and complete the following settings as required:
- Basic information: Enter a cluster name, select a data center, and add a cluster description.
- Kubernetes Version: Select 1.15.5, 1.17.6, or 1.19.3 as required.
- Network settings:
- VPC: Select the VPC where the cluster resides. IP addresses in the VPC will be allocated to control nodes and pods in the cluster.
- Ordinary Subnet: Select the subnet where the control nodes in the cluster reside. Three IP addresses on the subnet will be occupied.
- Endpoint Subnet: Select a subnet for creating a private SLB instance for the API server, to enable communication between control nodes and virtual nodes in the cluster.
- Container CIDR Block: Select a CIDR block for container instances in the cluster. IP addresses in the CIDR block will be allocated to the container instances. We recommend that you select different availability zones and subnets to ensure high availability of the cluster and Services.
- Service CIDR: Select a CIDR block for Services in the cluster. IP addresses in the CIDR block will be allocated to the Services. The Service CIDR block must not conflict with that of the VPC where the cluster resides.
- Security Group: Select the security group to which the running container instances in the cluster belong. You can add security group rules to allow or prohibit the access to public or private networks by the container instances in the security group.
- Click Create.