Updated on 2025-12-08 GMT+08:00

Modifying Node Pool Configurations

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 engine, within the node pool. Fine-tuning these parameters allows for in-depth configuration, ensuring efficient resource utilization while meeting workload demands.

Notes and Constraints

  • The configuration parameters of the default node pool (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.

Using the Console

  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 row containing the target node pool and choose More > Manage.

  4. In the sliding window, modify the node pool parameter values based on service requirements. For details about the parameters, see Cluster Configuration Parameters.

Using an API

You can modify the CCE cluster parameter settings using an API.

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

Parameter

Description

project_id

Project ID.

cluster_id

Cluster ID.

nodepool_id

Node pool ID.

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.