All Products
Search
Document Center

Container Service for Kubernetes:Create and scale out a node pool

Last Updated:May 16, 2024

You can use an elastic node pool to manage a set of Elastic Compute Service (ECS) instances and add these instances to a registered Kubernetes cluster. You can also scale out the node pool. This topic describes how to create an elastic node pool for a registered Kubernetes cluster.

Prerequisites

The operations before Step 6 in the Build a hybrid cloud cluster and add ECS instances to the cluster topic are completed.

Step 1: Create a node pool

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, click the name of the cluster that you want to manage and choose Nodes > Node Pools in the left-side navigation pane.

  3. In the upper-right corner of the Node Pools page, click Create Node Pool.

  4. In the Create Node Pool dialog box, set the parameters for the node pool.

    The following table describes some of the parameters. For more information, see Create a node pool.

    Parameter

    Description

    Expected Nodes

    The number of nodes that you want the node pool to maintain. You can set the Expected Nodes parameter to adjust the number of nodes in the node pool. If you do not want to create nodes in the node pool, set this parameter to 0. For more information, see Scale a node pool.

    Operating system

    The operating system of the node. The CentOS and Alibaba Cloud Linux operating systems are supported.

    ECS Tags

    Add labels to the ECS instances.

    Taints

    Add taints to the nodes in the node pool.

    Node Label

    Add labels to the nodes in the node pool.

    Custom Security Group

    Select the security group to which the nodes belong.

  5. Click Confirm Order.

    On the Node Pools page, if the Status of the node pool is Initializing, the node pool is being created. After the node pool is created, the status of the node pool changes to Active.创建节点池

Step 2: Scale out the node pool

Important
  • By default, you can deploy at most 100 nodes in a cluster. To add more nodes, submit an application in the Quota Center console.

  • When you add an existing ECS instance to a node pool, make sure that the ECS instance is associated with an elastic IP address (EIP) or a NAT gateway is configured for the virtual private cloud (VPC) where the ECS instance is deployed. In addition, make sure that the ECS instance can access the Internet. Otherwise, you cannot add the ECS instance to the node pool.

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, click the name of the cluster that you want to manage and choose Nodes > Node Pools in the left-side navigation pane.

  3. Find the node pool that you want to scale out and click Scale in the Actions column.

  4. Set Expected Nodes and click Confirm. In the message that appears, click OK.

    Note

    If you want to modify the configurations of the node pool, click Modify Node Pool Settings.

    On the Node Pools page, the node pool is in the Scaling state when it is being scaled. After the scaling is completed, the node pool is in the Active state.

What to do next

  1. In the left-side navigation pane of the details page, choose Nodes > Node Pools.

  2. On the Node Pools page, find the scaled node pool and click Details in the Actions column.

  3. On the node pool details page, click the Nodes tab to view the details of the nodes in the node pool.