alicloud.cs.AutoscalingConfig
Create AutoscalingConfig Resource
new AutoscalingConfig(name: string, args?: AutoscalingConfigArgs, opts?: CustomResourceOptions);
@overload
def AutoscalingConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cool_down_duration: Optional[str] = None,
expander: Optional[str] = None,
gpu_utilization_threshold: Optional[str] = None,
scale_down_enabled: Optional[bool] = None,
scan_interval: Optional[str] = None,
unneeded_duration: Optional[str] = None,
utilization_threshold: Optional[str] = None)
@overload
def AutoscalingConfig(resource_name: str,
args: Optional[AutoscalingConfigArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewAutoscalingConfig(ctx *Context, name string, args *AutoscalingConfigArgs, opts ...ResourceOption) (*AutoscalingConfig, error)
public AutoscalingConfig(string name, AutoscalingConfigArgs? args = null, CustomResourceOptions? opts = null)
public AutoscalingConfig(String name, AutoscalingConfigArgs args)
public AutoscalingConfig(String name, AutoscalingConfigArgs args, CustomResourceOptions options)
type: alicloud:cs:AutoscalingConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutoscalingConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AutoscalingConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AutoscalingConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutoscalingConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AutoscalingConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AutoscalingConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AutoscalingConfig resource accepts the following input properties:
- Cluster
Id string The id of kubernetes cluster.
- Cool
Down stringDuration The cool down duration. Default is
10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.- Expander string
The policy for selecting which node pool to scale. Valid values:
least-waste
,random
,priority
. For more information on these policies, see Configure auto scaling- Gpu
Utilization stringThreshold The scale-in threshold for GPU instance. Default is
0.5
.- Scale
Down boolEnabled Specify whether to allow the scale-in of nodes. Default is
true
.- Scan
Interval string The interval at which the cluster is reevaluated for scaling. Default is
30s
.- Unneeded
Duration string The unneeded duration. Default is
10m
.- Utilization
Threshold string The scale-in threshold. Default is
0.5
.
- Cluster
Id string The id of kubernetes cluster.
- Cool
Down stringDuration The cool down duration. Default is
10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.- Expander string
The policy for selecting which node pool to scale. Valid values:
least-waste
,random
,priority
. For more information on these policies, see Configure auto scaling- Gpu
Utilization stringThreshold The scale-in threshold for GPU instance. Default is
0.5
.- Scale
Down boolEnabled Specify whether to allow the scale-in of nodes. Default is
true
.- Scan
Interval string The interval at which the cluster is reevaluated for scaling. Default is
30s
.- Unneeded
Duration string The unneeded duration. Default is
10m
.- Utilization
Threshold string The scale-in threshold. Default is
0.5
.
- cluster
Id String The id of kubernetes cluster.
- cool
Down StringDuration The cool down duration. Default is
10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.- expander String
The policy for selecting which node pool to scale. Valid values:
least-waste
,random
,priority
. For more information on these policies, see Configure auto scaling- gpu
Utilization StringThreshold The scale-in threshold for GPU instance. Default is
0.5
.- scale
Down BooleanEnabled Specify whether to allow the scale-in of nodes. Default is
true
.- scan
Interval String The interval at which the cluster is reevaluated for scaling. Default is
30s
.- unneeded
Duration String The unneeded duration. Default is
10m
.- utilization
Threshold String The scale-in threshold. Default is
0.5
.
- cluster
Id string The id of kubernetes cluster.
- cool
Down stringDuration The cool down duration. Default is
10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.- expander string
The policy for selecting which node pool to scale. Valid values:
least-waste
,random
,priority
. For more information on these policies, see Configure auto scaling- gpu
Utilization stringThreshold The scale-in threshold for GPU instance. Default is
0.5
.- scale
Down booleanEnabled Specify whether to allow the scale-in of nodes. Default is
true
.- scan
Interval string The interval at which the cluster is reevaluated for scaling. Default is
30s
.- unneeded
Duration string The unneeded duration. Default is
10m
.- utilization
Threshold string The scale-in threshold. Default is
0.5
.
- cluster_
id str The id of kubernetes cluster.
- cool_
down_ strduration The cool down duration. Default is
10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.- expander str
The policy for selecting which node pool to scale. Valid values:
least-waste
,random
,priority
. For more information on these policies, see Configure auto scaling- gpu_
utilization_ strthreshold The scale-in threshold for GPU instance. Default is
0.5
.- scale_
down_ boolenabled Specify whether to allow the scale-in of nodes. Default is
true
.- scan_
interval str The interval at which the cluster is reevaluated for scaling. Default is
30s
.- unneeded_
duration str The unneeded duration. Default is
10m
.- utilization_
threshold str The scale-in threshold. Default is
0.5
.
- cluster
Id String The id of kubernetes cluster.
- cool
Down StringDuration The cool down duration. Default is
10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.- expander String
The policy for selecting which node pool to scale. Valid values:
least-waste
,random
,priority
. For more information on these policies, see Configure auto scaling- gpu
Utilization StringThreshold The scale-in threshold for GPU instance. Default is
0.5
.- scale
Down BooleanEnabled Specify whether to allow the scale-in of nodes. Default is
true
.- scan
Interval String The interval at which the cluster is reevaluated for scaling. Default is
30s
.- unneeded
Duration String The unneeded duration. Default is
10m
.- utilization
Threshold String The scale-in threshold. Default is
0.5
.
Outputs
All input properties are implicitly available as output properties. Additionally, the AutoscalingConfig resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing AutoscalingConfig Resource
Get an existing AutoscalingConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AutoscalingConfigState, opts?: CustomResourceOptions): AutoscalingConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cool_down_duration: Optional[str] = None,
expander: Optional[str] = None,
gpu_utilization_threshold: Optional[str] = None,
scale_down_enabled: Optional[bool] = None,
scan_interval: Optional[str] = None,
unneeded_duration: Optional[str] = None,
utilization_threshold: Optional[str] = None) -> AutoscalingConfig
func GetAutoscalingConfig(ctx *Context, name string, id IDInput, state *AutoscalingConfigState, opts ...ResourceOption) (*AutoscalingConfig, error)
public static AutoscalingConfig Get(string name, Input<string> id, AutoscalingConfigState? state, CustomResourceOptions? opts = null)
public static AutoscalingConfig get(String name, Output<String> id, AutoscalingConfigState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Id string The id of kubernetes cluster.
- Cool
Down stringDuration The cool down duration. Default is
10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.- Expander string
The policy for selecting which node pool to scale. Valid values:
least-waste
,random
,priority
. For more information on these policies, see Configure auto scaling- Gpu
Utilization stringThreshold The scale-in threshold for GPU instance. Default is
0.5
.- Scale
Down boolEnabled Specify whether to allow the scale-in of nodes. Default is
true
.- Scan
Interval string The interval at which the cluster is reevaluated for scaling. Default is
30s
.- Unneeded
Duration string The unneeded duration. Default is
10m
.- Utilization
Threshold string The scale-in threshold. Default is
0.5
.
- Cluster
Id string The id of kubernetes cluster.
- Cool
Down stringDuration The cool down duration. Default is
10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.- Expander string
The policy for selecting which node pool to scale. Valid values:
least-waste
,random
,priority
. For more information on these policies, see Configure auto scaling- Gpu
Utilization stringThreshold The scale-in threshold for GPU instance. Default is
0.5
.- Scale
Down boolEnabled Specify whether to allow the scale-in of nodes. Default is
true
.- Scan
Interval string The interval at which the cluster is reevaluated for scaling. Default is
30s
.- Unneeded
Duration string The unneeded duration. Default is
10m
.- Utilization
Threshold string The scale-in threshold. Default is
0.5
.
- cluster
Id String The id of kubernetes cluster.
- cool
Down StringDuration The cool down duration. Default is
10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.- expander String
The policy for selecting which node pool to scale. Valid values:
least-waste
,random
,priority
. For more information on these policies, see Configure auto scaling- gpu
Utilization StringThreshold The scale-in threshold for GPU instance. Default is
0.5
.- scale
Down BooleanEnabled Specify whether to allow the scale-in of nodes. Default is
true
.- scan
Interval String The interval at which the cluster is reevaluated for scaling. Default is
30s
.- unneeded
Duration String The unneeded duration. Default is
10m
.- utilization
Threshold String The scale-in threshold. Default is
0.5
.
- cluster
Id string The id of kubernetes cluster.
- cool
Down stringDuration The cool down duration. Default is
10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.- expander string
The policy for selecting which node pool to scale. Valid values:
least-waste
,random
,priority
. For more information on these policies, see Configure auto scaling- gpu
Utilization stringThreshold The scale-in threshold for GPU instance. Default is
0.5
.- scale
Down booleanEnabled Specify whether to allow the scale-in of nodes. Default is
true
.- scan
Interval string The interval at which the cluster is reevaluated for scaling. Default is
30s
.- unneeded
Duration string The unneeded duration. Default is
10m
.- utilization
Threshold string The scale-in threshold. Default is
0.5
.
- cluster_
id str The id of kubernetes cluster.
- cool_
down_ strduration The cool down duration. Default is
10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.- expander str
The policy for selecting which node pool to scale. Valid values:
least-waste
,random
,priority
. For more information on these policies, see Configure auto scaling- gpu_
utilization_ strthreshold The scale-in threshold for GPU instance. Default is
0.5
.- scale_
down_ boolenabled Specify whether to allow the scale-in of nodes. Default is
true
.- scan_
interval str The interval at which the cluster is reevaluated for scaling. Default is
30s
.- unneeded_
duration str The unneeded duration. Default is
10m
.- utilization_
threshold str The scale-in threshold. Default is
0.5
.
- cluster
Id String The id of kubernetes cluster.
- cool
Down StringDuration The cool down duration. Default is
10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.- expander String
The policy for selecting which node pool to scale. Valid values:
least-waste
,random
,priority
. For more information on these policies, see Configure auto scaling- gpu
Utilization StringThreshold The scale-in threshold for GPU instance. Default is
0.5
.- scale
Down BooleanEnabled Specify whether to allow the scale-in of nodes. Default is
true
.- scan
Interval String The interval at which the cluster is reevaluated for scaling. Default is
30s
.- unneeded
Duration String The unneeded duration. Default is
10m
.- utilization
Threshold String The scale-in threshold. Default is
0.5
.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.