This section describes how to create a node pool and perform operations on the node pool. For details about how a node pool works, see Node Pool Overview.
Basic Settings
Parameter |
Description |
---|---|
Node Pool Name |
Name of a node pool. By default, the name is in the format of Cluster name-nodepool-Random number. If you do not want to use the default name format, you can customize the name. |
Nodes |
Number of nodes to be created in this node pool. |
Auto Scaling |
By default, auto scaling is disabled. Install the autoscaler add-on to enable auto scaling. After you enable auto scaling by switching on
NOTE:
You are advised not to store important data on nodes in a node pool because after auto scaling, data cannot be restored as nodes may be deleted. |
Compute Settings
Parameter |
Description |
---|---|
AZ |
AZ where the node is located. Nodes in a cluster can be created in different AZs for higher reliability. The value cannot be changed after the node is created. You are advised to select Random to deploy your node in a random AZ based on the selected node flavor. An AZ is a physical region where resources use independent power supply and networks. AZs are physically isolated but interconnected through an internal network. To enhance workload availability, create nodes in different AZs. |
Node Type |
CCE cluster:
CCE Turbo cluster:
|
Container Engine |
CCE clusters support Docker and containerd in some scenarios.
|
Specifications |
Select a node specification based on service requirements. The available node specifications vary depending on regions or AZs. For details, see the CCE console. |
OS |
Select an OS type. Different types of nodes support different OSs. For details, see Supported Node Specifications. Public image: Select an OS for the node. Private image: You can use private images. |
Login Mode |
|
Storage Settings
Parameter |
Description |
---|---|
System Disk |
System disk used by the node OS. The value ranges from 40 GB to 1,024 GB. The default value is 50 GB. Encryption: Data disk encryption safeguards your data. Snapshots generated from encrypted disks and disks created using these snapshots automatically inherit the encryption function. This function is available only in certain regions.
|
Data Disk |
At least one data disk is required for the container runtime and kubelet. The data disk cannot be deleted or uninstalled. Otherwise, the node will be unavailable.
Advanced Settings Click Expand to set the following parameters:
Adding Multiple Data Disks A maximum of four data disks can be added. By default, raw disks are created without any processing. You can also click Expand and select any of the following options:
Local Disk Description If the node flavor is disk-intensive or ultra-high I/O, one data disk can be a local disk. Local disks may break down and do not ensure data reliability. It is recommended that you store service data in EVS disks, which are more reliable than local disks. |
Network Settings
Parameter |
Description |
---|---|
Node Subnet |
The node subnet selected during cluster creation is used by default. You can choose another subnet instead. |
Node IP Address |
Random allocation is supported. |
Associate Security Group |
Security group used by the nodes created in the node pool. A maximum of 5 security groups can be selected. When a cluster is created, a node security group named {Cluster name}-cce-node-{Random ID} is created and used by default. Traffic needs to pass through certain ports in the node security group to ensure node communications. Ensure that you have enabled these ports if you select another security group. |
Advanced Settings
Parameter |
Description |
---|---|
Kubernetes Label |
Click Add to set the key-value pair attached to the Kubernetes objects (such as pods). A maximum of 20 labels can be added. Labels can be used to distinguish nodes. With workload affinity settings, container pods can be scheduled to a specified node. For more information, see Labels and Selectors. |
Resource Tag |
You can add resource tags to classify resources. You can create predefined tags in Tag Management Service (TMS). Predefined tags are visible to all service resources that support the tagging function. You can use these tags to improve tagging and resource migration efficiency. CCE will automatically create the "CCE-Dynamic-Provisioning-Node=node id" tag. |
Taint |
This parameter is left blank by default. You can add taints to set anti-affinity for the node. A maximum of 10 taints are allowed for each node. Each taint contains the following parameters:
For details, see Managing Node Taints. NOTE:
For a cluster of v1.19 or earlier, the workload may have been scheduled to a node before the taint is added. To avoid such a situation, select a cluster of v1.19 or later. |
Max. Pods |
Maximum number of pods that can run on the node, including the default system pods. This limit prevents the node from being overloaded with pods. This number is also decided by other factors. For details, see Maximum Number of Pods That Can Be Created on a Node. |
ECS Group |
An ECS group logically groups ECSs. The ECSs in the same ECS group comply with the same policy associated with the ECS group. Anti-affinity: ECSs in an ECS group are deployed on different physical hosts to improve service reliability. Select an existing ECS group, or click Add ECS Group to create one. After the ECS group is created, click the refresh button. |
Pre-installation Command |
Enter commands. A maximum of 1,000 characters are allowed. The script will be executed before Kubernetes software is installed. Note that if the script is incorrect, Kubernetes software may fail to be installed. |
Post-installation Command |
Enter commands. A maximum of 1,000 characters are allowed. The script will be executed after Kubernetes software is installed and will not affect the installation. |
Agency |
An agency is created by the account administrator on the IAM console. By creating an agency, you can share your cloud server resources with another account, or entrust a more professional person or team to manage your resources. If no agency is available, click Create Agency on the right to create one. |