Help Center/ Cloud Container Engine/ User Guide/ Old Console/ Nodes/ Accepting ECSs as Nodes into a Cluster
Updated on 2022-12-30 GMT+08:00

Accepting ECSs as Nodes into a Cluster

Scenario

In CCE, you can add a new node or add existing nodes (ECSs) into your cluster. These nodes can be billed in yearly/monthly or pay-per-use mode.

This section describes how to accept existing ECSs as nodes into a cluster on the CCE console.

  • While an ECS is being accepted into a cluster, the operating system of the ECS will be reset to the standard OS image provided by CCE to ensure node stability. The CCE console prompts you to select the operating system and the login mode during the reset.
  • The system disk and data disk of an ECS will be formatted while the ECS is being accepted into a cluster. Ensure that information in the disks has been backed up.
  • While an ECS is being accepted into a cluster, do not perform any operation on the ECS through the ECS console.

Notes and Constraints

  • The cluster version must be v1.13 or later.
  • If the password or key has been set when a VM node is created, the VM node can be accepted into a cluster 10 minutes after it is available.

Prerequisites

An ECS that meets the following conditions can be accepted:

  • The node has been purchased and is in the running state, and is not used by other clusters.
  • The node to be accepted and the CCE cluster must be in the same VPC. (If the cluster version is earlier than v1.13.10, the node to be accepted and the CCE cluster must be in the same subnet.)
  • Only one data disk is attached to the node. The data disk capacity is greater than or equal to 100 GB. If the node has more than one data disk, detach other data disks first.
  • The node has 2-core or higher CPU, 4 GB or larger memory, and only one NIC.
  • If an enterprise project is used, the node to be managed and the CCE cluster must be in the same enterprise project. Otherwise, resources cannot be identified during management. As a result, the node cannot be managed.

Procedure

  1. Log in to the CCE console. In the navigation pane, choose Resource Management > Clusters. Click More for the target cluster, and select Add to Cluster.
  2. (Alternative) Log in to the CCE console. In the navigation pane, choose Resource Management > Nodes. On the page displayed, select the cluster to which the node belongs, and click Add to Cluster in the upper right corner.
  3. If the nodes cannot be added, a red icon is displayed and the number of unqualified nodes is provided. You can move the cursor to to view the cause.
  4. Select the ECS to be accepted into the cluster, and click Next.
  5. On the Node Configuration page, select a node login mode, set Advanced Settings to On, set Max Pods and Disk Allocation, and click Create Now.

    Figure 1 Node settings

  6. In the dialog box displayed, confirm the information and click OK.

    A message is displayed, indicating that the request for accepting the existing node into the selected cluster is successfully submitted.