Volcengine Kubernetes Engine
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Action | String | Yes | CreateScalingPolicy | The API name. The name of the current API is CreateScalingPolicy. |
Version | String | Yes | 2022-05-12 | The API version. The current version of the API is 2022-05-12. |
ClusterId | String | Yes | cc5silum******** | Cluster ID. warning The cluster must be in the {Running,[Ok]} or {Updating,[Progressing]} state. You can call the ListClusters API to obtain the current status of the cluster. |
NodePoolId | String | Yes | pc51i0m6******** | The node pool ID. warning The node pool must be in the {Running,[*]} state. You can call the ListNodePools API to obtain the current status of the node pool. |
Type | String | Yes | Scheduled | The type of the elastic scheduled scaling rule. Values:
|
AdjustmentValue | Integer | Yes | 1 | The number of nodes to be added during node pool autoscaling. The value is an integer. Valid values: 1 to 500. |
ScheduledPolicy | Yes | - | The CronJob or periodic job configuration. | |
ScheduledInstancePolicy | Yes | - | The configurations of the elastic scheduled scaling policy. | |
Enabled | Boolean | No | false | Whether to enable the elastic scheduled scaling rule. Values:
|
ClientToken | String | No | BC028527-33B9-4990-A633-84E9F9****** | A string used to ensure the idempotency of the request. This string is passed in by the caller and must be unique across different requests. ClientToken is case-sensitive and can consist of 64 ASCII characters at most. |
Name | String | No | test-policy | The name of the elastic scheduled scaling rule.
tip
|
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
LaunchTime | String | Yes | 2022-04-01T16:00Z | The start time of the job. The time follows the UTC standard and is accurate down to minutes. This parameter is valid and required only if the Type parameter is set to Scheduled or Recurrence.
tip To ensure that the scheduled scale-out request is submitted, we recommend that you set the LaunchTime parameter to a value at least 1 minute later than the current time. |
RecurrenceType | String | No | Daily | The interval at which the periodic job is performed. This parameter is valid and required only if the Type parameter is set to Recurrence. Valid values:
|
RecurrenceValue | String | No | 1 | The number of recurrences for periodic jobs. This parameter is valid and required only if the Type parameter is set to Recurrence.
|
RecurrenceEndTime | String | No | 2022-04-02T16:00Z | The end time of the periodic job. The time follows the UTC standard and is accurate down to minutes. This parameter is valid and required only if the Type parameter is set to Recurrence. The value must be greater than or equal to LaunchTime and must be a time point within 365 days after the creation or modification time. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
ElasticScheduledInstanceType | String | Yes | Esi | The type of elastic scheduled instances. Valid values:
|
DeliveryType | String | No | Reserve | The delivery type for Segmented ESI. Valid values:
tip This parameter is valid and required only if the ElasticScheduledInstanceType parameter is set to Segmented (Segmented ESI). |
AutoReleaseTime | String | No | 2022-04-01T18:10Z | The time when the scheduled instances are automatically released. The time follows the UTC standard and is accurate down to minutes. This parameter is valid and required only if the ElasticScheduledInstanceType parameter is set to Segmented (Segmented ESI). The time must be a 10‑minute mark.
|
StartDeliveryTime | String | No | 2022-04-01T16:00Z | The start time of the delivery of the elastic scheduled instance. The time follows the UTC standard and is accurate down to minutes. The time must be a 10‑minute mark. Valid values:
|
EndDeliveryTime | String | No | 2022-04-01T16:10Z | The end time of the delivery of the elastic scheduled instance. The time follows the UTC standard and is accurate down to minutes. The time must be a 10‑minute mark, and the interval between this time and StartDeliveryTime must be exactly 10 minutes. Valid values:
|
BestEffort | Boolean | No | true | Specify whether to reserve as many instances as possible when the inventory of elastic scheduled instances cannot fully meet the reservation requirements.
|
Parameter | Type | Sample value | Description |
Parameter | Type | Sample value | Description |
Id | String | spco2o8q2n******** | The scaling rule ID. |
HTTP status code | Error code | Error message | Description |
HTTP status code | Error code | Error message | Description |
400 | OperationDenied.ClusterStatus | The action is forbidden due to cluster status {{statusPhase}} and {{statusConditions}}. | The current status of the specified cluster does not support this operation. Please confirm the required cluster status for this API and try again. |
400 | OperationDenied.NodePoolStatus | The action is forbidden on node pool {{nodePoolId}} due to node pool status {{statusPhase}} and {{statusConditions}}. | The current status of the specified node pool does not support this operation. Please confirm the required node pool status for this API and try again. |
400 | NotSupportScalingPolicy.NodePoolConfig | The specified nodepool config does not support scaling policy. | The specified node pool configurations do not support scaling policies. Specify the parameter and try again. |
400 | LimitExceeded.MaximumScalingPolicies | You have reached the limit of the number of scaling policies that you can create. | The number of scaling policies that can be created exceeds the upper limit. You can create at most 10 scaling rules per node pool. |
400 | LaunchTimeMismatch.StartDeliveryTime | The specified StartDeliveryTime and LaunchTime are mismatched. | The specified delivery start time does not match the job trigger time. |
400 | LaunchTimeMismatch.EndDeliveryTime | The specified EndDeliveryTime and LaunchTime are mismatched. | The specified delivery end time does not match the scheduled order submission time. Specify appropriate parameter values based on the parameter descriptions and try again. |
400 | StartDeliveryTimeMismatch.EndDeliveryTime | The specified EndDeliveryTime and StartDeliveryTime are mismatched. | The specified delivery end time does not match the delivery start time. The interval between the two time points must be 10 minutes. Specify the parameter and try again. |
400 | LimitExceeded.AdjustmentValue | You have reached the limit on the size of AdjustmentValue. | The AdjustmentValue value of scaling exceeds the upper limit. Specify the parameter and try again. |
400 | EndDeliveryTimeMismatch.AutoReleaseTime | The specified EndDeliveryTime and AutoReleaseTime are mismatched. | The specified automatic release time does not match the delivery end time. Specify appropriate parameter values based on the parameter descriptions and try again. |
400 | LaunchTimeMismatch.AutoReleaseTime | The specified AutoReleaseTime and LaunchTime are mismatched. | The specified automatic release time does not match the scheduled order submission time. Specify appropriate parameter values based on the parameter descriptions and try again. |
400 | InvalidRegionForScheduledInstance.Unsupported | The specified region does not support scheduled instance. | |
409 | Conflict.Name | The specified name conflicts with existing {{resourceType}}. | A resource with the same name exists in the specified node pool. Update the resource name and try again later. |