1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cs
  5. KubernetesAutoscaler
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.cs.KubernetesAutoscaler

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Create KubernetesAutoscaler Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new KubernetesAutoscaler(name: string, args: KubernetesAutoscalerArgs, opts?: CustomResourceOptions);
    @overload
    def KubernetesAutoscaler(resource_name: str,
                             args: KubernetesAutoscalerArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def KubernetesAutoscaler(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             cluster_id: Optional[str] = None,
                             cool_down_duration: Optional[str] = None,
                             defer_scale_in_duration: Optional[str] = None,
                             utilization: Optional[str] = None,
                             nodepools: Optional[Sequence[KubernetesAutoscalerNodepoolArgs]] = None,
                             use_ecs_ram_role_token: Optional[bool] = None)
    func NewKubernetesAutoscaler(ctx *Context, name string, args KubernetesAutoscalerArgs, opts ...ResourceOption) (*KubernetesAutoscaler, error)
    public KubernetesAutoscaler(string name, KubernetesAutoscalerArgs args, CustomResourceOptions? opts = null)
    public KubernetesAutoscaler(String name, KubernetesAutoscalerArgs args)
    public KubernetesAutoscaler(String name, KubernetesAutoscalerArgs args, CustomResourceOptions options)
    
    type: alicloud:cs:KubernetesAutoscaler
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args KubernetesAutoscalerArgs
    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 KubernetesAutoscalerArgs
    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 KubernetesAutoscalerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KubernetesAutoscalerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KubernetesAutoscalerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var kubernetesAutoscalerResource = new AliCloud.CS.KubernetesAutoscaler("kubernetesAutoscalerResource", new()
    {
        ClusterId = "string",
        CoolDownDuration = "string",
        DeferScaleInDuration = "string",
        Utilization = "string",
        Nodepools = new[]
        {
            new AliCloud.CS.Inputs.KubernetesAutoscalerNodepoolArgs
            {
                Id = "string",
                Labels = "string",
                Taints = "string",
            },
        },
        UseEcsRamRoleToken = false,
    });
    
    example, err := cs.NewKubernetesAutoscaler(ctx, "kubernetesAutoscalerResource", &cs.KubernetesAutoscalerArgs{
    	ClusterId:            pulumi.String("string"),
    	CoolDownDuration:     pulumi.String("string"),
    	DeferScaleInDuration: pulumi.String("string"),
    	Utilization:          pulumi.String("string"),
    	Nodepools: cs.KubernetesAutoscalerNodepoolArray{
    		&cs.KubernetesAutoscalerNodepoolArgs{
    			Id:     pulumi.String("string"),
    			Labels: pulumi.String("string"),
    			Taints: pulumi.String("string"),
    		},
    	},
    	UseEcsRamRoleToken: pulumi.Bool(false),
    })
    
    var kubernetesAutoscalerResource = new KubernetesAutoscaler("kubernetesAutoscalerResource", KubernetesAutoscalerArgs.builder()
        .clusterId("string")
        .coolDownDuration("string")
        .deferScaleInDuration("string")
        .utilization("string")
        .nodepools(KubernetesAutoscalerNodepoolArgs.builder()
            .id("string")
            .labels("string")
            .taints("string")
            .build())
        .useEcsRamRoleToken(false)
        .build());
    
    kubernetes_autoscaler_resource = alicloud.cs.KubernetesAutoscaler("kubernetesAutoscalerResource",
        cluster_id="string",
        cool_down_duration="string",
        defer_scale_in_duration="string",
        utilization="string",
        nodepools=[alicloud.cs.KubernetesAutoscalerNodepoolArgs(
            id="string",
            labels="string",
            taints="string",
        )],
        use_ecs_ram_role_token=False)
    
    const kubernetesAutoscalerResource = new alicloud.cs.KubernetesAutoscaler("kubernetesAutoscalerResource", {
        clusterId: "string",
        coolDownDuration: "string",
        deferScaleInDuration: "string",
        utilization: "string",
        nodepools: [{
            id: "string",
            labels: "string",
            taints: "string",
        }],
        useEcsRamRoleToken: false,
    });
    
    type: alicloud:cs:KubernetesAutoscaler
    properties:
        clusterId: string
        coolDownDuration: string
        deferScaleInDuration: string
        nodepools:
            - id: string
              labels: string
              taints: string
        useEcsRamRoleToken: false
        utilization: string
    

    KubernetesAutoscaler 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 KubernetesAutoscaler resource accepts the following input properties:

    ClusterId string
    The id of kubernetes cluster.
    CoolDownDuration string
    The cool_down_duration option of cluster-autoscaler.
    DeferScaleInDuration string
    The defer_scale_in_duration option of cluster-autoscaler.
    Utilization string
    The utilization option of cluster-autoscaler.
    Nodepools List<Pulumi.AliCloud.CS.Inputs.KubernetesAutoscalerNodepool>
    The list of the node pools. See nodepools below.
    UseEcsRamRoleToken bool
    Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
    ClusterId string
    The id of kubernetes cluster.
    CoolDownDuration string
    The cool_down_duration option of cluster-autoscaler.
    DeferScaleInDuration string
    The defer_scale_in_duration option of cluster-autoscaler.
    Utilization string
    The utilization option of cluster-autoscaler.
    Nodepools []KubernetesAutoscalerNodepoolArgs
    The list of the node pools. See nodepools below.
    UseEcsRamRoleToken bool
    Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
    clusterId String
    The id of kubernetes cluster.
    coolDownDuration String
    The cool_down_duration option of cluster-autoscaler.
    deferScaleInDuration String
    The defer_scale_in_duration option of cluster-autoscaler.
    utilization String
    The utilization option of cluster-autoscaler.
    nodepools List<KubernetesAutoscalerNodepool>
    The list of the node pools. See nodepools below.
    useEcsRamRoleToken Boolean
    Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
    clusterId string
    The id of kubernetes cluster.
    coolDownDuration string
    The cool_down_duration option of cluster-autoscaler.
    deferScaleInDuration string
    The defer_scale_in_duration option of cluster-autoscaler.
    utilization string
    The utilization option of cluster-autoscaler.
    nodepools KubernetesAutoscalerNodepool[]
    The list of the node pools. See nodepools below.
    useEcsRamRoleToken boolean
    Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
    cluster_id str
    The id of kubernetes cluster.
    cool_down_duration str
    The cool_down_duration option of cluster-autoscaler.
    defer_scale_in_duration str
    The defer_scale_in_duration option of cluster-autoscaler.
    utilization str
    The utilization option of cluster-autoscaler.
    nodepools Sequence[KubernetesAutoscalerNodepoolArgs]
    The list of the node pools. See nodepools below.
    use_ecs_ram_role_token bool
    Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
    clusterId String
    The id of kubernetes cluster.
    coolDownDuration String
    The cool_down_duration option of cluster-autoscaler.
    deferScaleInDuration String
    The defer_scale_in_duration option of cluster-autoscaler.
    utilization String
    The utilization option of cluster-autoscaler.
    nodepools List<Property Map>
    The list of the node pools. See nodepools below.
    useEcsRamRoleToken Boolean
    Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false

    Outputs

    All input properties are implicitly available as output properties. Additionally, the KubernetesAutoscaler 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 KubernetesAutoscaler Resource

    Get an existing KubernetesAutoscaler 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?: KubernetesAutoscalerState, opts?: CustomResourceOptions): KubernetesAutoscaler
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            cool_down_duration: Optional[str] = None,
            defer_scale_in_duration: Optional[str] = None,
            nodepools: Optional[Sequence[KubernetesAutoscalerNodepoolArgs]] = None,
            use_ecs_ram_role_token: Optional[bool] = None,
            utilization: Optional[str] = None) -> KubernetesAutoscaler
    func GetKubernetesAutoscaler(ctx *Context, name string, id IDInput, state *KubernetesAutoscalerState, opts ...ResourceOption) (*KubernetesAutoscaler, error)
    public static KubernetesAutoscaler Get(string name, Input<string> id, KubernetesAutoscalerState? state, CustomResourceOptions? opts = null)
    public static KubernetesAutoscaler get(String name, Output<String> id, KubernetesAutoscalerState 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.
    The following state arguments are supported:
    ClusterId string
    The id of kubernetes cluster.
    CoolDownDuration string
    The cool_down_duration option of cluster-autoscaler.
    DeferScaleInDuration string
    The defer_scale_in_duration option of cluster-autoscaler.
    Nodepools List<Pulumi.AliCloud.CS.Inputs.KubernetesAutoscalerNodepool>
    The list of the node pools. See nodepools below.
    UseEcsRamRoleToken bool
    Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
    Utilization string
    The utilization option of cluster-autoscaler.
    ClusterId string
    The id of kubernetes cluster.
    CoolDownDuration string
    The cool_down_duration option of cluster-autoscaler.
    DeferScaleInDuration string
    The defer_scale_in_duration option of cluster-autoscaler.
    Nodepools []KubernetesAutoscalerNodepoolArgs
    The list of the node pools. See nodepools below.
    UseEcsRamRoleToken bool
    Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
    Utilization string
    The utilization option of cluster-autoscaler.
    clusterId String
    The id of kubernetes cluster.
    coolDownDuration String
    The cool_down_duration option of cluster-autoscaler.
    deferScaleInDuration String
    The defer_scale_in_duration option of cluster-autoscaler.
    nodepools List<KubernetesAutoscalerNodepool>
    The list of the node pools. See nodepools below.
    useEcsRamRoleToken Boolean
    Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
    utilization String
    The utilization option of cluster-autoscaler.
    clusterId string
    The id of kubernetes cluster.
    coolDownDuration string
    The cool_down_duration option of cluster-autoscaler.
    deferScaleInDuration string
    The defer_scale_in_duration option of cluster-autoscaler.
    nodepools KubernetesAutoscalerNodepool[]
    The list of the node pools. See nodepools below.
    useEcsRamRoleToken boolean
    Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
    utilization string
    The utilization option of cluster-autoscaler.
    cluster_id str
    The id of kubernetes cluster.
    cool_down_duration str
    The cool_down_duration option of cluster-autoscaler.
    defer_scale_in_duration str
    The defer_scale_in_duration option of cluster-autoscaler.
    nodepools Sequence[KubernetesAutoscalerNodepoolArgs]
    The list of the node pools. See nodepools below.
    use_ecs_ram_role_token bool
    Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
    utilization str
    The utilization option of cluster-autoscaler.
    clusterId String
    The id of kubernetes cluster.
    coolDownDuration String
    The cool_down_duration option of cluster-autoscaler.
    deferScaleInDuration String
    The defer_scale_in_duration option of cluster-autoscaler.
    nodepools List<Property Map>
    The list of the node pools. See nodepools below.
    useEcsRamRoleToken Boolean
    Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
    utilization String
    The utilization option of cluster-autoscaler.

    Supporting Types

    KubernetesAutoscalerNodepool, KubernetesAutoscalerNodepoolArgs

    Id string
    The scaling group id of the groups configured for cluster-autoscaler.
    Labels string
    The labels for the nodes in scaling group.
    Taints string
    The taints for the nodes in scaling group.
    Id string
    The scaling group id of the groups configured for cluster-autoscaler.
    Labels string
    The labels for the nodes in scaling group.
    Taints string
    The taints for the nodes in scaling group.
    id String
    The scaling group id of the groups configured for cluster-autoscaler.
    labels String
    The labels for the nodes in scaling group.
    taints String
    The taints for the nodes in scaling group.
    id string
    The scaling group id of the groups configured for cluster-autoscaler.
    labels string
    The labels for the nodes in scaling group.
    taints string
    The taints for the nodes in scaling group.
    id str
    The scaling group id of the groups configured for cluster-autoscaler.
    labels str
    The labels for the nodes in scaling group.
    taints str
    The taints for the nodes in scaling group.
    id String
    The scaling group id of the groups configured for cluster-autoscaler.
    labels String
    The labels for the nodes in scaling group.
    taints String
    The taints for the nodes in scaling group.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi