All Products
Search
Document Center

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

Last Updated:Aug 15, 2023

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. 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 Create Node Pool dialog box, set the parameters for the node pool.

    The following table describes the parameters. For more information, see Create an ACK dedicated cluster.

    Configuration

    Description

    Quantity

    Specify the initial number of nodes in the node pool. If you do not want to create nodes in the node pool, set this parameter to 0.

    Operating System

    Select the operating system for the nodes in the node pool. Only CentOS and Alibaba Cloud Linux are supported.

    Node Label

    You can add labels to the nodes in the node pool.

    ECS Label

    You can add labels to the selected ECS instances.

    Taints

    You can add taints to the nodes in the node pool.

    Security Group

    Select the security group to which the nodes belong.

  4. Click Confirm Order.

    On the Node Pools page, if the state of the node pool is Initializing, it indicates that the node pool is being created. After the node pool is created, the state of the node pool changes to Active. Create a node pool

Step 2: Scale out the node pool

Important
  • By default, a cluster can contain at most 100 nodes. To increase the quota, Go to the Quota Center page to submit a ticket.

  • When you add an 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 has Internet access. Otherwise, you cannot add the ECS instance.

Before you scale out the node pool for a registered cluster, take note of the following limits:

  • By default, a cluster can contain at most 100 nodes. To increase the quota, Submit a ticket.

  • When you add an 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 has Internet access. Otherwise, you cannot add the ECS instance.

  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. On the Node Pools page, find the node pool that you want to scale out and click Scale Out in the Actions column.

  4. In the dialog box that appears, set Nodes to Add to the number of nodes that you want to add and click Submit.

    Note

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

    On the Node Pools page, the state of the node pool changes to Scaling. After the node pool is scaled out, the state of the node pool changes to Active.

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. Click the Nodes tab to view detailed information about the newly added nodes.