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: "The image version of the node. Valida values are `DOCKER_CUSTOMIZE` and `GENERAL`. Default is `GENERAL`. This parameter will only affect new nodes, not including the existing nodes.",
412
412
},
413
+
// asg pass through arguments
414
+
"scaling_group_name": {
415
+
Type: schema.TypeString,
416
+
Optional: true,
417
+
Description: "Name of relative scaling group.",
418
+
},
419
+
"zones": {
420
+
Type: schema.TypeList,
421
+
Optional: true,
422
+
Description: "List of auto scaling group available zones, for Basic network it is required.",
423
+
Elem: &schema.Schema{Type: schema.TypeString},
424
+
},
425
+
"scaling_group_project_id": {
426
+
Type: schema.TypeInt,
427
+
Optional: true,
428
+
Default: 0,
429
+
Description: "Project ID the scaling group belongs to.",
430
+
},
431
+
"default_cooldown": {
432
+
Type: schema.TypeInt,
433
+
Optional: true,
434
+
Description: "Seconds of scaling group cool down. Default value is `300`.",
435
+
},
436
+
"termination_policies": {
437
+
Type: schema.TypeList,
438
+
MaxItems: 1,
439
+
Optional: true,
440
+
Description: "Policy of scaling group termination. Available values: `[\"OLDEST_INSTANCE\"]`, `[\"NEWEST_INSTANCE\"]`.",
441
+
Elem: &schema.Schema{Type: schema.TypeString},
442
+
},
413
443
//computed
414
444
"status": {
415
445
Type: schema.TypeString,
@@ -609,6 +639,7 @@ func resourceKubernetesNodePoolRead(d *schema.ResourceData, meta interface{}) er
Copy file name to clipboardExpand all lines: website/docs/r/kubernetes_node_pool.html.markdown
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,7 @@ The following arguments are supported:
112
112
*`min_size` - (Required) Minimum number of node.
113
113
*`name` - (Required, ForceNew) Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (`-`) and decimal points.
114
114
*`vpc_id` - (Required, ForceNew) ID of VPC network.
115
+
*`default_cooldown` - (Optional) Seconds of scaling group cool down. Default value is `300`.
115
116
*`delete_keep_instance` - (Optional) Indicate to keep the CVM instance when delete the node pool. Default is `true`.
116
117
*`desired_capacity` - (Optional) Desired capacity ot the node. If `enable_auto_scale` is set `true`, this will be a computed parameter.
117
118
*`enable_auto_scale` - (Optional) Indicate whether to enable auto scaling or not.
@@ -120,10 +121,14 @@ The following arguments are supported:
120
121
*`node_os_type` - (Optional) The image version of the node. Valida values are `DOCKER_CUSTOMIZE` and `GENERAL`. Default is `GENERAL`. This parameter will only affect new nodes, not including the existing nodes.
121
122
*`node_os` - (Optional) Operating system of the cluster, the available values include: `tlinux2.4x86_64`, `ubuntu18.04.1x86_64`, `ubuntu16.04.1 LTSx86_64`, `centos7.6.0_x64` and `centos7.2x86_64`. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
122
123
*`retry_policy` - (Optional, ForceNew) Available values for retry policies include `IMMEDIATE_RETRY` and `INCREMENTAL_INTERVALS`.
124
+
*`scaling_group_name` - (Optional) Name of relative scaling group.
125
+
*`scaling_group_project_id` - (Optional) Project ID the scaling group belongs to.
123
126
*`scaling_mode` - (Optional, ForceNew) Auto scaling mode. Valid values are `CLASSIC_SCALING`(scaling by create/destroy instances), `WAKE_UP_STOPPED_SCALING`(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking).
124
127
*`subnet_ids` - (Optional, ForceNew) ID list of subnet, and for VPC it is required.
125
128
*`taints` - (Optional) Taints of kubernetes node pool created nodes.
129
+
*`termination_policies` - (Optional) Policy of scaling group termination. Available values: `["OLDEST_INSTANCE"]`, `["NEWEST_INSTANCE"]`.
126
130
*`unschedulable` - (Optional, ForceNew) Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
131
+
*`zones` - (Optional) List of auto scaling group available zones, for Basic network it is required.
127
132
128
133
The `auto_scaling_config` object supports the following:
0 commit comments