All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

Add a new node

Last updated:2021-05-25 17:26:04

You can add a new node to a cluster if the resources of the cluster scale cannot meet your business requirements. The procedure of adding a new node is similar to that of creating a cluster.

To add a new node to a cluster, perform the following steps:

  1. Log in to the KCE console.
  2. In the left navigation pane, click Cluster.
  3. Click the name of a cluster to go to the cluster management page.
  4. In the left navigation pane, choose Manage Nodes > Node. The Node page appears.
  5. On the Node page, click Create Node. The Create Node page appears. image20210430175130484.png
  6. In the Cluster Configuration step, view the basic information of the cluster, including the cluster name, data center, VPC, pod CIDR block, Service CIDR block, and description. Then, click Next to configure the node.
  7. In the Node Configuration step, set node parameters and click Next.
    • Billing Mode: Select the billing mode of the node. Valid values: Subscription, Pay-By-Daily-Config, and Pay-As-You-Go.
    • Node Type: Select the type of the node. Valid values: Common KEC Instance and Dedicated KEC Instance.
    • Worker Instance:
      • Availability Zone: Select the availability zone where the node is deployed.
      • Node Network: Select the subnet in the VPC where the node resides.
      • Instance Type: Select the instance type of the node.
      • Image: Select the image used by the node. KCE supports images of CentOS-7.3 64-bit, CentOS-7.6 64-bit, Debian-8.2 64-bit, and Ubuntu-18.04 64-bit.
      • System Disk: Set the size of the system disk.
      • Data Disk: Set the size of the data disk, and specify whether to format the data disk and mount it to the specified directory.
      • Quantity: Set the node quantity.
    • Container Storage Directory: Customize a directory to store container and image data. We recommend that you store container and image data in a data disk. If you do not customize a directory, container and image data is stored in the /data/docker directory by default.
    • Security Group: Specify the security group for the nodes in the cluster. For more information about recommended settings of the security group, see Recommended security group settings.
    • (Optional) Advanced Settings: Set the following parameters as required:
      • Scrip to Run Before Deployment: Specify custom data to configure the node, namely, specify the script to run before you deploy the node. You must ensure the reentrancy and retry logic of the script. You can view the script and its log files in the /usr/local/ksyun/kce/pre_userscript directory of the node.
      • Scrip to Run After Deployment: Specify custom data to configure the node, namely, specify the script to run after you deploy the node. You must ensure the reentrancy and retry logic of the script. You can view the script and its log files in the /usr/local/ksyun/kce/userscript directory of the node.
      • Cordon: Specify whether to cordon a worker node as required. After you cordon a worker node, new pods will not be scheduled to the node. To schedule new pods to the node, uncordon the node. For more information, see Cordon or drain a node.
      • Label: Customize a label as required.

        Note: You can create nodes on different subnets of different availability zones in the same region to enable cross-zone disaster recovery.

  8. In the Set Basic Information step, set basic parameters and click Next.
    • Project: Specify the project for the resources you purchase.
    • Server Name: Enter a custom name of the server. The name must be 2 to 64 characters in length and can contain letters, digits, and the following special characters: - , . ! $ ^ * ( ) % # & + / : ; < = > [ ] _ ` { | } ~.
    • Login Mode: Set the login mode. Valid values: Password and Key.
  9. Click Create. The node appears in the node list of the cluster.
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback