Buying a CCE Autopilot Cluster
CCE Autopilot allows you to create serverless clusters that offer optimized Kubernetes compatibilities and free you from having to deal with complex O&M. After a CCE Autopilot cluster is created, you can deploy applications without purchasing nodes or maintaining the deployment, management, and security of nodes. You only need to focus on the implementation of application service logic, which greatly reduces your O&M costs and improves the reliability and scalability of applications.
Before purchasing a CCE Autopilot cluster, you are advised to learn about What Is a CCE Autopilot Cluster and Cluster Network. This will help you use CCE Autopilot clusters better.
Constraints
| Service | Resource | Minimum Usage | Minimum Usage Description | Quota per Region | Quota Increase |
|---|---|---|---|---|---|
| CCE | Cluster | 1 | - | Maximum number of clusters that can be created by each account in a region: 50 | Increase the quota on the My Quotas page. |
| VPC | VPC | 1 per cluster | Select one VPC for each cluster to provide an isolated, private virtual network environment for the cluster. | Maximum number of VPCs that can be created by each account in a region: 5 | |
| Subnet | 1 per cluster | At least one subnet must be selected for each cluster to allocate container IP addresses. By default, the cluster control plane occupies eight IP addresses for control plane deployment and interconnection with external services. | Maximum number of subnets that can be created by each account in a region: 50 | ||
| Security group | 2 per cluster | Two security groups are automatically created for each cluster for network access control of the cluster control plane and elastic network interfaces. | Maximum number of security groups that can be created by each account in a region: 100 | ||
| Security group rules | 7 per cluster | Seven security group rules are automatically added for each cluster to allow traffic over specified ports and ensure normal network communication in the cluster. | Maximum number of security groups rules that can be added by each account in a region: 1,000 | ||
| VPC Endpoint | VPC endpoint | 3 per cluster | Reserve at least three VPC endpoints for each cluster so that the cluster can access related cloud services such as SWR and OBS. | Maximum number of VPC endpoints that can be created by each account in a region: 50 | |
| DNS | Private zone | 2 per cluster | Each cluster requires at least two private zones for normal communication within the cluster or across clusters. | Maximum number of private zones that can be created by each account in a region: 50 | |
| Record set | 6 per cluster | Each cluster requires at least six DNS record sets for mapping specified domain names to IP addresses or other domain names in the cluster. | Maximum number of record sets that can be added by each account in a region: 500 |
Preparations
- Sign up for an account. For details, see Signing Up for a Huawei Cloud Account.
Step 1: Configure Basic Settings
Basic settings define the core architecture and underlying resource rules of a cluster, providing a framework for running the cluster and allocating resources.
- Log in to the CCE console.
- In the upper left corner of the page, click
and select a region for the cluster. The closer the selected region is to the region where resources are deployed, the lower the network latency and the faster the access. Click Buy Cluster. If you use CCE for the first time, you need to create an agency following the instructions.
- Configure the basic information. Figure 1 Basic settings
Table 2 Basic settings Parameter
Example Value
Description
Modifiable After Cluster Creation
Type
CCE Autopilot Cluster
CCE allows you to create various types of clusters for diverse needs.
- CCE standard clusters provide highly reliable and secure containers for commercial use.
- CCE Turbo clusters use high-performance cloud native networks and provide cloud native hybrid scheduling. Such clusters have improved resource utilization and can be used in more scenarios.
- CCE Autopilot clusters are serverless, and you do not need to bother with server O&M. This greatly reduces O&M costs and improves application reliability and scalability.
For more information about cluster types, see Cluster Comparison.
No
Cluster Name
autopilot-example
Enter a cluster name. Each cluster name in the same account must be unique.
The name can contain 4 to 128 characters. It can start with a lowercase letter and cannot end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.
Yes
Enterprise Project
default
This parameter is only available for enterprise users who have enabled Enterprise Project Management Service (EPS).
After you select an enterprise project (for example, default), the cluster and resources in the cluster are created in this enterprise project. You can use enterprise projects to manage clusters and other resources (such as elastic load balancers and EVS disks). For more information, see Enterprise Management.
If there are no special requirements, you can select default.
Yes
Cluster Version
v1.31
Select the Kubernetes version used by the cluster. You are advised to select the latest version.
Yes
Step 2: Configure Network Settings
The network settings follow a hierarchical management system. It ensures end-to-end network connectivity and security assurance for containerized applications through collaborative configuration of the cluster network, container network, and Service network.
- Cluster network: handles communication between nodes, transmitting pod and Service traffic while ensuring cluster infrastructure connectivity and security.
- Container network: assigns each pod an independent IP address, enabling direct container communication and cross-node communication.
- Service network: establishes a stable access entry, supports load balancing, and optimizes traffic management for Services within a cluster.
| Parameter | Example Value | Description | Modifiable After Cluster Creation |
|---|---|---|---|
| VPC | vpc-autopilot | Select a VPC where the cluster will be running. If no VPC is available, click Create VPC on the right to create one. For details, see Creating a VPC with a Subnet. After the cluster is created, the VPC cannot be changed. | No |
| Control Plane Subnet | subnet-502f | Select the subnet where the control plane is deployed. Master nodes use IP addresses in this subnet by default. So ensure that the subnet has sufficient available IPv4 addresses. After the cluster is created, the subnet cannot be changed. If no subnet is available, click Create Subnet on the right to create one. For details, see Creating a VPC with a Subnet. | No |
| Pod Subnet | subnet-502f | Select the subnet where the pods will be running. Each pod requires a unique IP address. The number of IP addresses in a subnet determines the maximum number of pods in a cluster and the maximum number of containers. After the cluster is created, you can add subnets. If no subnet is available, click Create Subnet on the right to create one. For details, see Creating a VPC with a Subnet. | Yes |
| Service CIDR Block | 10.247.0.0/16 | Select a Service CIDR block, which will be used by containers in the cluster to access each other. This CIDR block determines the maximum number of Services. After the cluster is created, the Service CIDR block cannot be changed. | No |
| VPC Endpoint (Image Access) | - | To ensure that cluster nodes can pull images from SWR, existing VPC endpoints for accessing SWR and OBS in the selected VPC are used by default. If there are no such endpoints, new VPC endpoints will be automatically created. VPC endpoints are billed. For details, see VPC Endpoint Price Calculator. | No |
(Optional) Step 3: Configure Alarm Center
Alarm Center offers comprehensive cluster alarm functions. When there is a fault in a cluster, CCE will promptly trigger an alarm, which helps maintain service stability. For details, see Configuring Alarms in Alarm Center.
| Parameter | Example Value | Description | Modifiable After Cluster Creation |
|---|---|---|---|
| Enable Alarm Center | Select this option. | If this option is selected, Alarm Center is automatically enabled for the cluster, and default alarm rules are created. For details about alarm rules, see Table 1. Metric alarm rules rely on the Cloud Native Cluster Monitoring add-on to report data to AOM. If this add-on is not installed or connected to the AOM instance, such alarm rules will not be created. | Yes |
| Contact Group (Topic) | test | Contact groups are implemented using SMN topics. They are used to group alarm subscription endpoints. You can configure contact groups to manage endpoints subscribed to alarm messages. Alarm notifications are billed. For details, see Simple Message Notification Billing. If Alarm Center is enabled, CCE creates a default alarm notification rule named auto-cluster-{cluster-ID} for the cluster based on this contact group. | Yes |
(Optional) Step 4 Configure Advanced Settings
Advanced settings are extended and hardened cluster capabilities.
| Parameter | Example Value | Description | Modifiable After Cluster Creation |
|---|---|---|---|
| SNAT | Disabled | This option is disabled by default. If it is enabled, the cluster can access the Internet through a NAT gateway. By default, an existing NAT gateway in the selected VPC is used. If there is no NAT gateway, CCE Autopilot automatically creates one with default specifications, binds an EIP to it, and configures SNAT rules. The NAT gateway will be billed. For details, see NAT Gateway Billing. | No |
| Resource Tag | - | You can add resource tags to classify resources. You can create predefined tags on the TMS console. The predefined tags are available to all resources that support tags. You can use predefined tags to improve the tag creation and resource migration efficiency. For details, see Creating Predefined Tags.
| Yes |
| Description | - | You can enter a maximum of 200 characters except the following special characters: ^~#$%&*<>()[]{}"'\. | Yes |
Step 5: Select Add-ons
CCE provides a variety of add-ons to extend cluster functions and enhance the functionality and flexibility of containerized applications. You can select add-ons as needed. Some basic add-ons are set as mandatory by default. If non-basic add-ons are not installed during cluster creation, they can still be added later on the Add-ons page after the cluster is created.
- Click Next: Select Add-on. On the page displayed, select the add-ons to be installed during cluster creation.
- Select the basic add-on to ensure the cluster can run normally. Figure 5 Basic add-on
Table 6 Basic add-on Add-on
Example Value
Description
-
This add-on is installed by default. It provides DNS resolution for your cluster and can be used to access the cloud DNS servers.
- Select the observability add-ons to experience the full observability function. Figure 6 Observability add-ons
Table 7 Observability add-ons Add-on
Example Value
Description
-
This add-on is installed by default. It collects resource usage metrics, such as container CPU and memory usages, for the cluster.
Select this add-on.
This add-on is optional. If selected, it will be automatically installed. It collects monitoring metrics for your cluster and reports the metrics to AOM. The agent mode does not support HPA based on custom Prometheus statements. If related functions are required, install this add-on manually after the cluster is created.
If this add-on is selected, pod billing is involved. You can view the prices on the console.
Select this add-on.
This add-on is optional. If selected, it will be automatically installed. Cloud Native Log Collection helps report logs to LTS. After the cluster is created, you are allowed to obtain and manage collection rules on the Logging page of the CCE cluster console.
LTS does not charge you for creating log groups and offers a free quota for log collection every month. You pay only for log volume that exceeds the quota. For details, see Price Calculator. For details, see Collecting Logs.
If this add-on is selected, pod billing is involved. You can view the prices on the console.
Step 6: Configure Add-ons
Configure the selected add-ons to ensure they operate stably and accurately and meet service requirements.
Add-on installation consumes resources, and you will be billed for these resources. The actual resource consumption and expenditures may vary. View the details on the console.
- Click Next: Configure Add-on.
- Configure the basic add-on. Figure 7 Basic add-on settings
Table 8 Basic add-on settings Add-on
Description
CoreDNS
This add-on can be configured. You can click Modify on the right of the add-on.
- Configure the observability add-ons. To modify the add-on configuration, click Modify on the right of the add-ons. Figure 8 Observability add-on settings
Table 9 Observability add-on settings Add-on
Example Value
Description
test
Select an AOM instance for the add-on to report metrics. If no AOM instance is available, click Create Instance to create one first.
Basic metrics are free, but custom metrics are billed based on the standard pricing of AOM. For details, see AOM Pricing Details.
Select Container logs and Kubernetes events.
Select the logs to be collected. If enabled, a log group named k8s-log-{cluster-ID} will be automatically created, and a log stream will be created for each selected log type.
- Container logs: Standard output logs of containers are collected. The corresponding log stream is named in the format of stdout-{cluster-ID}.
- Kubernetes events: Kubernetes logs are collected. The corresponding log stream is named in the format of event-{cluster-ID}.
If log collection is disabled, choose Logging in the navigation pane of the cluster console after the cluster is created and enable this option.
LTS does not charge you for creating log groups and offers a free quota for log collection every month. You pay only for log volume that exceeds the quota. For details, see Price Calculator. For details, see Collecting Logs.
Step 7: Confirm Settings
Click Next: Confirm Settings. The cluster resource list is displayed. Confirm the information and click Submit.
It takes about 5 to 10 minutes to create a cluster. You can click Back to Cluster Management to perform other operations or click Go to Cluster Events to view the cluster details.
Related Operations
After a cluster is created, you can use kubectl, the Kubernetes command line (CLI) tool, to connect to the cluster. For details, see Accessing a Cluster Using kubectl.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot