After a cluster is created, you can create nodes for the cluster.
Configurations
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. 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 |
Select a node type based on service requirements. Then, the available node flavors will be automatically displayed in the Specifications area for you to select. CCE standard clusters support the following node types:
CCE Turbo clusters support the following node types:
|
Specifications |
Select node flavors as needed. A node needs at least two vCPU cores and 4 GiB of memory. The available node flavors vary depending on AZs. Obtain the flavors displayed on the console. |
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. For details, see Mapping between Node OSs and Container Engines. |
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. |
Node Name |
Name of the node. When nodes (ECSs) are created in batches, the value of this parameter is used as the name prefix for each ECS. The system generates a default name for you, which can be modified. Enter 1 to 56 characters. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed. The name must start with a lowercase letter and cannot end with a hyphen (-). Only lowercase letters or digits are allowed before and after periods (.). |
Login Mode |
|
Storage Settings
Parameter |
Description |
---|---|
System Disk |
System disk used by the node OS. The value ranges from 40 GiB to 1024 GiB. The default value is 50 GiB. Encryption: System disk encryption safeguards your data. Snapshots generated from encrypted disks and disks created using these snapshots automatically inherit the encryption setting. Only the nodes of the Elastic Cloud Server (VM) type in certain regions support system disk encryption. For details, see the console.
|
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.
NOTE:
Advanced Settings Expand the area and configure the following parameters:
Adding data disks A maximum of 16 data disks can be attached to an ECS and 10 to a BMS. By default, a raw disk is created without any processing. You can also click Expand and select any of the following options:
NOTE:
Local PVs and local EVs can be written in the following modes:
|
Network Settings
Parameter |
Description |
---|---|
VPC/Node Subnet |
The node subnet selected during cluster creation is used by default. You can choose another subnet instead. |
Node IP Address |
IP address of the specified node. By default, the value is randomly allocated. |
EIP |
An ECS without a bound EIP cannot access the Internet or be accessed by public networks. The default value is Do not use. Use existing and Auto create are supported. |
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. 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. 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, 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. |
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 |
Pre-installation script command, in which Chinese characters are not allowed. 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 |
Pre-installation script command, in which Chinese characters are not allowed. 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. NOTE:
Do not run the reboot command in the post-installation script to restart the system immediately. To restart the system, run the shutdown -r 1 command to restart with a delay of one minute. |
Agency |
An agency is created by the account administrator on the IAM console. Using 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. |
The node list page is displayed. If the node status is Running, the node is created successfully. It takes about 6 to 10 minutes to create a node.