Files
doc-exports/docs/cce/umn/cce_10_0213.html
qiujiandong1 ab1e53a279 CCE UMN 20251031 version
Reviewed-by: Gergo-Bence Lorincz <a200452876@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com>
Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
2026-01-15 10:25:22 +00:00

84 KiB

Modifying Cluster Configurations

Cluster configuration parameters are underlying rules that define node behavior, resource allocation, communication rules, and scaling policies in a distributed system. They affect the cluster's performance, stability, scalability, and fault tolerance. You can customize the core components of a CCE cluster by adjusting these parameter settings. The following table lists cluster configuration parameters that you can adjust as needed.

Table 1 Cluster configuration parameters

Category

Description

kube-apiserver configurations

Control resource scheduling, manage requests, ensure security, and toggle feature statuses to maintain efficient cluster operation and proper resource allocation.

Modifying kube-apiserver parameters will restart the cluster and terminate existing persistent connections. Exercise caution when performing this operation.

Scheduler configurations

Manage and optimize resource scheduling, request control, and GPU resource allocation in clusters. You can dynamically adjust scheduling policies based on cluster loads and resource requirements to ensure efficient cluster running and maximize resource utilization.

kube-controller-manager configurations

Control the behavior and synchronization frequency of different controllers in a cluster to optimize cluster resource management and task scheduling.

Network component configurations (supported only by CCE Turbo clusters)

Control and optimize the management of network resources in clusters, especially in heavy-load and large-scale clusters, to ensure efficient network running and proper resource allocation.

Network component configurations (supported only by CCE clusters using VPC networks)

Specify the IP address range that does not require SNAT. This avoids unnecessary SNAT and optimizes network performance.

External controller manager configurations (supported only by clusters v1.21 or later)

Restrict the resource usage in the namespace to ensure fair and reasonable resource allocation.

Using the Console

  1. Log in to the CCE console. In the navigation pane, choose Clusters.
  2. Locate the target cluster, click ... to view more operations on the cluster, and choose Manage. This function allows you to modify parameter settings of Kubernetes native components and proprietary components.

  3. In the Manage Component window, modify the Kubernetes parameter values based on service requirements. For details about the parameters, see kube-apiserver configurations.

Using an API

You can modify the CCE cluster configuration parameters using an API.

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

Parameter

Description

project_id

Project ID. For details about how to obtain the project ID, see .

cluster_id

Cluster ID. For details about how to obtain the cluster ID, see .

The request body is as follows:

{
  "kind" : "Configuration",
  "apiVersion" : "v3",
  "metadata" : {
    "name" : "configuration"
  },
  "spec" : {
    "packages" : [ {
      "name" : "kube-apiserver",
      "configurations" : [ {
        "name" : "default-not-ready-toleration-seconds",
        "value" : 300
      }, {
        "name" : "default-unreachable-toleration-seconds",
        "value" : 300
      } ]
    } ]
  }
}

In this example, the configuration parameters of the cluster server (kube-apiserver) are modified as follows:

  • Toleration time for nodes in the NotReady state during container migration (default-not-ready-toleration-seconds): 300
  • Toleration time for nodes in the unreachable state during container migration (default-unreachable-toleration-seconds): 300