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. Multiple cloud servers can be selected for batch acceptance, but only those with identical data disk configurations can be added together. If a cloud server contains multiple data disks, select one of them for the container runtime and kubelet. |
Container Engine | CCE supports Docker or containerd as the container runtime. Available runtimes vary by cluster type, version, and OS. Select the runtime shown 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. |
Default Data Disk | Select a data disk for the container runtime and kubelet. |
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 its version is 1.19.2 or later. |
Data Disk |
Click Expand to configure Data Disk Space Allocation. This reserves space for the container runtime, images, and ephemeral storage to ensure normal operation. 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. |
Kubernetes 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: NOTE: If taints are used, you must configure pod tolerations. Otherwise, scale-out operations may fail, or pods may fail to schedule onto the added nodes. |
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. A pre-installation script runs before Kubernetes is installed. If it fails, the Kubernetes installation will also fail. |
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 times out, node installation fails. To prevent pod scheduling on nodes with incomplete script execution, enable the option to schedule pods only after post-installation script completion. 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: This inconsistency between node names and private IP addresses may require adaptation. For example, when configuring node affinity, you cannot use the kubernetes.io/hostname:<node-private-IP-address> label to target specific nodes. To change the Kubernetes node name of the existing nodes to the cloud server name, remove these nodes from the cluster and re-accept them. Before doing so, learn about the possible impacts on services when removing or accepting a node. |