In CCE, you can create a node (Creating a Node) or add existing nodes (ECSs) to your cluster for management.
The cloud servers to be managed must meet the following requirements:
Node Configuration
Parameter | Description |
|---|---|
Node Pool |
|
Specifications | Click Select Cloud Server and select the servers to be accepted. You can select multiple cloud servers for batch management. However, only the cloud servers with the same specifications, AZ, and data disk configuration can be added in batches. If a cloud server contains multiple data disks, select one of them for the container runtime and kubelet. |
Container Runtime (Original Container Engine) | The container runtimes supported by CCE include Docker and containerd, which may vary depending on cluster types, cluster versions, and OSs. Select a container runtime based on the information displayed on the CCE console. |
OS | Select an OS type. Different types of nodes support different OSs. 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.
Parameter | Description |
|---|---|
System Disk | Directly use the system disk of the cloud server. |
System Component Storage | Select a disk for storing system components.
NOTE: In clusters v1.23.18-r0, v1.25.13-r0, v1.27.10-r0, v1.28.8-r0, v1.29.4-r0, or later, you can select a disk for storing system components. If CCE Node Problem Detector is used, ensure that its version is 1.19.2 or later. |
Data Disk |
Click Expand to configure Data Disk Space Allocation. This allocates space for container runtimes, images, and ephemeral storage to ensure they are running normally. For details about how to allocate data disk space, see Space Allocation of a Data Disk. For other data disks, a raw disk is created without any processing by default. You can also click Expand and select Mount Disk to mount the data disk to a specified directory. |
Advanced Settings
Parameter | Description |
|---|---|
Resource Tag | You can add resource tags to classify resources. A maximum of eight resource tags can be added. 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 | Click Add Label 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. |
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: |
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. |
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 10,240. 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 10,240. 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. 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. |
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: In this scenario, some Kubernetes node names may be inconsistent with node private IP addresses, and adaptation is required. For example, when configuring node affinity, you cannot use the node private IP address as the node name to configure a scheduling policy. To change the Kubernetes node name of the existing nodes to the cloud server name, remove these nodes from the cluster and accept them again. Before doing so, learn about the possible impacts on services when removing or accepting a node. |