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. |
Enterprise Project | This parameter is available only for enterprise users who have enabled an enterprise project, and the cluster version must be v1.21.15-r0, v1.23.14-r0, v1.25.9-r0, v1.27.6-r0, v1.28.4-r0, or later. After an enterprise project is selected, nodes will be created in the node pool within that project. To manage clusters and other resources like nodes, load balancers, and node security groups, you can use the Enterprise Project Management Service (EPS). |
Node Configuration
You can configure the flavor and OS of a cloud server, on which your containerized applications run.
Parameter | Description |
|---|---|
Billing Mode | The following billing modes are supported:
|
Node Type | Select a node type based on service requirements. Then, you can select a proper flavor from the node flavor list. CCE standard clusters support the following node types:
CCE Turbo clusters support the following node types:
|
Specifications | Select a node flavor based on service requirements. The available node flavors vary depending on regions. For details, see the CCE console. NOTE:
|
Container Engine | The container engines supported by CCE include Docker and containerd, which may vary depending on cluster types, cluster versions, and OSs. Select a container engine based on the information displayed on the CCE console. |
OS | Select an OS type. Different types of nodes support different OSs.
NOTE: Service container runtimes share the kernel and underlying calls of nodes. To ensure compatibility, select a Linux distribution version that is the same as or close to that of the final service container image for the node OS. |
Login Mode |
|
Storage Settings
Configure storage resources on a node for the containers running on it. Select a disk type and configure its size based on service requirements.
Parameter | Description |
|---|---|
System Disk | System disk used by the node OS. The value ranges from 40 GiB to 1,024 GiB. The default value is 50 GiB. |
System Component Storage | Select a disk for storing system components.
NOTE: Clusters v1.23.18-r0, v1.25.13-r0, v1.27.10-r0, v1.28.8-r0, v1.29.4-r0 and later support the selection of the storage location of system components. If the CCE Node Problem Detector add-on is required in the cluster, install v1.19.2 or a later version. For details about this add-on, see CCE Node Problem Detector. |
Data Disk |
NOTE:
Advanced Settings Adding data disks A maximum of 16 data disks can be attached to an ECS. By default, a raw disk is created without any processing. You can also click Expand and select any of the following options:
|
Network Settings
Configure networking resources to allow node and containerized application access.
Parameter | Description |
|---|---|
VPC | The VPC to which the cluster belongs by default, which cannot be changed. |
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 five 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. NOTE: After a node pool is created, its associated security group cannot be modified. |
Advanced Settings
Configure advanced node capabilities such as labels, taints, and startup command.
Parameter | Description |
|---|---|
Resource Tag | You can add resource tags to classify resources. You can create predefined tags on the TMS console. These tags are available to all resources that support tags. You can use these tags to improve the tag creation and resource migration efficiency. CCE will automatically create the CCE-Dynamic-Provisioning-Node=Node ID tag. |
Kubernetes Label | A key-value pair added to a Kubernetes object (such as a pod). After specifying a label, click Add Label for more. 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. |
Taint | This parameter is left blank by default. You can add taints to configure anti-affinity for the node. A maximum of 20 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. |
Synchronization for Existing Nodes | After the options are selected, changes to resource tags and Kubernetes labels/taints in a node pool will be synchronized to existing nodes in the node pool. |
New Node Scheduling | Default scheduling policy for the nodes newly added to a node pool. If you select Unschedulable, newly created nodes in the node pool will be labeled as unschedulable. In this way, you can perform some operations on the nodes before pods are scheduled to these nodes. Scheduled Scheduling: After scheduled scheduling is enabled, new nodes will be automatically scheduled after the custom time expires.
NOTE:
|
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 icon. |
Pre-installation Command | Installation script command. The script command will be Base64-transcoded. The characters of both the pre-installation and post-installation scripts are centrally calculated, and the total number of characters after transcoding cannot exceed 10240. 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 | Installation script command. The script command will be Base64-transcoded. The characters of both the pre-installation and post-installation scripts are centrally calculated, and the total number of characters after transcoding cannot exceed 10240. The script will be executed after Kubernetes software is installed, which does not affect the installation. During post-installation script execution, pods can be scheduled normally. However, if the script execution times out, node installation will fail. To prevent pods from being scheduled to nodes with incomplete script execution, enable the option to schedule pods only after the post-installation script execution completes. CAUTION: Do not use the reboot command in the post-installation script to restart the system immediately. Instead, use the shutdown -r 1 command to restart the system with a one-minute delay. |
Agency | If you need to share ECS resources with other accounts or delegate a more professional person or team to manage the resources, you can create an agency on IAM and grant the agency the permissions to manage ECS resources. The delegated account can log in to the cloud system and switch to your account to manage resources. You do not need to share security credentials (such as passwords) with other accounts, ensuring the security of your account. If you have created an agency, select the agency from the drop-down list. If no agency is available, click Create Agency on the right to create one. |
Custom Prefix and Suffix | Custom name prefix and suffix of a node in a node pool. After the configuration, the nodes in the node pool will be named with the configured prefix and suffix. For example, if the prefix is prefix- and the suffix is -suffix, the nodes in the node pool will be named in the format of "prefix-Node pool name with five-digit random characters-suffix". NOTICE:
|
Kubernetes Node Name | The Kubernetes node name is the value of metadata.labels.kubernetes.io/hostname in the YAML file of the node. The following two values are supported:
|