You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Indicates whether to enable scale-in.",
490
+
},
491
+
"expander": {
492
+
Type: schema.TypeString,
493
+
Optional: true,
494
+
Computed: true,
495
+
Description: "Indicates which scale-out method will be used when there are multiple scaling groups. Valid values: `random` - select a random scaling group, `most-pods` - select the scaling group that can schedule the most pods, `least-waste` - select the scaling group that can ensure the fewest remaining resources after Pod scheduling.",
496
+
},
497
+
"max_concurrent_scale_in": {
498
+
Type: schema.TypeInt,
499
+
Optional: true,
500
+
Computed: true,
501
+
Description: "Max concurrent scale-in volume.",
502
+
},
503
+
"scale_in_delay": {
504
+
Type: schema.TypeInt,
505
+
Optional: true,
506
+
Computed: true,
507
+
Description: "Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.",
508
+
},
509
+
"scale_in_unneeded_time": {
510
+
Type: schema.TypeInt,
511
+
Optional: true,
512
+
Computed: true,
513
+
Description: "Number of consecutive minutes of idleness after which the node is subject to scale-in.",
514
+
},
515
+
"scale_in_utilization_threshold": {
516
+
Type: schema.TypeInt,
517
+
Optional: true,
518
+
Computed: true,
519
+
Description: "Percentage of node resource usage below which the node is considered to be idle.",
520
+
},
521
+
"ignore_daemon_sets_utilization": {
522
+
Type: schema.TypeBool,
523
+
Optional: true,
524
+
Computed: true,
525
+
Description: "Whether to ignore DaemonSet pods by default when calculating resource usage.",
526
+
},
527
+
"skip_nodes_with_local_storage": {
528
+
Type: schema.TypeBool,
529
+
Optional: true,
530
+
Computed: true,
531
+
Description: "During scale-in, ignore nodes with local storage pods.",
532
+
},
533
+
"skip_nodes_with_system_pods": {
534
+
Type: schema.TypeBool,
535
+
Optional: true,
536
+
Computed: true,
537
+
Description: "During scale-in, ignore nodes with pods in the kube-system namespace that are not managed by DaemonSet.",
Copy file name to clipboardExpand all lines: website/docs/r/kubernetes_cluster.html.markdown
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -237,6 +237,7 @@ The following arguments are supported:
237
237
*`mount_target` - (Optional, ForceNew) Mount target. Default is not mounting.
238
238
*`network_type` - (Optional, ForceNew) Cluster network type, GR or VPC-CNI. Default is GR.
239
239
*`node_name_type` - (Optional, ForceNew) Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
240
+
*`node_pool_global_config` - (Optional) Global config effective for all node pools.
240
241
*`project_id` - (Optional) Project ID, default value is 0.
241
242
*`service_cidr` - (Optional, ForceNew) A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
242
243
*`tags` - (Optional) The tags of the cluster.
@@ -281,6 +282,18 @@ The `master_config` object supports the following:
281
282
*`system_disk_type` - (Optional, ForceNew) System disk type. For more information on limits of system disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk, `LOCAL_SSD`: local SSD disk, `CLOUD_BASIC`: HDD cloud disk, `CLOUD_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage. NOTE: `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.
282
283
*`user_data` - (Optional, ForceNew) ase64-encoded User Data text, the length limit is 16KB.
283
284
285
+
The `node_pool_global_config` object supports the following:
286
+
287
+
*`expander` - (Optional) Indicates which scale-out method will be used when there are multiple scaling groups. Valid values: `random` - select a random scaling group, `most-pods` - select the scaling group that can schedule the most pods, `least-waste` - select the scaling group that can ensure the fewest remaining resources after Pod scheduling.
288
+
*`ignore_daemon_sets_utilization` - (Optional) Whether to ignore DaemonSet pods by default when calculating resource usage.
289
+
*`is_scale_in_enabled` - (Optional) Indicates whether to enable scale-in.
290
+
*`max_concurrent_scale_in` - (Optional) Max concurrent scale-in volume.
291
+
*`scale_in_delay` - (Optional) Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
292
+
*`scale_in_unneeded_time` - (Optional) Number of consecutive minutes of idleness after which the node is subject to scale-in.
293
+
*`scale_in_utilization_threshold` - (Optional) Percentage of node resource usage below which the node is considered to be idle.
294
+
*`skip_nodes_with_local_storage` - (Optional) During scale-in, ignore nodes with local storage pods.
295
+
*`skip_nodes_with_system_pods` - (Optional) During scale-in, ignore nodes with pods in the kube-system namespace that are not managed by DaemonSet.
296
+
284
297
The `worker_config` object supports the following:
285
298
286
299
*`instance_type` - (Required, ForceNew) Specified types of CVM instance.
0 commit comments