Updated on 2026-06-16 GMT+08:00

Configuring a Node Pool

If the default node configurations in a cluster do not meet service requirements, you can fine-tune parameters for core components, such as kubelet, kube-proxy, and the container runtime, within the node pool. Fine-tuning these parameters ensures efficient resource utilization and meets workload demands.

Notes and Constraints

  • The configuration parameters of the default node pool (specified by DefaultPool) cannot be modified.
  • This function is supported only in clusters of v1.15 or later. It is not displayed for versions earlier than v1.15.

Modifying Node Pool Configuration Parameters

You can use either of the following ways.

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane, choose Nodes and click the Node Pools tab.
  3. Locate the target node pool and choose More > Manage.

  4. On the Manage Configurations page on the right, modify node pool parameter settings. For more details, see Parameters for Configuring a Node Pool.

You can modify the CCE cluster parameter configurations using an API. For details, see API Reference. For details, see Making an API Request.

PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodepools/{nodepool_id}/configuration

Parameter

Description

project_id

Project ID. For details about how to obtain a project ID, see How to Obtain Parameters in the API URI.

cluster_id

Cluster ID. For details about how to obtain a cluster ID, see How to Obtain Parameters in the API URI.

nodepool_id

Node pool ID. For details about how to obtain a node pool ID, see How to Obtain Parameters in the API URI.

The request body is as follows:

{
  "kind" : "Configuration",
  "apiVersion" : "v3",
  "metadata" : {
    "name" : "configuration"
  },
  "spec" : {
    "packages" : [ {
      "name" : "kubelet",
      "configurations" : [ {
        "name" : "system-reserved-mem",
        "value" : 600
      }, {
        "name" : "kube-reserved-mem",
        "value" : 800
      } ]
    } ]
  }
}

The following parameters are modified:

  • system-reserved-mem: Set it to 600 MiB.
  • kube-reserved-mem: Set it to 800 MiB.

Parameters for Configuring a Node Pool

The parameters listed below can be configured for a node pool.

FAQs

Can I Log In to a Node to Modify Component Settings If the Parameter Is Not in the Supported List?

No. Directly logging in to a node to modify component settings is a high-risk operation. Changes may be lost during subsequent node reset or upgrade, affecting running services. Fully evaluate the risks before proceeding.

If you still choose this method after careful evaluation, use a pre-installation or post-installation script to modify the node parameters instead. For details, see Executing the Pre- or Post-installation Script During Node Creation.

Can I Modify Node Settings in a Default Node Pool?

No. To customize node settings, see Creating a Node Pool or Accepting Nodes in a Node Pool.

Helpful Links