replicas
parameter in the YAML configuration file.replicas
parameter in the YAML configuration file.minReplicas
and maxReplicas
parameters in the YAML configuration file to set the range for the number of nodes. Cluster Autoscaler (CA) adjusts the number of nodes in the current node pool within the specified range.Function | Parameter and Values | Description |
Auto Scaling | Parameter: spec.scaling | The auto-scaling feature is enabled by default. If the auto-scaling feature is enabled for a node pool, CA automatically scales in or out the node pool. |
Number of Nodes | Parameter: spec.scaling.maxReplicas and spec.scaling.minReplicas Valid values: The value is customizable. | The number of nodes in the node pool cannot exceed the specified range. If auto-scaling is enabled for a node pool, the number of native nodes in the node pool can be automatically adjusted within the specified range. |
Scaling policy | Parameter: spec.scaling.createPolicy Example values: Zone priority in the console, or ZonePriority in the YAML configuration file.Zone equality in the console, or ZoneEquality in the YAML configuration file. | If you specify Zone priority, the auto-scaling feature performs scaling in the preferred zone first. If the preferred zone cannot be scaled, other zones are used. If you specify Zone equality, the auto-scaling feature distributes node instances evenly among the zones, or subnets, specified in the scaling group. This policy takes effect only if you have configured multiple subnets. |
scaling
parameter in the YAML configuration file for a node pool.apiVersion: node.tke.cloud.tencent.com/v1beta1kind: MachineSetspec:type: NativedisplayName: mstestreplicas: 2autoRepair: truedeletePolicy: RandomhealthCheckPolicyName: test-allinstanceTypes:- C3.LARGE8subnetIDs:- subnet-xxxxxxxx- subnet-yyyyyyyyscaling:createPolicy: ZonePriorityminReplicas: 10maxReplicas: 100template:spec:displayName: mtestruntimeRootDir: /var/lib/containerdunschedulable: false......
Was this page helpful?