|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
|||
| WithPublicIp |
boolean |
Specifies whether to assign a public IP address to the instances. Valid values:
Default value: |
false |
| SpotInstanceRemedy |
boolean |
If enabled, the auto scaling group attempts to create a new instance to replace a spot instance that is about to be reclaimed. This process is triggered when the auto scaling group receives a system message about the impending reclamation. Valid values:
Default value: |
true |
| ComponentTags |
array |
A list of custom component tags. |
|
|
string |
|||
| DataDisks |
array |
The data disks. Currently, the array can contain only one data disk. |
|
| DataDisk |
The data disk. |
||
| CompensateWithOnDemand |
boolean |
Specifies whether to automatically create pay-as-you-go instances to meet the required capacity when the number of preemptible instances is insufficient. This parameter is effective only when |
true |
| AutoCompensateState |
boolean |
Default value: |
false |
| SystemDisk | SystemDisk |
The system disk. |
|
| PrivatePoolOptions | PrivatePoolOptions |
The private pool options. This parameter is effective only when you create pay-as-you-go instances. |
|
| IaaSType |
string |
The IaaS type of the node group. Valid values:
|
|
| NodeGroupType |
string |
The type of the node group. Valid values:
|
CORE |
| ImageId |
string |
The image ID. This parameter is for internal use only. If you specify this parameter, the system uses the specified image to create the node group. |
|
| AckConfig |
AckConfig |
The ACK node group configuration. This parameter is required only when |
|
| PaymentType |
string |
The billing method of the node group. If you do not specify this parameter, the billing method of the cluster is used. Valid values:
Default value: |
PayAsYouGo |
| InstanceTypes |
array |
The instance types. You can specify 1 to 100 instance types. |
["ecs.g6.xlarge"] |
|
string |
The instance type. |
ecs.g7.2xlarge |
|
| CostOptimizedConfig | CostOptimizedConfig |
The cost optimization settings. |
|
| GracefulShutdown |
boolean |
Specifies whether to enable graceful shutdown for the components in the node group. Valid values:
Default value: |
false |
| SpotStrategy |
string |
The preemption strategy for preemptible instances. Valid values:
Default value: |
NoSpot |
| ZoneId |
string |
The zone ID. |
cn-beijing-h |
| NodeGroupName |
string |
The name of the node group. The name can be up to 128 characters in length and must be unique within the cluster. |
core-1 |
| NodeCount |
integer |
The number of nodes in the node group. Valid values: 1 to 1,000. |
3 |
| VSwitchIds |
array |
The vSwitch IDs. You can specify 1 to 20 vSwitch IDs. |
["vsw-hp35g7ya5ymw68mmg****"] |
|
string |
The vSwitch ID. |
||
| SpotBidPrices |
array |
The bid prices for the preemptible instances. This parameter is effective only when |
|
| SpotBidPrice | |||
| NodeResizeStrategy |
string |
The node scale-out strategy. Valid values:
Default value: |
PRIORITY |
| AutoScalingPolicy |
AutoScalingPolicy |
The auto scaling policy. |
|
| SubscriptionConfig | SubscriptionConfig |
The subscription settings of the node group. If you do not specify this parameter, the subscription settings of the cluster are used. |
|
| AdditionalSecurityGroupIds |
array |
The IDs of the additional security groups. In addition to the security group of the cluster, you can specify additional security groups for the node group. You can specify up to two security group IDs. |
["sg-hp3abbae8lb6lmb1****"] |
|
string |
The security group ID. |
sg-hp3abbae8lb6lmb1**** |
|
| DeploymentSetStrategy |
string |
The deployment set strategy. Valid values:
Default value: |
NONE |