1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cs
  5. EdgeKubernetes
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.cs.EdgeKubernetes

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    This resource will help you to manage a Edge Kubernetes Cluster in Alibaba Cloud Kubernetes Service, see What is edge kubernetes.

    NOTE: Kubernetes cluster only supports VPC network and it can access internet while creating kubernetes cluster. A Nat Gateway and configuring a SNAT for it can ensure one VPC network access internet. If there is no nat gateway in the VPC, you can set new_nat_gateway to “true” to create one automatically.

    NOTE: Creating kubernetes cluster need to install several packages and it will cost about 15 minutes. Please be patient.

    NOTE: The provider supports to download kube config, client certificate, client key and cluster ca certificate after creating cluster successfully, and you can put them into the specified location, like ‘~/.kube/config’.

    NOTE: The provider supports disabling internet load balancer for API Server by setting false to slb_internet_enabled.

    NOTE: If you want to manage Kubernetes, you can use Kubernetes Provider.

    NOTE: Available since v1.103.0.

    NOTE: From version 1.185.0+, support new fields cluster_spec, runtime and load_balancer_spec.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const defaultZones = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultInstanceTypes = defaultZones.then(defaultZones => alicloud.ecs.getInstanceTypes({
        availabilityZone: defaultZones.zones?.[0]?.id,
        cpuCoreCount: 4,
        memorySize: 8,
        kubernetesNodeRole: "Master",
    }));
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: name,
        cidrBlock: "10.4.0.0/16",
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vswitchName: name,
        cidrBlock: "10.4.0.0/24",
        vpcId: defaultNetwork.id,
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
    });
    const defaultEdgeKubernetes = new alicloud.cs.EdgeKubernetes("defaultEdgeKubernetes", {
        workerVswitchIds: [defaultSwitch.id],
        workerInstanceTypes: [defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.instanceTypes?.[0]?.id)],
        version: "1.20.11-aliyunedge.1",
        workerNumber: 1,
        password: "Test12345",
        podCidr: "10.99.0.0/16",
        serviceCidr: "172.16.0.0/16",
        workerInstanceChargeType: "PostPaid",
        newNatGateway: true,
        nodeCidrMask: 24,
        installCloudMonitor: true,
        slbInternetEnabled: true,
        isEnterpriseSecurityGroup: true,
        workerDataDisks: [{
            category: "cloud_ssd",
            size: "200",
            encrypted: "false",
        }],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default_zones = alicloud.get_zones(available_resource_creation="VSwitch")
    default_instance_types = alicloud.ecs.get_instance_types(availability_zone=default_zones.zones[0].id,
        cpu_core_count=4,
        memory_size=8,
        kubernetes_node_role="Master")
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name=name,
        cidr_block="10.4.0.0/16")
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vswitch_name=name,
        cidr_block="10.4.0.0/24",
        vpc_id=default_network.id,
        zone_id=default_zones.zones[0].id)
    default_edge_kubernetes = alicloud.cs.EdgeKubernetes("defaultEdgeKubernetes",
        worker_vswitch_ids=[default_switch.id],
        worker_instance_types=[default_instance_types.instance_types[0].id],
        version="1.20.11-aliyunedge.1",
        worker_number=1,
        password="Test12345",
        pod_cidr="10.99.0.0/16",
        service_cidr="172.16.0.0/16",
        worker_instance_charge_type="PostPaid",
        new_nat_gateway=True,
        node_cidr_mask=24,
        install_cloud_monitor=True,
        slb_internet_enabled=True,
        is_enterprise_security_group=True,
        worker_data_disks=[alicloud.cs.EdgeKubernetesWorkerDataDiskArgs(
            category="cloud_ssd",
            size="200",
            encrypted="false",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
    			AvailabilityZone:   pulumi.StringRef(defaultZones.Zones[0].Id),
    			CpuCoreCount:       pulumi.IntRef(4),
    			MemorySize:         pulumi.Float64Ref(8),
    			KubernetesNodeRole: pulumi.StringRef("Master"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.4.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.4.0.0/24"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cs.NewEdgeKubernetes(ctx, "defaultEdgeKubernetes", &cs.EdgeKubernetesArgs{
    			WorkerVswitchIds: pulumi.StringArray{
    				defaultSwitch.ID(),
    			},
    			WorkerInstanceTypes: pulumi.StringArray{
    				pulumi.String(defaultInstanceTypes.InstanceTypes[0].Id),
    			},
    			Version:                   pulumi.String("1.20.11-aliyunedge.1"),
    			WorkerNumber:              pulumi.Int(1),
    			Password:                  pulumi.String("Test12345"),
    			PodCidr:                   pulumi.String("10.99.0.0/16"),
    			ServiceCidr:               pulumi.String("172.16.0.0/16"),
    			WorkerInstanceChargeType:  pulumi.String("PostPaid"),
    			NewNatGateway:             pulumi.Bool(true),
    			NodeCidrMask:              pulumi.Int(24),
    			InstallCloudMonitor:       pulumi.Bool(true),
    			SlbInternetEnabled:        pulumi.Bool(true),
    			IsEnterpriseSecurityGroup: pulumi.Bool(true),
    			WorkerDataDisks: cs.EdgeKubernetesWorkerDataDiskArray{
    				&cs.EdgeKubernetesWorkerDataDiskArgs{
    					Category:  pulumi.String("cloud_ssd"),
    					Size:      pulumi.String("200"),
    					Encrypted: pulumi.String("false"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-example";
        var defaultZones = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
        {
            AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
            CpuCoreCount = 4,
            MemorySize = 8,
            KubernetesNodeRole = "Master",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = name,
            CidrBlock = "10.4.0.0/16",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VswitchName = name,
            CidrBlock = "10.4.0.0/24",
            VpcId = defaultNetwork.Id,
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        });
    
        var defaultEdgeKubernetes = new AliCloud.CS.EdgeKubernetes("defaultEdgeKubernetes", new()
        {
            WorkerVswitchIds = new[]
            {
                defaultSwitch.Id,
            },
            WorkerInstanceTypes = new[]
            {
                defaultInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
            },
            Version = "1.20.11-aliyunedge.1",
            WorkerNumber = 1,
            Password = "Test12345",
            PodCidr = "10.99.0.0/16",
            ServiceCidr = "172.16.0.0/16",
            WorkerInstanceChargeType = "PostPaid",
            NewNatGateway = true,
            NodeCidrMask = 24,
            InstallCloudMonitor = true,
            SlbInternetEnabled = true,
            IsEnterpriseSecurityGroup = true,
            WorkerDataDisks = new[]
            {
                new AliCloud.CS.Inputs.EdgeKubernetesWorkerDataDiskArgs
                {
                    Category = "cloud_ssd",
                    Size = "200",
                    Encrypted = "false",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.ecs.EcsFunctions;
    import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.cs.EdgeKubernetes;
    import com.pulumi.alicloud.cs.EdgeKubernetesArgs;
    import com.pulumi.alicloud.cs.inputs.EdgeKubernetesWorkerDataDiskArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf-example");
            final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            final var defaultInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
                .availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .cpuCoreCount(4)
                .memorySize(8)
                .kubernetesNodeRole("Master")
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()        
                .vpcName(name)
                .cidrBlock("10.4.0.0/16")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
                .vswitchName(name)
                .cidrBlock("10.4.0.0/24")
                .vpcId(defaultNetwork.id())
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .build());
    
            var defaultEdgeKubernetes = new EdgeKubernetes("defaultEdgeKubernetes", EdgeKubernetesArgs.builder()        
                .workerVswitchIds(defaultSwitch.id())
                .workerInstanceTypes(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
                .version("1.20.11-aliyunedge.1")
                .workerNumber("1")
                .password("Test12345")
                .podCidr("10.99.0.0/16")
                .serviceCidr("172.16.0.0/16")
                .workerInstanceChargeType("PostPaid")
                .newNatGateway("true")
                .nodeCidrMask("24")
                .installCloudMonitor("true")
                .slbInternetEnabled("true")
                .isEnterpriseSecurityGroup("true")
                .workerDataDisks(EdgeKubernetesWorkerDataDiskArgs.builder()
                    .category("cloud_ssd")
                    .size("200")
                    .encrypted("false")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 10.4.0.0/16
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vswitchName: ${name}
          cidrBlock: 10.4.0.0/24
          vpcId: ${defaultNetwork.id}
          zoneId: ${defaultZones.zones[0].id}
      defaultEdgeKubernetes:
        type: alicloud:cs:EdgeKubernetes
        properties:
          workerVswitchIds:
            - ${defaultSwitch.id}
          workerInstanceTypes:
            - ${defaultInstanceTypes.instanceTypes[0].id}
          version: 1.20.11-aliyunedge.1
          workerNumber: '1'
          password: Test12345
          podCidr: 10.99.0.0/16
          serviceCidr: 172.16.0.0/16
          workerInstanceChargeType: PostPaid
          newNatGateway: 'true'
          nodeCidrMask: '24'
          installCloudMonitor: 'true'
          slbInternetEnabled: 'true'
          isEnterpriseSecurityGroup: 'true'
          workerDataDisks:
            - category: cloud_ssd
              size: '200'
              encrypted: 'false'
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
      defaultInstanceTypes:
        fn::invoke:
          Function: alicloud:ecs:getInstanceTypes
          Arguments:
            availabilityZone: ${defaultZones.zones[0].id}
            cpuCoreCount: 4
            memorySize: 8
            kubernetesNodeRole: Master
    

    You could create a professional kubernetes edge cluster now.

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf_example";
    const defaultZones = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultInstanceTypes = defaultZones.then(defaultZones => alicloud.ecs.getInstanceTypes({
        availabilityZone: defaultZones.zones?.[0]?.id,
        cpuCoreCount: 4,
        memorySize: 8,
        kubernetesNodeRole: "Master",
    }));
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: name,
        cidrBlock: "10.4.0.0/16",
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vswitchName: name,
        cidrBlock: "10.4.0.0/24",
        vpcId: defaultNetwork.id,
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
    });
    const defaultEdgeKubernetes = new alicloud.cs.EdgeKubernetes("defaultEdgeKubernetes", {
        workerVswitchIds: [defaultSwitch.id],
        workerInstanceTypes: [defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.instanceTypes?.[0]?.id)],
        version: "1.20.11-aliyunedge.1",
        clusterSpec: "ack.pro.small",
        workerNumber: 1,
        password: "Test12345",
        podCidr: "10.99.0.0/16",
        serviceCidr: "172.16.0.0/16",
        workerInstanceChargeType: "PostPaid",
        newNatGateway: true,
        nodeCidrMask: 24,
        loadBalancerSpec: "slb.s2.small",
        installCloudMonitor: true,
        slbInternetEnabled: true,
        isEnterpriseSecurityGroup: true,
        addons: [{
            name: "alibaba-log-controller",
            config: "{\"IngressDashboardEnabled\":\"false\"}",
        }],
        workerDataDisks: [{
            category: "cloud_ssd",
            size: "200",
            encrypted: "false",
        }],
        runtime: {
            name: "containerd",
            version: "1.5.10",
        },
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf_example"
    default_zones = alicloud.get_zones(available_resource_creation="VSwitch")
    default_instance_types = alicloud.ecs.get_instance_types(availability_zone=default_zones.zones[0].id,
        cpu_core_count=4,
        memory_size=8,
        kubernetes_node_role="Master")
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name=name,
        cidr_block="10.4.0.0/16")
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vswitch_name=name,
        cidr_block="10.4.0.0/24",
        vpc_id=default_network.id,
        zone_id=default_zones.zones[0].id)
    default_edge_kubernetes = alicloud.cs.EdgeKubernetes("defaultEdgeKubernetes",
        worker_vswitch_ids=[default_switch.id],
        worker_instance_types=[default_instance_types.instance_types[0].id],
        version="1.20.11-aliyunedge.1",
        cluster_spec="ack.pro.small",
        worker_number=1,
        password="Test12345",
        pod_cidr="10.99.0.0/16",
        service_cidr="172.16.0.0/16",
        worker_instance_charge_type="PostPaid",
        new_nat_gateway=True,
        node_cidr_mask=24,
        load_balancer_spec="slb.s2.small",
        install_cloud_monitor=True,
        slb_internet_enabled=True,
        is_enterprise_security_group=True,
        addons=[alicloud.cs.EdgeKubernetesAddonArgs(
            name="alibaba-log-controller",
            config="{\"IngressDashboardEnabled\":\"false\"}",
        )],
        worker_data_disks=[alicloud.cs.EdgeKubernetesWorkerDataDiskArgs(
            category="cloud_ssd",
            size="200",
            encrypted="false",
        )],
        runtime=alicloud.cs.EdgeKubernetesRuntimeArgs(
            name="containerd",
            version="1.5.10",
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf_example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
    			AvailabilityZone:   pulumi.StringRef(defaultZones.Zones[0].Id),
    			CpuCoreCount:       pulumi.IntRef(4),
    			MemorySize:         pulumi.Float64Ref(8),
    			KubernetesNodeRole: pulumi.StringRef("Master"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.4.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.4.0.0/24"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cs.NewEdgeKubernetes(ctx, "defaultEdgeKubernetes", &cs.EdgeKubernetesArgs{
    			WorkerVswitchIds: pulumi.StringArray{
    				defaultSwitch.ID(),
    			},
    			WorkerInstanceTypes: pulumi.StringArray{
    				pulumi.String(defaultInstanceTypes.InstanceTypes[0].Id),
    			},
    			Version:                   pulumi.String("1.20.11-aliyunedge.1"),
    			ClusterSpec:               pulumi.String("ack.pro.small"),
    			WorkerNumber:              pulumi.Int(1),
    			Password:                  pulumi.String("Test12345"),
    			PodCidr:                   pulumi.String("10.99.0.0/16"),
    			ServiceCidr:               pulumi.String("172.16.0.0/16"),
    			WorkerInstanceChargeType:  pulumi.String("PostPaid"),
    			NewNatGateway:             pulumi.Bool(true),
    			NodeCidrMask:              pulumi.Int(24),
    			LoadBalancerSpec:          pulumi.String("slb.s2.small"),
    			InstallCloudMonitor:       pulumi.Bool(true),
    			SlbInternetEnabled:        pulumi.Bool(true),
    			IsEnterpriseSecurityGroup: pulumi.Bool(true),
    			Addons: cs.EdgeKubernetesAddonArray{
    				&cs.EdgeKubernetesAddonArgs{
    					Name:   pulumi.String("alibaba-log-controller"),
    					Config: pulumi.String("{\"IngressDashboardEnabled\":\"false\"}"),
    				},
    			},
    			WorkerDataDisks: cs.EdgeKubernetesWorkerDataDiskArray{
    				&cs.EdgeKubernetesWorkerDataDiskArgs{
    					Category:  pulumi.String("cloud_ssd"),
    					Size:      pulumi.String("200"),
    					Encrypted: pulumi.String("false"),
    				},
    			},
    			Runtime: &cs.EdgeKubernetesRuntimeArgs{
    				Name:    pulumi.String("containerd"),
    				Version: pulumi.String("1.5.10"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf_example";
        var defaultZones = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
        {
            AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
            CpuCoreCount = 4,
            MemorySize = 8,
            KubernetesNodeRole = "Master",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = name,
            CidrBlock = "10.4.0.0/16",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VswitchName = name,
            CidrBlock = "10.4.0.0/24",
            VpcId = defaultNetwork.Id,
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        });
    
        var defaultEdgeKubernetes = new AliCloud.CS.EdgeKubernetes("defaultEdgeKubernetes", new()
        {
            WorkerVswitchIds = new[]
            {
                defaultSwitch.Id,
            },
            WorkerInstanceTypes = new[]
            {
                defaultInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
            },
            Version = "1.20.11-aliyunedge.1",
            ClusterSpec = "ack.pro.small",
            WorkerNumber = 1,
            Password = "Test12345",
            PodCidr = "10.99.0.0/16",
            ServiceCidr = "172.16.0.0/16",
            WorkerInstanceChargeType = "PostPaid",
            NewNatGateway = true,
            NodeCidrMask = 24,
            LoadBalancerSpec = "slb.s2.small",
            InstallCloudMonitor = true,
            SlbInternetEnabled = true,
            IsEnterpriseSecurityGroup = true,
            Addons = new[]
            {
                new AliCloud.CS.Inputs.EdgeKubernetesAddonArgs
                {
                    Name = "alibaba-log-controller",
                    Config = "{\"IngressDashboardEnabled\":\"false\"}",
                },
            },
            WorkerDataDisks = new[]
            {
                new AliCloud.CS.Inputs.EdgeKubernetesWorkerDataDiskArgs
                {
                    Category = "cloud_ssd",
                    Size = "200",
                    Encrypted = "false",
                },
            },
            Runtime = new AliCloud.CS.Inputs.EdgeKubernetesRuntimeArgs
            {
                Name = "containerd",
                Version = "1.5.10",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.ecs.EcsFunctions;
    import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.cs.EdgeKubernetes;
    import com.pulumi.alicloud.cs.EdgeKubernetesArgs;
    import com.pulumi.alicloud.cs.inputs.EdgeKubernetesAddonArgs;
    import com.pulumi.alicloud.cs.inputs.EdgeKubernetesWorkerDataDiskArgs;
    import com.pulumi.alicloud.cs.inputs.EdgeKubernetesRuntimeArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf_example");
            final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            final var defaultInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
                .availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .cpuCoreCount(4)
                .memorySize(8)
                .kubernetesNodeRole("Master")
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()        
                .vpcName(name)
                .cidrBlock("10.4.0.0/16")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
                .vswitchName(name)
                .cidrBlock("10.4.0.0/24")
                .vpcId(defaultNetwork.id())
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .build());
    
            var defaultEdgeKubernetes = new EdgeKubernetes("defaultEdgeKubernetes", EdgeKubernetesArgs.builder()        
                .workerVswitchIds(defaultSwitch.id())
                .workerInstanceTypes(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
                .version("1.20.11-aliyunedge.1")
                .clusterSpec("ack.pro.small")
                .workerNumber("1")
                .password("Test12345")
                .podCidr("10.99.0.0/16")
                .serviceCidr("172.16.0.0/16")
                .workerInstanceChargeType("PostPaid")
                .newNatGateway("true")
                .nodeCidrMask("24")
                .loadBalancerSpec("slb.s2.small")
                .installCloudMonitor("true")
                .slbInternetEnabled("true")
                .isEnterpriseSecurityGroup("true")
                .addons(EdgeKubernetesAddonArgs.builder()
                    .name("alibaba-log-controller")
                    .config("{\"IngressDashboardEnabled\":\"false\"}")
                    .build())
                .workerDataDisks(EdgeKubernetesWorkerDataDiskArgs.builder()
                    .category("cloud_ssd")
                    .size("200")
                    .encrypted("false")
                    .build())
                .runtime(EdgeKubernetesRuntimeArgs.builder()
                    .name("containerd")
                    .version("1.5.10")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 10.4.0.0/16
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vswitchName: ${name}
          cidrBlock: 10.4.0.0/24
          vpcId: ${defaultNetwork.id}
          zoneId: ${defaultZones.zones[0].id}
      defaultEdgeKubernetes:
        type: alicloud:cs:EdgeKubernetes
        properties:
          workerVswitchIds:
            - ${defaultSwitch.id}
          workerInstanceTypes:
            - ${defaultInstanceTypes.instanceTypes[0].id}
          version: 1.20.11-aliyunedge.1
          clusterSpec: ack.pro.small
          workerNumber: '1'
          password: Test12345
          podCidr: 10.99.0.0/16
          serviceCidr: 172.16.0.0/16
          workerInstanceChargeType: PostPaid
          newNatGateway: 'true'
          nodeCidrMask: '24'
          loadBalancerSpec: slb.s2.small
          installCloudMonitor: 'true'
          slbInternetEnabled: 'true'
          isEnterpriseSecurityGroup: 'true'
          addons:
            - name: alibaba-log-controller
              config: '{"IngressDashboardEnabled":"false"}'
          workerDataDisks:
            - category: cloud_ssd
              size: '200'
              encrypted: 'false'
          runtime:
            name: containerd
            version: 1.5.10
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
      defaultInstanceTypes:
        fn::invoke:
          Function: alicloud:ecs:getInstanceTypes
          Arguments:
            availabilityZone: ${defaultZones.zones[0].id}
            cpuCoreCount: 4
            memorySize: 8
            kubernetesNodeRole: Master
    

    Create EdgeKubernetes Resource

    new EdgeKubernetes(name: string, args: EdgeKubernetesArgs, opts?: CustomResourceOptions);
    @overload
    def EdgeKubernetes(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       addons: Optional[Sequence[EdgeKubernetesAddonArgs]] = None,
                       availability_zone: Optional[str] = None,
                       client_cert: Optional[str] = None,
                       client_key: Optional[str] = None,
                       cluster_ca_cert: Optional[str] = None,
                       cluster_spec: Optional[str] = None,
                       deletion_protection: Optional[bool] = None,
                       force_update: Optional[bool] = None,
                       install_cloud_monitor: Optional[bool] = None,
                       is_enterprise_security_group: Optional[bool] = None,
                       key_name: Optional[str] = None,
                       kube_config: Optional[str] = None,
                       load_balancer_spec: Optional[str] = None,
                       log_config: Optional[EdgeKubernetesLogConfigArgs] = None,
                       name: Optional[str] = None,
                       name_prefix: Optional[str] = None,
                       new_nat_gateway: Optional[bool] = None,
                       node_cidr_mask: Optional[int] = None,
                       password: Optional[str] = None,
                       pod_cidr: Optional[str] = None,
                       proxy_mode: Optional[str] = None,
                       rds_instances: Optional[Sequence[str]] = None,
                       resource_group_id: Optional[str] = None,
                       retain_resources: Optional[Sequence[str]] = None,
                       runtime: Optional[EdgeKubernetesRuntimeArgs] = None,
                       security_group_id: Optional[str] = None,
                       service_cidr: Optional[str] = None,
                       slb_internet_enabled: Optional[bool] = None,
                       tags: Optional[Mapping[str, Any]] = None,
                       user_data: Optional[str] = None,
                       version: Optional[str] = None,
                       worker_data_disks: Optional[Sequence[EdgeKubernetesWorkerDataDiskArgs]] = None,
                       worker_disk_category: Optional[str] = None,
                       worker_disk_performance_level: Optional[str] = None,
                       worker_disk_size: Optional[int] = None,
                       worker_disk_snapshot_policy_id: Optional[str] = None,
                       worker_instance_charge_type: Optional[str] = None,
                       worker_instance_types: Optional[Sequence[str]] = None,
                       worker_number: Optional[int] = None,
                       worker_vswitch_ids: Optional[Sequence[str]] = None)
    @overload
    def EdgeKubernetes(resource_name: str,
                       args: EdgeKubernetesArgs,
                       opts: Optional[ResourceOptions] = None)
    func NewEdgeKubernetes(ctx *Context, name string, args EdgeKubernetesArgs, opts ...ResourceOption) (*EdgeKubernetes, error)
    public EdgeKubernetes(string name, EdgeKubernetesArgs args, CustomResourceOptions? opts = null)
    public EdgeKubernetes(String name, EdgeKubernetesArgs args)
    public EdgeKubernetes(String name, EdgeKubernetesArgs args, CustomResourceOptions options)
    
    type: alicloud:cs:EdgeKubernetes
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args EdgeKubernetesArgs
    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 EdgeKubernetesArgs
    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 EdgeKubernetesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EdgeKubernetesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EdgeKubernetesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    WorkerInstanceTypes List<string>
    The instance types of worker node, you can set multiple types to avoid NoStock of a certain type.
    WorkerNumber int
    The cloud worker node number of the edge kubernetes cluster. Default to 1. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us.
    WorkerVswitchIds List<string>
    The vswitches used by workers.
    Addons List<Pulumi.AliCloud.CS.Inputs.EdgeKubernetesAddon>
    The addon you want to install in cluster. See addons below.
    AvailabilityZone string
    The ID of availability zone.
    ClientCert string
    The path of client certificate, like ~/.kube/client-cert.pem.
    ClientKey string
    The path of client key, like ~/.kube/client-key.pem.
    ClusterCaCert string

    The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

    Removed params

    ClusterSpec string
    The cluster specifications of kubernetes cluster,which can be empty. Valid values:

    • ack.standard : Standard edge clusters.
    • ack.pro.small : Professional edge clusters.
    DeletionProtection bool
    Whether to enable cluster deletion protection.
    ForceUpdate bool
    Default false, when you want to change vpc_id, you have to set this field to true, then the cluster will be recreated.
    InstallCloudMonitor bool
    Install cloud monitor agent on ECS. default: true.
    IsEnterpriseSecurityGroup bool
    Enable to create advanced security group. default: false. See Advanced security group.
    KeyName string
    The keypair of ssh login cluster node, you have to create it first. You have to specify one of password key_name kms_encrypted_password fields.
    KubeConfig string
    The path of kube config, like ~/.kube/config.

    Deprecated:Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.

    LoadBalancerSpec string

    The cluster api server load balance instance specification. For more information on how to select a LB instance specification, see SLB instance overview. ->NOTE: If you want to use Flannel as CNI network plugin, You need to specific the pod_cidr field and addons with flannel.

    Worker params

    LogConfig Pulumi.AliCloud.CS.Inputs.EdgeKubernetesLogConfig
    A list of one element containing information about the associated log store. See log_config below.

    Deprecated:Field 'log_config' has been removed from provider version 1.103.0. New field 'addons' replaces it.

    Name string
    The kubernetes cluster's name. It is unique in one Alicloud account.
    NamePrefix string
    NewNatGateway bool
    Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
    NodeCidrMask int
    The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
    Password string
    The password of ssh login cluster node. You have to specify one of password, key_name kms_encrypted_password fields.
    PodCidr string
    [Flannel Specific] The CIDR block for the pod network when using Flannel.
    ProxyMode string
    Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
    RdsInstances List<string>
    RDS instance list, You can choose which RDS instances whitelist to add instances to.
    ResourceGroupId string
    The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
    RetainResources List<string>
    Runtime Pulumi.AliCloud.CS.Inputs.EdgeKubernetesRuntime
    The runtime of containers. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container. Detailed below.
    SecurityGroupId string
    The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
    ServiceCidr string
    The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
    SlbInternetEnabled bool
    Whether to create internet load balancer for API Server. Default to true.
    Tags Dictionary<string, object>
    Default nil, A map of tags assigned to the kubernetes cluster and work node.
    UserData string
    Windows instances support batch and PowerShell scripts. If your script file is larger than 1 KB, we recommend that you upload the script to Object Storage Service (OSS) and pull it through the internal endpoint of your OSS bucket.
    Version string
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    WorkerDataDisks List<Pulumi.AliCloud.CS.Inputs.EdgeKubernetesWorkerDataDisk>
    The data disk configurations of worker nodes, such as the disk type and disk size. See worker_data_disks below.
    WorkerDiskCategory string
    The system disk category of worker node. Its valid value are cloud_efficiency, cloud_ssd and cloud_essd and . Default to cloud_efficiency.
    WorkerDiskPerformanceLevel string
    Worker node system disk performance level, when worker_disk_category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    WorkerDiskSize int
    The system disk size of worker node. Its valid value range [20~32768] in GB. Default to 40.
    WorkerDiskSnapshotPolicyId string

    Worker node system disk auto snapshot policy.

    Computed params

    You can set some file paths to save kube_config information, but this way is cumbersome. Since version 1.105.0, we've written it to tf state file. About its use,see export attribute certificate_authority. From version 1.187.0+, new DataSource alicloud.cs.getClusterCredential is recommended to manage cluster's kube_config.

    WorkerInstanceChargeType string
    Worker payment type, its valid value is PostPaid. Defaults to PostPaid. More charge details in ACK@edge charge.
    WorkerInstanceTypes []string
    The instance types of worker node, you can set multiple types to avoid NoStock of a certain type.
    WorkerNumber int
    The cloud worker node number of the edge kubernetes cluster. Default to 1. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us.
    WorkerVswitchIds []string
    The vswitches used by workers.
    Addons []EdgeKubernetesAddonArgs
    The addon you want to install in cluster. See addons below.
    AvailabilityZone string
    The ID of availability zone.
    ClientCert string
    The path of client certificate, like ~/.kube/client-cert.pem.
    ClientKey string
    The path of client key, like ~/.kube/client-key.pem.
    ClusterCaCert string

    The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

    Removed params

    ClusterSpec string
    The cluster specifications of kubernetes cluster,which can be empty. Valid values:

    • ack.standard : Standard edge clusters.
    • ack.pro.small : Professional edge clusters.
    DeletionProtection bool
    Whether to enable cluster deletion protection.
    ForceUpdate bool
    Default false, when you want to change vpc_id, you have to set this field to true, then the cluster will be recreated.
    InstallCloudMonitor bool
    Install cloud monitor agent on ECS. default: true.
    IsEnterpriseSecurityGroup bool
    Enable to create advanced security group. default: false. See Advanced security group.
    KeyName string
    The keypair of ssh login cluster node, you have to create it first. You have to specify one of password key_name kms_encrypted_password fields.
    KubeConfig string
    The path of kube config, like ~/.kube/config.

    Deprecated:Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.

    LoadBalancerSpec string

    The cluster api server load balance instance specification. For more information on how to select a LB instance specification, see SLB instance overview. ->NOTE: If you want to use Flannel as CNI network plugin, You need to specific the pod_cidr field and addons with flannel.

    Worker params

    LogConfig EdgeKubernetesLogConfigArgs
    A list of one element containing information about the associated log store. See log_config below.

    Deprecated:Field 'log_config' has been removed from provider version 1.103.0. New field 'addons' replaces it.

    Name string
    The kubernetes cluster's name. It is unique in one Alicloud account.
    NamePrefix string
    NewNatGateway bool
    Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
    NodeCidrMask int
    The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
    Password string
    The password of ssh login cluster node. You have to specify one of password, key_name kms_encrypted_password fields.
    PodCidr string
    [Flannel Specific] The CIDR block for the pod network when using Flannel.
    ProxyMode string
    Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
    RdsInstances []string
    RDS instance list, You can choose which RDS instances whitelist to add instances to.
    ResourceGroupId string
    The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
    RetainResources []string
    Runtime EdgeKubernetesRuntimeArgs
    The runtime of containers. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container. Detailed below.
    SecurityGroupId string
    The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
    ServiceCidr string
    The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
    SlbInternetEnabled bool
    Whether to create internet load balancer for API Server. Default to true.
    Tags map[string]interface{}
    Default nil, A map of tags assigned to the kubernetes cluster and work node.
    UserData string
    Windows instances support batch and PowerShell scripts. If your script file is larger than 1 KB, we recommend that you upload the script to Object Storage Service (OSS) and pull it through the internal endpoint of your OSS bucket.
    Version string
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    WorkerDataDisks []EdgeKubernetesWorkerDataDiskArgs
    The data disk configurations of worker nodes, such as the disk type and disk size. See worker_data_disks below.
    WorkerDiskCategory string
    The system disk category of worker node. Its valid value are cloud_efficiency, cloud_ssd and cloud_essd and . Default to cloud_efficiency.
    WorkerDiskPerformanceLevel string
    Worker node system disk performance level, when worker_disk_category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    WorkerDiskSize int
    The system disk size of worker node. Its valid value range [20~32768] in GB. Default to 40.
    WorkerDiskSnapshotPolicyId string

    Worker node system disk auto snapshot policy.

    Computed params

    You can set some file paths to save kube_config information, but this way is cumbersome. Since version 1.105.0, we've written it to tf state file. About its use,see export attribute certificate_authority. From version 1.187.0+, new DataSource alicloud.cs.getClusterCredential is recommended to manage cluster's kube_config.

    WorkerInstanceChargeType string
    Worker payment type, its valid value is PostPaid. Defaults to PostPaid. More charge details in ACK@edge charge.
    workerInstanceTypes List<String>
    The instance types of worker node, you can set multiple types to avoid NoStock of a certain type.
    workerNumber Integer
    The cloud worker node number of the edge kubernetes cluster. Default to 1. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us.
    workerVswitchIds List<String>
    The vswitches used by workers.
    addons List<EdgeKubernetesAddon>
    The addon you want to install in cluster. See addons below.
    availabilityZone String
    The ID of availability zone.
    clientCert String
    The path of client certificate, like ~/.kube/client-cert.pem.
    clientKey String
    The path of client key, like ~/.kube/client-key.pem.
    clusterCaCert String

    The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

    Removed params

    clusterSpec String
    The cluster specifications of kubernetes cluster,which can be empty. Valid values:

    • ack.standard : Standard edge clusters.
    • ack.pro.small : Professional edge clusters.
    deletionProtection Boolean
    Whether to enable cluster deletion protection.
    forceUpdate Boolean
    Default false, when you want to change vpc_id, you have to set this field to true, then the cluster will be recreated.
    installCloudMonitor Boolean
    Install cloud monitor agent on ECS. default: true.
    isEnterpriseSecurityGroup Boolean
    Enable to create advanced security group. default: false. See Advanced security group.
    keyName String
    The keypair of ssh login cluster node, you have to create it first. You have to specify one of password key_name kms_encrypted_password fields.
    kubeConfig String
    The path of kube config, like ~/.kube/config.

    Deprecated:Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.

    loadBalancerSpec String

    The cluster api server load balance instance specification. For more information on how to select a LB instance specification, see SLB instance overview. ->NOTE: If you want to use Flannel as CNI network plugin, You need to specific the pod_cidr field and addons with flannel.

    Worker params

    logConfig EdgeKubernetesLogConfig
    A list of one element containing information about the associated log store. See log_config below.

    Deprecated:Field 'log_config' has been removed from provider version 1.103.0. New field 'addons' replaces it.

    name String
    The kubernetes cluster's name. It is unique in one Alicloud account.
    namePrefix String
    newNatGateway Boolean
    Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
    nodeCidrMask Integer
    The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
    password String
    The password of ssh login cluster node. You have to specify one of password, key_name kms_encrypted_password fields.
    podCidr String
    [Flannel Specific] The CIDR block for the pod network when using Flannel.
    proxyMode String
    Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
    rdsInstances List<String>
    RDS instance list, You can choose which RDS instances whitelist to add instances to.
    resourceGroupId String
    The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
    retainResources List<String>
    runtime EdgeKubernetesRuntime
    The runtime of containers. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container. Detailed below.
    securityGroupId String
    The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
    serviceCidr String
    The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
    slbInternetEnabled Boolean
    Whether to create internet load balancer for API Server. Default to true.
    tags Map<String,Object>
    Default nil, A map of tags assigned to the kubernetes cluster and work node.
    userData String
    Windows instances support batch and PowerShell scripts. If your script file is larger than 1 KB, we recommend that you upload the script to Object Storage Service (OSS) and pull it through the internal endpoint of your OSS bucket.
    version String
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    workerDataDisks List<EdgeKubernetesWorkerDataDisk>
    The data disk configurations of worker nodes, such as the disk type and disk size. See worker_data_disks below.
    workerDiskCategory String
    The system disk category of worker node. Its valid value are cloud_efficiency, cloud_ssd and cloud_essd and . Default to cloud_efficiency.
    workerDiskPerformanceLevel String
    Worker node system disk performance level, when worker_disk_category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    workerDiskSize Integer
    The system disk size of worker node. Its valid value range [20~32768] in GB. Default to 40.
    workerDiskSnapshotPolicyId String

    Worker node system disk auto snapshot policy.

    Computed params

    You can set some file paths to save kube_config information, but this way is cumbersome. Since version 1.105.0, we've written it to tf state file. About its use,see export attribute certificate_authority. From version 1.187.0+, new DataSource alicloud.cs.getClusterCredential is recommended to manage cluster's kube_config.

    workerInstanceChargeType String
    Worker payment type, its valid value is PostPaid. Defaults to PostPaid. More charge details in ACK@edge charge.
    workerInstanceTypes string[]
    The instance types of worker node, you can set multiple types to avoid NoStock of a certain type.
    workerNumber number
    The cloud worker node number of the edge kubernetes cluster. Default to 1. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us.
    workerVswitchIds string[]
    The vswitches used by workers.
    addons EdgeKubernetesAddon[]
    The addon you want to install in cluster. See addons below.
    availabilityZone string
    The ID of availability zone.
    clientCert string
    The path of client certificate, like ~/.kube/client-cert.pem.
    clientKey string
    The path of client key, like ~/.kube/client-key.pem.
    clusterCaCert string

    The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

    Removed params

    clusterSpec string
    The cluster specifications of kubernetes cluster,which can be empty. Valid values:

    • ack.standard : Standard edge clusters.
    • ack.pro.small : Professional edge clusters.
    deletionProtection boolean
    Whether to enable cluster deletion protection.
    forceUpdate boolean
    Default false, when you want to change vpc_id, you have to set this field to true, then the cluster will be recreated.
    installCloudMonitor boolean
    Install cloud monitor agent on ECS. default: true.
    isEnterpriseSecurityGroup boolean
    Enable to create advanced security group. default: false. See Advanced security group.
    keyName string
    The keypair of ssh login cluster node, you have to create it first. You have to specify one of password key_name kms_encrypted_password fields.
    kubeConfig string
    The path of kube config, like ~/.kube/config.

    Deprecated:Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.

    loadBalancerSpec string

    The cluster api server load balance instance specification. For more information on how to select a LB instance specification, see SLB instance overview. ->NOTE: If you want to use Flannel as CNI network plugin, You need to specific the pod_cidr field and addons with flannel.

    Worker params

    logConfig EdgeKubernetesLogConfig
    A list of one element containing information about the associated log store. See log_config below.

    Deprecated:Field 'log_config' has been removed from provider version 1.103.0. New field 'addons' replaces it.

    name string
    The kubernetes cluster's name. It is unique in one Alicloud account.
    namePrefix string
    newNatGateway boolean
    Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
    nodeCidrMask number
    The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
    password string
    The password of ssh login cluster node. You have to specify one of password, key_name kms_encrypted_password fields.
    podCidr string
    [Flannel Specific] The CIDR block for the pod network when using Flannel.
    proxyMode string
    Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
    rdsInstances string[]
    RDS instance list, You can choose which RDS instances whitelist to add instances to.
    resourceGroupId string
    The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
    retainResources string[]
    runtime EdgeKubernetesRuntime
    The runtime of containers. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container. Detailed below.
    securityGroupId string
    The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
    serviceCidr string
    The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
    slbInternetEnabled boolean
    Whether to create internet load balancer for API Server. Default to true.
    tags {[key: string]: any}
    Default nil, A map of tags assigned to the kubernetes cluster and work node.
    userData string
    Windows instances support batch and PowerShell scripts. If your script file is larger than 1 KB, we recommend that you upload the script to Object Storage Service (OSS) and pull it through the internal endpoint of your OSS bucket.
    version string
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    workerDataDisks EdgeKubernetesWorkerDataDisk[]
    The data disk configurations of worker nodes, such as the disk type and disk size. See worker_data_disks below.
    workerDiskCategory string
    The system disk category of worker node. Its valid value are cloud_efficiency, cloud_ssd and cloud_essd and . Default to cloud_efficiency.
    workerDiskPerformanceLevel string
    Worker node system disk performance level, when worker_disk_category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    workerDiskSize number
    The system disk size of worker node. Its valid value range [20~32768] in GB. Default to 40.
    workerDiskSnapshotPolicyId string

    Worker node system disk auto snapshot policy.

    Computed params

    You can set some file paths to save kube_config information, but this way is cumbersome. Since version 1.105.0, we've written it to tf state file. About its use,see export attribute certificate_authority. From version 1.187.0+, new DataSource alicloud.cs.getClusterCredential is recommended to manage cluster's kube_config.

    workerInstanceChargeType string
    Worker payment type, its valid value is PostPaid. Defaults to PostPaid. More charge details in ACK@edge charge.
    worker_instance_types Sequence[str]
    The instance types of worker node, you can set multiple types to avoid NoStock of a certain type.
    worker_number int
    The cloud worker node number of the edge kubernetes cluster. Default to 1. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us.
    worker_vswitch_ids Sequence[str]
    The vswitches used by workers.
    addons Sequence[EdgeKubernetesAddonArgs]
    The addon you want to install in cluster. See addons below.
    availability_zone str
    The ID of availability zone.
    client_cert str
    The path of client certificate, like ~/.kube/client-cert.pem.
    client_key str
    The path of client key, like ~/.kube/client-key.pem.
    cluster_ca_cert str

    The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

    Removed params

    cluster_spec str
    The cluster specifications of kubernetes cluster,which can be empty. Valid values:

    • ack.standard : Standard edge clusters.
    • ack.pro.small : Professional edge clusters.
    deletion_protection bool
    Whether to enable cluster deletion protection.
    force_update bool
    Default false, when you want to change vpc_id, you have to set this field to true, then the cluster will be recreated.
    install_cloud_monitor bool
    Install cloud monitor agent on ECS. default: true.
    is_enterprise_security_group bool
    Enable to create advanced security group. default: false. See Advanced security group.
    key_name str
    The keypair of ssh login cluster node, you have to create it first. You have to specify one of password key_name kms_encrypted_password fields.
    kube_config str
    The path of kube config, like ~/.kube/config.

    Deprecated:Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.

    load_balancer_spec str

    The cluster api server load balance instance specification. For more information on how to select a LB instance specification, see SLB instance overview. ->NOTE: If you want to use Flannel as CNI network plugin, You need to specific the pod_cidr field and addons with flannel.

    Worker params

    log_config EdgeKubernetesLogConfigArgs
    A list of one element containing information about the associated log store. See log_config below.

    Deprecated:Field 'log_config' has been removed from provider version 1.103.0. New field 'addons' replaces it.

    name str
    The kubernetes cluster's name. It is unique in one Alicloud account.
    name_prefix str
    new_nat_gateway bool
    Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
    node_cidr_mask int
    The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
    password str
    The password of ssh login cluster node. You have to specify one of password, key_name kms_encrypted_password fields.
    pod_cidr str
    [Flannel Specific] The CIDR block for the pod network when using Flannel.
    proxy_mode str
    Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
    rds_instances Sequence[str]
    RDS instance list, You can choose which RDS instances whitelist to add instances to.
    resource_group_id str
    The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
    retain_resources Sequence[str]
    runtime EdgeKubernetesRuntimeArgs
    The runtime of containers. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container. Detailed below.
    security_group_id str
    The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
    service_cidr str
    The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
    slb_internet_enabled bool
    Whether to create internet load balancer for API Server. Default to true.
    tags Mapping[str, Any]
    Default nil, A map of tags assigned to the kubernetes cluster and work node.
    user_data str
    Windows instances support batch and PowerShell scripts. If your script file is larger than 1 KB, we recommend that you upload the script to Object Storage Service (OSS) and pull it through the internal endpoint of your OSS bucket.
    version str
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    worker_data_disks Sequence[EdgeKubernetesWorkerDataDiskArgs]
    The data disk configurations of worker nodes, such as the disk type and disk size. See worker_data_disks below.
    worker_disk_category str
    The system disk category of worker node. Its valid value are cloud_efficiency, cloud_ssd and cloud_essd and . Default to cloud_efficiency.
    worker_disk_performance_level str
    Worker node system disk performance level, when worker_disk_category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    worker_disk_size int
    The system disk size of worker node. Its valid value range [20~32768] in GB. Default to 40.
    worker_disk_snapshot_policy_id str

    Worker node system disk auto snapshot policy.

    Computed params

    You can set some file paths to save kube_config information, but this way is cumbersome. Since version 1.105.0, we've written it to tf state file. About its use,see export attribute certificate_authority. From version 1.187.0+, new DataSource alicloud.cs.getClusterCredential is recommended to manage cluster's kube_config.

    worker_instance_charge_type str
    Worker payment type, its valid value is PostPaid. Defaults to PostPaid. More charge details in ACK@edge charge.
    workerInstanceTypes List<String>
    The instance types of worker node, you can set multiple types to avoid NoStock of a certain type.
    workerNumber Number
    The cloud worker node number of the edge kubernetes cluster. Default to 1. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us.
    workerVswitchIds List<String>
    The vswitches used by workers.
    addons List<Property Map>
    The addon you want to install in cluster. See addons below.
    availabilityZone String
    The ID of availability zone.
    clientCert String
    The path of client certificate, like ~/.kube/client-cert.pem.
    clientKey String
    The path of client key, like ~/.kube/client-key.pem.
    clusterCaCert String

    The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

    Removed params

    clusterSpec String
    The cluster specifications of kubernetes cluster,which can be empty. Valid values:

    • ack.standard : Standard edge clusters.
    • ack.pro.small : Professional edge clusters.
    deletionProtection Boolean
    Whether to enable cluster deletion protection.
    forceUpdate Boolean
    Default false, when you want to change vpc_id, you have to set this field to true, then the cluster will be recreated.
    installCloudMonitor Boolean
    Install cloud monitor agent on ECS. default: true.
    isEnterpriseSecurityGroup Boolean
    Enable to create advanced security group. default: false. See Advanced security group.
    keyName String
    The keypair of ssh login cluster node, you have to create it first. You have to specify one of password key_name kms_encrypted_password fields.
    kubeConfig String
    The path of kube config, like ~/.kube/config.

    Deprecated:Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.

    loadBalancerSpec String

    The cluster api server load balance instance specification. For more information on how to select a LB instance specification, see SLB instance overview. ->NOTE: If you want to use Flannel as CNI network plugin, You need to specific the pod_cidr field and addons with flannel.

    Worker params

    logConfig Property Map
    A list of one element containing information about the associated log store. See log_config below.

    Deprecated:Field 'log_config' has been removed from provider version 1.103.0. New field 'addons' replaces it.

    name String
    The kubernetes cluster's name. It is unique in one Alicloud account.
    namePrefix String
    newNatGateway Boolean
    Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
    nodeCidrMask Number
    The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
    password String
    The password of ssh login cluster node. You have to specify one of password, key_name kms_encrypted_password fields.
    podCidr String
    [Flannel Specific] The CIDR block for the pod network when using Flannel.
    proxyMode String
    Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
    rdsInstances List<String>
    RDS instance list, You can choose which RDS instances whitelist to add instances to.
    resourceGroupId String
    The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
    retainResources List<String>
    runtime Property Map
    The runtime of containers. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container. Detailed below.
    securityGroupId String
    The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
    serviceCidr String
    The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
    slbInternetEnabled Boolean
    Whether to create internet load balancer for API Server. Default to true.
    tags Map<Any>
    Default nil, A map of tags assigned to the kubernetes cluster and work node.
    userData String
    Windows instances support batch and PowerShell scripts. If your script file is larger than 1 KB, we recommend that you upload the script to Object Storage Service (OSS) and pull it through the internal endpoint of your OSS bucket.
    version String
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    workerDataDisks List<Property Map>
    The data disk configurations of worker nodes, such as the disk type and disk size. See worker_data_disks below.
    workerDiskCategory String
    The system disk category of worker node. Its valid value are cloud_efficiency, cloud_ssd and cloud_essd and . Default to cloud_efficiency.
    workerDiskPerformanceLevel String
    Worker node system disk performance level, when worker_disk_category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    workerDiskSize Number
    The system disk size of worker node. Its valid value range [20~32768] in GB. Default to 40.
    workerDiskSnapshotPolicyId String

    Worker node system disk auto snapshot policy.

    Computed params

    You can set some file paths to save kube_config information, but this way is cumbersome. Since version 1.105.0, we've written it to tf state file. About its use,see export attribute certificate_authority. From version 1.187.0+, new DataSource alicloud.cs.getClusterCredential is recommended to manage cluster's kube_config.

    workerInstanceChargeType String
    Worker payment type, its valid value is PostPaid. Defaults to PostPaid. More charge details in ACK@edge charge.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EdgeKubernetes resource produces the following output properties:

    CertificateAuthority Pulumi.AliCloud.CS.Outputs.EdgeKubernetesCertificateAuthority
    Nested attribute containing certificate authority data for your cluster.
    Connections Pulumi.AliCloud.CS.Outputs.EdgeKubernetesConnections
    Map of kubernetes cluster connection information.
    Id string
    The provider-assigned unique ID for this managed resource.
    NatGatewayId string
    The ID of nat gateway used to launch kubernetes cluster.
    SlbInternet string
    The public ip of load balancer.
    SlbIntranet string
    The ID of private load balancer where the current cluster master node is located.
    VpcId string
    The ID of VPC where the current cluster is located.
    WorkerNodes List<Pulumi.AliCloud.CS.Outputs.EdgeKubernetesWorkerNode>
    List of cluster worker nodes.
    WorkerRamRoleName string
    The RamRole Name attached to worker node.
    CertificateAuthority EdgeKubernetesCertificateAuthority
    Nested attribute containing certificate authority data for your cluster.
    Connections EdgeKubernetesConnections
    Map of kubernetes cluster connection information.
    Id string
    The provider-assigned unique ID for this managed resource.
    NatGatewayId string
    The ID of nat gateway used to launch kubernetes cluster.
    SlbInternet string
    The public ip of load balancer.
    SlbIntranet string
    The ID of private load balancer where the current cluster master node is located.
    VpcId string
    The ID of VPC where the current cluster is located.
    WorkerNodes []EdgeKubernetesWorkerNode
    List of cluster worker nodes.
    WorkerRamRoleName string
    The RamRole Name attached to worker node.
    certificateAuthority EdgeKubernetesCertificateAuthority
    Nested attribute containing certificate authority data for your cluster.
    connections EdgeKubernetesConnections
    Map of kubernetes cluster connection information.
    id String
    The provider-assigned unique ID for this managed resource.
    natGatewayId String
    The ID of nat gateway used to launch kubernetes cluster.
    slbInternet String
    The public ip of load balancer.
    slbIntranet String
    The ID of private load balancer where the current cluster master node is located.
    vpcId String
    The ID of VPC where the current cluster is located.
    workerNodes List<EdgeKubernetesWorkerNode>
    List of cluster worker nodes.
    workerRamRoleName String
    The RamRole Name attached to worker node.
    certificateAuthority EdgeKubernetesCertificateAuthority
    Nested attribute containing certificate authority data for your cluster.
    connections EdgeKubernetesConnections
    Map of kubernetes cluster connection information.
    id string
    The provider-assigned unique ID for this managed resource.
    natGatewayId string
    The ID of nat gateway used to launch kubernetes cluster.
    slbInternet string
    The public ip of load balancer.
    slbIntranet string
    The ID of private load balancer where the current cluster master node is located.
    vpcId string
    The ID of VPC where the current cluster is located.
    workerNodes EdgeKubernetesWorkerNode[]
    List of cluster worker nodes.
    workerRamRoleName string
    The RamRole Name attached to worker node.
    certificate_authority EdgeKubernetesCertificateAuthority
    Nested attribute containing certificate authority data for your cluster.
    connections EdgeKubernetesConnections
    Map of kubernetes cluster connection information.
    id str
    The provider-assigned unique ID for this managed resource.
    nat_gateway_id str
    The ID of nat gateway used to launch kubernetes cluster.
    slb_internet str
    The public ip of load balancer.
    slb_intranet str
    The ID of private load balancer where the current cluster master node is located.
    vpc_id str
    The ID of VPC where the current cluster is located.
    worker_nodes Sequence[EdgeKubernetesWorkerNode]
    List of cluster worker nodes.
    worker_ram_role_name str
    The RamRole Name attached to worker node.
    certificateAuthority Property Map
    Nested attribute containing certificate authority data for your cluster.
    connections Property Map
    Map of kubernetes cluster connection information.
    id String
    The provider-assigned unique ID for this managed resource.
    natGatewayId String
    The ID of nat gateway used to launch kubernetes cluster.
    slbInternet String
    The public ip of load balancer.
    slbIntranet String
    The ID of private load balancer where the current cluster master node is located.
    vpcId String
    The ID of VPC where the current cluster is located.
    workerNodes List<Property Map>
    List of cluster worker nodes.
    workerRamRoleName String
    The RamRole Name attached to worker node.

    Look up Existing EdgeKubernetes Resource

    Get an existing EdgeKubernetes 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?: EdgeKubernetesState, opts?: CustomResourceOptions): EdgeKubernetes
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            addons: Optional[Sequence[EdgeKubernetesAddonArgs]] = None,
            availability_zone: Optional[str] = None,
            certificate_authority: Optional[EdgeKubernetesCertificateAuthorityArgs] = None,
            client_cert: Optional[str] = None,
            client_key: Optional[str] = None,
            cluster_ca_cert: Optional[str] = None,
            cluster_spec: Optional[str] = None,
            connections: Optional[EdgeKubernetesConnectionsArgs] = None,
            deletion_protection: Optional[bool] = None,
            force_update: Optional[bool] = None,
            install_cloud_monitor: Optional[bool] = None,
            is_enterprise_security_group: Optional[bool] = None,
            key_name: Optional[str] = None,
            kube_config: Optional[str] = None,
            load_balancer_spec: Optional[str] = None,
            log_config: Optional[EdgeKubernetesLogConfigArgs] = None,
            name: Optional[str] = None,
            name_prefix: Optional[str] = None,
            nat_gateway_id: Optional[str] = None,
            new_nat_gateway: Optional[bool] = None,
            node_cidr_mask: Optional[int] = None,
            password: Optional[str] = None,
            pod_cidr: Optional[str] = None,
            proxy_mode: Optional[str] = None,
            rds_instances: Optional[Sequence[str]] = None,
            resource_group_id: Optional[str] = None,
            retain_resources: Optional[Sequence[str]] = None,
            runtime: Optional[EdgeKubernetesRuntimeArgs] = None,
            security_group_id: Optional[str] = None,
            service_cidr: Optional[str] = None,
            slb_internet: Optional[str] = None,
            slb_internet_enabled: Optional[bool] = None,
            slb_intranet: Optional[str] = None,
            tags: Optional[Mapping[str, Any]] = None,
            user_data: Optional[str] = None,
            version: Optional[str] = None,
            vpc_id: Optional[str] = None,
            worker_data_disks: Optional[Sequence[EdgeKubernetesWorkerDataDiskArgs]] = None,
            worker_disk_category: Optional[str] = None,
            worker_disk_performance_level: Optional[str] = None,
            worker_disk_size: Optional[int] = None,
            worker_disk_snapshot_policy_id: Optional[str] = None,
            worker_instance_charge_type: Optional[str] = None,
            worker_instance_types: Optional[Sequence[str]] = None,
            worker_nodes: Optional[Sequence[EdgeKubernetesWorkerNodeArgs]] = None,
            worker_number: Optional[int] = None,
            worker_ram_role_name: Optional[str] = None,
            worker_vswitch_ids: Optional[Sequence[str]] = None) -> EdgeKubernetes
    func GetEdgeKubernetes(ctx *Context, name string, id IDInput, state *EdgeKubernetesState, opts ...ResourceOption) (*EdgeKubernetes, error)
    public static EdgeKubernetes Get(string name, Input<string> id, EdgeKubernetesState? state, CustomResourceOptions? opts = null)
    public static EdgeKubernetes get(String name, Output<String> id, EdgeKubernetesState 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:
    Addons List<Pulumi.AliCloud.CS.Inputs.EdgeKubernetesAddon>
    The addon you want to install in cluster. See addons below.
    AvailabilityZone string
    The ID of availability zone.
    CertificateAuthority Pulumi.AliCloud.CS.Inputs.EdgeKubernetesCertificateAuthority
    Nested attribute containing certificate authority data for your cluster.
    ClientCert string
    The path of client certificate, like ~/.kube/client-cert.pem.
    ClientKey string
    The path of client key, like ~/.kube/client-key.pem.
    ClusterCaCert string

    The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

    Removed params

    ClusterSpec string
    The cluster specifications of kubernetes cluster,which can be empty. Valid values:

    • ack.standard : Standard edge clusters.
    • ack.pro.small : Professional edge clusters.
    Connections Pulumi.AliCloud.CS.Inputs.EdgeKubernetesConnections
    Map of kubernetes cluster connection information.
    DeletionProtection bool
    Whether to enable cluster deletion protection.
    ForceUpdate bool
    Default false, when you want to change vpc_id, you have to set this field to true, then the cluster will be recreated.
    InstallCloudMonitor bool
    Install cloud monitor agent on ECS. default: true.
    IsEnterpriseSecurityGroup bool
    Enable to create advanced security group. default: false. See Advanced security group.
    KeyName string
    The keypair of ssh login cluster node, you have to create it first. You have to specify one of password key_name kms_encrypted_password fields.
    KubeConfig string
    The path of kube config, like ~/.kube/config.

    Deprecated:Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.

    LoadBalancerSpec string

    The cluster api server load balance instance specification. For more information on how to select a LB instance specification, see SLB instance overview. ->NOTE: If you want to use Flannel as CNI network plugin, You need to specific the pod_cidr field and addons with flannel.

    Worker params

    LogConfig Pulumi.AliCloud.CS.Inputs.EdgeKubernetesLogConfig
    A list of one element containing information about the associated log store. See log_config below.

    Deprecated:Field 'log_config' has been removed from provider version 1.103.0. New field 'addons' replaces it.

    Name string
    The kubernetes cluster's name. It is unique in one Alicloud account.
    NamePrefix string
    NatGatewayId string
    The ID of nat gateway used to launch kubernetes cluster.
    NewNatGateway bool
    Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
    NodeCidrMask int
    The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
    Password string
    The password of ssh login cluster node. You have to specify one of password, key_name kms_encrypted_password fields.
    PodCidr string
    [Flannel Specific] The CIDR block for the pod network when using Flannel.
    ProxyMode string
    Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
    RdsInstances List<string>
    RDS instance list, You can choose which RDS instances whitelist to add instances to.
    ResourceGroupId string
    The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
    RetainResources List<string>
    Runtime Pulumi.AliCloud.CS.Inputs.EdgeKubernetesRuntime
    The runtime of containers. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container. Detailed below.
    SecurityGroupId string
    The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
    ServiceCidr string
    The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
    SlbInternet string
    The public ip of load balancer.
    SlbInternetEnabled bool
    Whether to create internet load balancer for API Server. Default to true.
    SlbIntranet string
    The ID of private load balancer where the current cluster master node is located.
    Tags Dictionary<string, object>
    Default nil, A map of tags assigned to the kubernetes cluster and work node.
    UserData string
    Windows instances support batch and PowerShell scripts. If your script file is larger than 1 KB, we recommend that you upload the script to Object Storage Service (OSS) and pull it through the internal endpoint of your OSS bucket.
    Version string
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    VpcId string
    The ID of VPC where the current cluster is located.
    WorkerDataDisks List<Pulumi.AliCloud.CS.Inputs.EdgeKubernetesWorkerDataDisk>
    The data disk configurations of worker nodes, such as the disk type and disk size. See worker_data_disks below.
    WorkerDiskCategory string
    The system disk category of worker node. Its valid value are cloud_efficiency, cloud_ssd and cloud_essd and . Default to cloud_efficiency.
    WorkerDiskPerformanceLevel string
    Worker node system disk performance level, when worker_disk_category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    WorkerDiskSize int
    The system disk size of worker node. Its valid value range [20~32768] in GB. Default to 40.
    WorkerDiskSnapshotPolicyId string

    Worker node system disk auto snapshot policy.

    Computed params

    You can set some file paths to save kube_config information, but this way is cumbersome. Since version 1.105.0, we've written it to tf state file. About its use,see export attribute certificate_authority. From version 1.187.0+, new DataSource alicloud.cs.getClusterCredential is recommended to manage cluster's kube_config.

    WorkerInstanceChargeType string
    Worker payment type, its valid value is PostPaid. Defaults to PostPaid. More charge details in ACK@edge charge.
    WorkerInstanceTypes List<string>
    The instance types of worker node, you can set multiple types to avoid NoStock of a certain type.
    WorkerNodes List<Pulumi.AliCloud.CS.Inputs.EdgeKubernetesWorkerNode>
    List of cluster worker nodes.
    WorkerNumber int
    The cloud worker node number of the edge kubernetes cluster. Default to 1. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us.
    WorkerRamRoleName string
    The RamRole Name attached to worker node.
    WorkerVswitchIds List<string>
    The vswitches used by workers.
    Addons []EdgeKubernetesAddonArgs
    The addon you want to install in cluster. See addons below.
    AvailabilityZone string
    The ID of availability zone.
    CertificateAuthority EdgeKubernetesCertificateAuthorityArgs
    Nested attribute containing certificate authority data for your cluster.
    ClientCert string
    The path of client certificate, like ~/.kube/client-cert.pem.
    ClientKey string
    The path of client key, like ~/.kube/client-key.pem.
    ClusterCaCert string

    The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

    Removed params

    ClusterSpec string
    The cluster specifications of kubernetes cluster,which can be empty. Valid values:

    • ack.standard : Standard edge clusters.
    • ack.pro.small : Professional edge clusters.
    Connections EdgeKubernetesConnectionsArgs
    Map of kubernetes cluster connection information.
    DeletionProtection bool
    Whether to enable cluster deletion protection.
    ForceUpdate bool
    Default false, when you want to change vpc_id, you have to set this field to true, then the cluster will be recreated.
    InstallCloudMonitor bool
    Install cloud monitor agent on ECS. default: true.
    IsEnterpriseSecurityGroup bool
    Enable to create advanced security group. default: false. See Advanced security group.
    KeyName string
    The keypair of ssh login cluster node, you have to create it first. You have to specify one of password key_name kms_encrypted_password fields.
    KubeConfig string
    The path of kube config, like ~/.kube/config.

    Deprecated:Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.

    LoadBalancerSpec string

    The cluster api server load balance instance specification. For more information on how to select a LB instance specification, see SLB instance overview. ->NOTE: If you want to use Flannel as CNI network plugin, You need to specific the pod_cidr field and addons with flannel.

    Worker params

    LogConfig EdgeKubernetesLogConfigArgs
    A list of one element containing information about the associated log store. See log_config below.

    Deprecated:Field 'log_config' has been removed from provider version 1.103.0. New field 'addons' replaces it.

    Name string
    The kubernetes cluster's name. It is unique in one Alicloud account.
    NamePrefix string
    NatGatewayId string
    The ID of nat gateway used to launch kubernetes cluster.
    NewNatGateway bool
    Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
    NodeCidrMask int
    The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
    Password string
    The password of ssh login cluster node. You have to specify one of password, key_name kms_encrypted_password fields.
    PodCidr string
    [Flannel Specific] The CIDR block for the pod network when using Flannel.
    ProxyMode string
    Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
    RdsInstances []string
    RDS instance list, You can choose which RDS instances whitelist to add instances to.
    ResourceGroupId string
    The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
    RetainResources []string
    Runtime EdgeKubernetesRuntimeArgs
    The runtime of containers. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container. Detailed below.
    SecurityGroupId string
    The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
    ServiceCidr string
    The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
    SlbInternet string
    The public ip of load balancer.
    SlbInternetEnabled bool
    Whether to create internet load balancer for API Server. Default to true.
    SlbIntranet string
    The ID of private load balancer where the current cluster master node is located.
    Tags map[string]interface{}
    Default nil, A map of tags assigned to the kubernetes cluster and work node.
    UserData string
    Windows instances support batch and PowerShell scripts. If your script file is larger than 1 KB, we recommend that you upload the script to Object Storage Service (OSS) and pull it through the internal endpoint of your OSS bucket.
    Version string
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    VpcId string
    The ID of VPC where the current cluster is located.
    WorkerDataDisks []EdgeKubernetesWorkerDataDiskArgs
    The data disk configurations of worker nodes, such as the disk type and disk size. See worker_data_disks below.
    WorkerDiskCategory string
    The system disk category of worker node. Its valid value are cloud_efficiency, cloud_ssd and cloud_essd and . Default to cloud_efficiency.
    WorkerDiskPerformanceLevel string
    Worker node system disk performance level, when worker_disk_category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    WorkerDiskSize int
    The system disk size of worker node. Its valid value range [20~32768] in GB. Default to 40.
    WorkerDiskSnapshotPolicyId string

    Worker node system disk auto snapshot policy.

    Computed params

    You can set some file paths to save kube_config information, but this way is cumbersome. Since version 1.105.0, we've written it to tf state file. About its use,see export attribute certificate_authority. From version 1.187.0+, new DataSource alicloud.cs.getClusterCredential is recommended to manage cluster's kube_config.

    WorkerInstanceChargeType string
    Worker payment type, its valid value is PostPaid. Defaults to PostPaid. More charge details in ACK@edge charge.
    WorkerInstanceTypes []string
    The instance types of worker node, you can set multiple types to avoid NoStock of a certain type.
    WorkerNodes []EdgeKubernetesWorkerNodeArgs
    List of cluster worker nodes.
    WorkerNumber int
    The cloud worker node number of the edge kubernetes cluster. Default to 1. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us.
    WorkerRamRoleName string
    The RamRole Name attached to worker node.
    WorkerVswitchIds []string
    The vswitches used by workers.
    addons List<EdgeKubernetesAddon>
    The addon you want to install in cluster. See addons below.
    availabilityZone String
    The ID of availability zone.
    certificateAuthority EdgeKubernetesCertificateAuthority
    Nested attribute containing certificate authority data for your cluster.
    clientCert String
    The path of client certificate, like ~/.kube/client-cert.pem.
    clientKey String
    The path of client key, like ~/.kube/client-key.pem.
    clusterCaCert String

    The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

    Removed params

    clusterSpec String
    The cluster specifications of kubernetes cluster,which can be empty. Valid values:

    • ack.standard : Standard edge clusters.
    • ack.pro.small : Professional edge clusters.
    connections EdgeKubernetesConnections
    Map of kubernetes cluster connection information.
    deletionProtection Boolean
    Whether to enable cluster deletion protection.
    forceUpdate Boolean
    Default false, when you want to change vpc_id, you have to set this field to true, then the cluster will be recreated.
    installCloudMonitor Boolean
    Install cloud monitor agent on ECS. default: true.
    isEnterpriseSecurityGroup Boolean
    Enable to create advanced security group. default: false. See Advanced security group.
    keyName String
    The keypair of ssh login cluster node, you have to create it first. You have to specify one of password key_name kms_encrypted_password fields.
    kubeConfig String
    The path of kube config, like ~/.kube/config.

    Deprecated:Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.

    loadBalancerSpec String

    The cluster api server load balance instance specification. For more information on how to select a LB instance specification, see SLB instance overview. ->NOTE: If you want to use Flannel as CNI network plugin, You need to specific the pod_cidr field and addons with flannel.

    Worker params

    logConfig EdgeKubernetesLogConfig
    A list of one element containing information about the associated log store. See log_config below.

    Deprecated:Field 'log_config' has been removed from provider version 1.103.0. New field 'addons' replaces it.

    name String
    The kubernetes cluster's name. It is unique in one Alicloud account.
    namePrefix String
    natGatewayId String
    The ID of nat gateway used to launch kubernetes cluster.
    newNatGateway Boolean
    Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
    nodeCidrMask Integer
    The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
    password String
    The password of ssh login cluster node. You have to specify one of password, key_name kms_encrypted_password fields.
    podCidr String
    [Flannel Specific] The CIDR block for the pod network when using Flannel.
    proxyMode String
    Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
    rdsInstances List<String>
    RDS instance list, You can choose which RDS instances whitelist to add instances to.
    resourceGroupId String
    The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
    retainResources List<String>
    runtime EdgeKubernetesRuntime
    The runtime of containers. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container. Detailed below.
    securityGroupId String
    The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
    serviceCidr String
    The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
    slbInternet String
    The public ip of load balancer.
    slbInternetEnabled Boolean
    Whether to create internet load balancer for API Server. Default to true.
    slbIntranet String
    The ID of private load balancer where the current cluster master node is located.
    tags Map<String,Object>
    Default nil, A map of tags assigned to the kubernetes cluster and work node.
    userData String
    Windows instances support batch and PowerShell scripts. If your script file is larger than 1 KB, we recommend that you upload the script to Object Storage Service (OSS) and pull it through the internal endpoint of your OSS bucket.
    version String
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    vpcId String
    The ID of VPC where the current cluster is located.
    workerDataDisks List<EdgeKubernetesWorkerDataDisk>
    The data disk configurations of worker nodes, such as the disk type and disk size. See worker_data_disks below.
    workerDiskCategory String
    The system disk category of worker node. Its valid value are cloud_efficiency, cloud_ssd and cloud_essd and . Default to cloud_efficiency.
    workerDiskPerformanceLevel String
    Worker node system disk performance level, when worker_disk_category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    workerDiskSize Integer
    The system disk size of worker node. Its valid value range [20~32768] in GB. Default to 40.
    workerDiskSnapshotPolicyId String

    Worker node system disk auto snapshot policy.

    Computed params

    You can set some file paths to save kube_config information, but this way is cumbersome. Since version 1.105.0, we've written it to tf state file. About its use,see export attribute certificate_authority. From version 1.187.0+, new DataSource alicloud.cs.getClusterCredential is recommended to manage cluster's kube_config.

    workerInstanceChargeType String
    Worker payment type, its valid value is PostPaid. Defaults to PostPaid. More charge details in ACK@edge charge.
    workerInstanceTypes List<String>
    The instance types of worker node, you can set multiple types to avoid NoStock of a certain type.
    workerNodes List<EdgeKubernetesWorkerNode>
    List of cluster worker nodes.
    workerNumber Integer
    The cloud worker node number of the edge kubernetes cluster. Default to 1. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us.
    workerRamRoleName String
    The RamRole Name attached to worker node.
    workerVswitchIds List<String>
    The vswitches used by workers.
    addons EdgeKubernetesAddon[]
    The addon you want to install in cluster. See addons below.
    availabilityZone string
    The ID of availability zone.
    certificateAuthority EdgeKubernetesCertificateAuthority
    Nested attribute containing certificate authority data for your cluster.
    clientCert string
    The path of client certificate, like ~/.kube/client-cert.pem.
    clientKey string
    The path of client key, like ~/.kube/client-key.pem.
    clusterCaCert string

    The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

    Removed params

    clusterSpec string
    The cluster specifications of kubernetes cluster,which can be empty. Valid values:

    • ack.standard : Standard edge clusters.
    • ack.pro.small : Professional edge clusters.
    connections EdgeKubernetesConnections
    Map of kubernetes cluster connection information.
    deletionProtection boolean
    Whether to enable cluster deletion protection.
    forceUpdate boolean
    Default false, when you want to change vpc_id, you have to set this field to true, then the cluster will be recreated.
    installCloudMonitor boolean
    Install cloud monitor agent on ECS. default: true.
    isEnterpriseSecurityGroup boolean
    Enable to create advanced security group. default: false. See Advanced security group.
    keyName string
    The keypair of ssh login cluster node, you have to create it first. You have to specify one of password key_name kms_encrypted_password fields.
    kubeConfig string
    The path of kube config, like ~/.kube/config.

    Deprecated:Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.

    loadBalancerSpec string

    The cluster api server load balance instance specification. For more information on how to select a LB instance specification, see SLB instance overview. ->NOTE: If you want to use Flannel as CNI network plugin, You need to specific the pod_cidr field and addons with flannel.

    Worker params

    logConfig EdgeKubernetesLogConfig
    A list of one element containing information about the associated log store. See log_config below.

    Deprecated:Field 'log_config' has been removed from provider version 1.103.0. New field 'addons' replaces it.

    name string
    The kubernetes cluster's name. It is unique in one Alicloud account.
    namePrefix string
    natGatewayId string
    The ID of nat gateway used to launch kubernetes cluster.
    newNatGateway boolean
    Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
    nodeCidrMask number
    The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
    password string
    The password of ssh login cluster node. You have to specify one of password, key_name kms_encrypted_password fields.
    podCidr string
    [Flannel Specific] The CIDR block for the pod network when using Flannel.
    proxyMode string
    Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
    rdsInstances string[]
    RDS instance list, You can choose which RDS instances whitelist to add instances to.
    resourceGroupId string
    The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
    retainResources string[]
    runtime EdgeKubernetesRuntime
    The runtime of containers. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container. Detailed below.
    securityGroupId string
    The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
    serviceCidr string
    The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
    slbInternet string
    The public ip of load balancer.
    slbInternetEnabled boolean
    Whether to create internet load balancer for API Server. Default to true.
    slbIntranet string
    The ID of private load balancer where the current cluster master node is located.
    tags {[key: string]: any}
    Default nil, A map of tags assigned to the kubernetes cluster and work node.
    userData string
    Windows instances support batch and PowerShell scripts. If your script file is larger than 1 KB, we recommend that you upload the script to Object Storage Service (OSS) and pull it through the internal endpoint of your OSS bucket.
    version string
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    vpcId string
    The ID of VPC where the current cluster is located.
    workerDataDisks EdgeKubernetesWorkerDataDisk[]
    The data disk configurations of worker nodes, such as the disk type and disk size. See worker_data_disks below.
    workerDiskCategory string
    The system disk category of worker node. Its valid value are cloud_efficiency, cloud_ssd and cloud_essd and . Default to cloud_efficiency.
    workerDiskPerformanceLevel string
    Worker node system disk performance level, when worker_disk_category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    workerDiskSize number
    The system disk size of worker node. Its valid value range [20~32768] in GB. Default to 40.
    workerDiskSnapshotPolicyId string

    Worker node system disk auto snapshot policy.

    Computed params

    You can set some file paths to save kube_config information, but this way is cumbersome. Since version 1.105.0, we've written it to tf state file. About its use,see export attribute certificate_authority. From version 1.187.0+, new DataSource alicloud.cs.getClusterCredential is recommended to manage cluster's kube_config.

    workerInstanceChargeType string
    Worker payment type, its valid value is PostPaid. Defaults to PostPaid. More charge details in ACK@edge charge.
    workerInstanceTypes string[]
    The instance types of worker node, you can set multiple types to avoid NoStock of a certain type.
    workerNodes EdgeKubernetesWorkerNode[]
    List of cluster worker nodes.
    workerNumber number
    The cloud worker node number of the edge kubernetes cluster. Default to 1. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us.
    workerRamRoleName string
    The RamRole Name attached to worker node.
    workerVswitchIds string[]
    The vswitches used by workers.
    addons Sequence[EdgeKubernetesAddonArgs]
    The addon you want to install in cluster. See addons below.
    availability_zone str
    The ID of availability zone.
    certificate_authority EdgeKubernetesCertificateAuthorityArgs
    Nested attribute containing certificate authority data for your cluster.
    client_cert str
    The path of client certificate, like ~/.kube/client-cert.pem.
    client_key str
    The path of client key, like ~/.kube/client-key.pem.
    cluster_ca_cert str

    The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

    Removed params

    cluster_spec str
    The cluster specifications of kubernetes cluster,which can be empty. Valid values:

    • ack.standard : Standard edge clusters.
    • ack.pro.small : Professional edge clusters.
    connections EdgeKubernetesConnectionsArgs
    Map of kubernetes cluster connection information.
    deletion_protection bool
    Whether to enable cluster deletion protection.
    force_update bool
    Default false, when you want to change vpc_id, you have to set this field to true, then the cluster will be recreated.
    install_cloud_monitor bool
    Install cloud monitor agent on ECS. default: true.
    is_enterprise_security_group bool
    Enable to create advanced security group. default: false. See Advanced security group.
    key_name str
    The keypair of ssh login cluster node, you have to create it first. You have to specify one of password key_name kms_encrypted_password fields.
    kube_config str
    The path of kube config, like ~/.kube/config.

    Deprecated:Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.

    load_balancer_spec str

    The cluster api server load balance instance specification. For more information on how to select a LB instance specification, see SLB instance overview. ->NOTE: If you want to use Flannel as CNI network plugin, You need to specific the pod_cidr field and addons with flannel.

    Worker params

    log_config EdgeKubernetesLogConfigArgs
    A list of one element containing information about the associated log store. See log_config below.

    Deprecated:Field 'log_config' has been removed from provider version 1.103.0. New field 'addons' replaces it.

    name str
    The kubernetes cluster's name. It is unique in one Alicloud account.
    name_prefix str
    nat_gateway_id str
    The ID of nat gateway used to launch kubernetes cluster.
    new_nat_gateway bool
    Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
    node_cidr_mask int
    The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
    password str
    The password of ssh login cluster node. You have to specify one of password, key_name kms_encrypted_password fields.
    pod_cidr str
    [Flannel Specific] The CIDR block for the pod network when using Flannel.
    proxy_mode str
    Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
    rds_instances Sequence[str]
    RDS instance list, You can choose which RDS instances whitelist to add instances to.
    resource_group_id str
    The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
    retain_resources Sequence[str]
    runtime EdgeKubernetesRuntimeArgs
    The runtime of containers. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container. Detailed below.
    security_group_id str
    The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
    service_cidr str
    The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
    slb_internet str
    The public ip of load balancer.
    slb_internet_enabled bool
    Whether to create internet load balancer for API Server. Default to true.
    slb_intranet str
    The ID of private load balancer where the current cluster master node is located.
    tags Mapping[str, Any]
    Default nil, A map of tags assigned to the kubernetes cluster and work node.
    user_data str
    Windows instances support batch and PowerShell scripts. If your script file is larger than 1 KB, we recommend that you upload the script to Object Storage Service (OSS) and pull it through the internal endpoint of your OSS bucket.
    version str
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    vpc_id str
    The ID of VPC where the current cluster is located.
    worker_data_disks Sequence[EdgeKubernetesWorkerDataDiskArgs]
    The data disk configurations of worker nodes, such as the disk type and disk size. See worker_data_disks below.
    worker_disk_category str
    The system disk category of worker node. Its valid value are cloud_efficiency, cloud_ssd and cloud_essd and . Default to cloud_efficiency.
    worker_disk_performance_level str
    Worker node system disk performance level, when worker_disk_category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    worker_disk_size int
    The system disk size of worker node. Its valid value range [20~32768] in GB. Default to 40.
    worker_disk_snapshot_policy_id str

    Worker node system disk auto snapshot policy.

    Computed params

    You can set some file paths to save kube_config information, but this way is cumbersome. Since version 1.105.0, we've written it to tf state file. About its use,see export attribute certificate_authority. From version 1.187.0+, new DataSource alicloud.cs.getClusterCredential is recommended to manage cluster's kube_config.

    worker_instance_charge_type str
    Worker payment type, its valid value is PostPaid. Defaults to PostPaid. More charge details in ACK@edge charge.
    worker_instance_types Sequence[str]
    The instance types of worker node, you can set multiple types to avoid NoStock of a certain type.
    worker_nodes Sequence[EdgeKubernetesWorkerNodeArgs]
    List of cluster worker nodes.
    worker_number int
    The cloud worker node number of the edge kubernetes cluster. Default to 1. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us.
    worker_ram_role_name str
    The RamRole Name attached to worker node.
    worker_vswitch_ids Sequence[str]
    The vswitches used by workers.
    addons List<Property Map>
    The addon you want to install in cluster. See addons below.
    availabilityZone String
    The ID of availability zone.
    certificateAuthority Property Map
    Nested attribute containing certificate authority data for your cluster.
    clientCert String
    The path of client certificate, like ~/.kube/client-cert.pem.
    clientKey String
    The path of client key, like ~/.kube/client-key.pem.
    clusterCaCert String

    The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem

    Removed params

    clusterSpec String
    The cluster specifications of kubernetes cluster,which can be empty. Valid values:

    • ack.standard : Standard edge clusters.
    • ack.pro.small : Professional edge clusters.
    connections Property Map
    Map of kubernetes cluster connection information.
    deletionProtection Boolean
    Whether to enable cluster deletion protection.
    forceUpdate Boolean
    Default false, when you want to change vpc_id, you have to set this field to true, then the cluster will be recreated.
    installCloudMonitor Boolean
    Install cloud monitor agent on ECS. default: true.
    isEnterpriseSecurityGroup Boolean
    Enable to create advanced security group. default: false. See Advanced security group.
    keyName String
    The keypair of ssh login cluster node, you have to create it first. You have to specify one of password key_name kms_encrypted_password fields.
    kubeConfig String
    The path of kube config, like ~/.kube/config.

    Deprecated:Field 'kube_config' has been deprecated from provider version 1.187.0. New DataSource 'alicloud_cs_cluster_credential' manage your cluster's kube config.

    loadBalancerSpec String

    The cluster api server load balance instance specification. For more information on how to select a LB instance specification, see SLB instance overview. ->NOTE: If you want to use Flannel as CNI network plugin, You need to specific the pod_cidr field and addons with flannel.

    Worker params

    logConfig Property Map
    A list of one element containing information about the associated log store. See log_config below.

    Deprecated:Field 'log_config' has been removed from provider version 1.103.0. New field 'addons' replaces it.

    name String
    The kubernetes cluster's name. It is unique in one Alicloud account.
    namePrefix String
    natGatewayId String
    The ID of nat gateway used to launch kubernetes cluster.
    newNatGateway Boolean
    Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
    nodeCidrMask Number
    The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
    password String
    The password of ssh login cluster node. You have to specify one of password, key_name kms_encrypted_password fields.
    podCidr String
    [Flannel Specific] The CIDR block for the pod network when using Flannel.
    proxyMode String
    Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
    rdsInstances List<String>
    RDS instance list, You can choose which RDS instances whitelist to add instances to.
    resourceGroupId String
    The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
    retainResources List<String>
    runtime Property Map
    The runtime of containers. If you select another container runtime, see Comparison of Docker, containerd, and Sandboxed-Container. Detailed below.
    securityGroupId String
    The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
    serviceCidr String
    The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
    slbInternet String
    The public ip of load balancer.
    slbInternetEnabled Boolean
    Whether to create internet load balancer for API Server. Default to true.
    slbIntranet String
    The ID of private load balancer where the current cluster master node is located.
    tags Map<Any>
    Default nil, A map of tags assigned to the kubernetes cluster and work node.
    userData String
    Windows instances support batch and PowerShell scripts. If your script file is larger than 1 KB, we recommend that you upload the script to Object Storage Service (OSS) and pull it through the internal endpoint of your OSS bucket.
    version String
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    vpcId String
    The ID of VPC where the current cluster is located.
    workerDataDisks List<Property Map>
    The data disk configurations of worker nodes, such as the disk type and disk size. See worker_data_disks below.
    workerDiskCategory String
    The system disk category of worker node. Its valid value are cloud_efficiency, cloud_ssd and cloud_essd and . Default to cloud_efficiency.
    workerDiskPerformanceLevel String
    Worker node system disk performance level, when worker_disk_category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    workerDiskSize Number
    The system disk size of worker node. Its valid value range [20~32768] in GB. Default to 40.
    workerDiskSnapshotPolicyId String

    Worker node system disk auto snapshot policy.

    Computed params

    You can set some file paths to save kube_config information, but this way is cumbersome. Since version 1.105.0, we've written it to tf state file. About its use,see export attribute certificate_authority. From version 1.187.0+, new DataSource alicloud.cs.getClusterCredential is recommended to manage cluster's kube_config.

    workerInstanceChargeType String
    Worker payment type, its valid value is PostPaid. Defaults to PostPaid. More charge details in ACK@edge charge.
    workerInstanceTypes List<String>
    The instance types of worker node, you can set multiple types to avoid NoStock of a certain type.
    workerNodes List<Property Map>
    List of cluster worker nodes.
    workerNumber Number
    The cloud worker node number of the edge kubernetes cluster. Default to 1. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us.
    workerRamRoleName String
    The RamRole Name attached to worker node.
    workerVswitchIds List<String>
    The vswitches used by workers.

    Supporting Types

    EdgeKubernetesAddon, EdgeKubernetesAddonArgs

    Config string
    The ACK add-on configurations.
    Disabled bool

    Disables the automatic installation of a component. Default is false.

    The following example is the definition of addons block, The type of this field is list:

    Name string
    Name of the ACK add-on. The name must match one of the names returned by DescribeAddons.
    Config string
    The ACK add-on configurations.
    Disabled bool

    Disables the automatic installation of a component. Default is false.

    The following example is the definition of addons block, The type of this field is list:

    Name string
    Name of the ACK add-on. The name must match one of the names returned by DescribeAddons.
    config String
    The ACK add-on configurations.
    disabled Boolean

    Disables the automatic installation of a component. Default is false.

    The following example is the definition of addons block, The type of this field is list:

    name String
    Name of the ACK add-on. The name must match one of the names returned by DescribeAddons.
    config string
    The ACK add-on configurations.
    disabled boolean

    Disables the automatic installation of a component. Default is false.

    The following example is the definition of addons block, The type of this field is list:

    name string
    Name of the ACK add-on. The name must match one of the names returned by DescribeAddons.
    config str
    The ACK add-on configurations.
    disabled bool

    Disables the automatic installation of a component. Default is false.

    The following example is the definition of addons block, The type of this field is list:

    name str
    Name of the ACK add-on. The name must match one of the names returned by DescribeAddons.
    config String
    The ACK add-on configurations.
    disabled Boolean

    Disables the automatic installation of a component. Default is false.

    The following example is the definition of addons block, The type of this field is list:

    name String
    Name of the ACK add-on. The name must match one of the names returned by DescribeAddons.

    EdgeKubernetesCertificateAuthority, EdgeKubernetesCertificateAuthorityArgs

    ClientCert string
    The path of client certificate, like ~/.kube/client-cert.pem.
    ClientKey string
    The path of client key, like ~/.kube/client-key.pem.
    ClusterCert string
    The base64 encoded cluster certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster.
    ClientCert string
    The path of client certificate, like ~/.kube/client-cert.pem.
    ClientKey string
    The path of client key, like ~/.kube/client-key.pem.
    ClusterCert string
    The base64 encoded cluster certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster.
    clientCert String
    The path of client certificate, like ~/.kube/client-cert.pem.
    clientKey String
    The path of client key, like ~/.kube/client-key.pem.
    clusterCert String
    The base64 encoded cluster certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster.
    clientCert string
    The path of client certificate, like ~/.kube/client-cert.pem.
    clientKey string
    The path of client key, like ~/.kube/client-key.pem.
    clusterCert string
    The base64 encoded cluster certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster.
    client_cert str
    The path of client certificate, like ~/.kube/client-cert.pem.
    client_key str
    The path of client key, like ~/.kube/client-key.pem.
    cluster_cert str
    The base64 encoded cluster certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster.
    clientCert String
    The path of client certificate, like ~/.kube/client-cert.pem.
    clientKey String
    The path of client key, like ~/.kube/client-key.pem.
    clusterCert String
    The base64 encoded cluster certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kubeconfig file for your cluster.

    EdgeKubernetesConnections, EdgeKubernetesConnectionsArgs

    ApiServerInternet string
    API Server Internet endpoint.
    ApiServerIntranet string
    API Server Intranet endpoint.
    MasterPublicIp string
    Master node SSH IP address.
    ServiceDomain string
    Service Access Domain.
    ApiServerInternet string
    API Server Internet endpoint.
    ApiServerIntranet string
    API Server Intranet endpoint.
    MasterPublicIp string
    Master node SSH IP address.
    ServiceDomain string
    Service Access Domain.
    apiServerInternet String
    API Server Internet endpoint.
    apiServerIntranet String
    API Server Intranet endpoint.
    masterPublicIp String
    Master node SSH IP address.
    serviceDomain String
    Service Access Domain.
    apiServerInternet string
    API Server Internet endpoint.
    apiServerIntranet string
    API Server Intranet endpoint.
    masterPublicIp string
    Master node SSH IP address.
    serviceDomain string
    Service Access Domain.
    api_server_internet str
    API Server Internet endpoint.
    api_server_intranet str
    API Server Intranet endpoint.
    master_public_ip str
    Master node SSH IP address.
    service_domain str
    Service Access Domain.
    apiServerInternet String
    API Server Internet endpoint.
    apiServerIntranet String
    API Server Intranet endpoint.
    masterPublicIp String
    Master node SSH IP address.
    serviceDomain String
    Service Access Domain.

    EdgeKubernetesLogConfig, EdgeKubernetesLogConfigArgs

    Type string
    Type of collecting logs, only SLS are supported currently.
    Project string
    Log Service project name, cluster logs will output to this project.
    Type string
    Type of collecting logs, only SLS are supported currently.
    Project string
    Log Service project name, cluster logs will output to this project.
    type String
    Type of collecting logs, only SLS are supported currently.
    project String
    Log Service project name, cluster logs will output to this project.
    type string
    Type of collecting logs, only SLS are supported currently.
    project string
    Log Service project name, cluster logs will output to this project.
    type str
    Type of collecting logs, only SLS are supported currently.
    project str
    Log Service project name, cluster logs will output to this project.
    type String
    Type of collecting logs, only SLS are supported currently.
    project String
    Log Service project name, cluster logs will output to this project.

    EdgeKubernetesRuntime, EdgeKubernetesRuntimeArgs

    Name string
    The kubernetes cluster's name. It is unique in one Alicloud account.
    Version string
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    Name string
    The kubernetes cluster's name. It is unique in one Alicloud account.
    Version string
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    name String
    The kubernetes cluster's name. It is unique in one Alicloud account.
    version String
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    name string
    The kubernetes cluster's name. It is unique in one Alicloud account.
    version string
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    name str
    The kubernetes cluster's name. It is unique in one Alicloud account.
    version str
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
    name String
    The kubernetes cluster's name. It is unique in one Alicloud account.
    version String
    Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.

    EdgeKubernetesWorkerDataDisk, EdgeKubernetesWorkerDataDiskArgs

    AutoSnapshotPolicyId string
    Worker node data disk auto snapshot policy.
    Category string
    The type of the data disks. Valid values: cloud, cloud_efficiency, cloud_ssd and cloud_essd. Default to cloud_efficiency.
    Device string
    The device of the data disks.
    Encrypted string
    Specifies whether to encrypt data disks. Valid values: true and false. Default is false.
    KmsKeyId string
    The id of the kms key.
    Name string
    The name of the data disks.
    PerformanceLevel string
    Worker node data disk performance level, when category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    Size string
    The size of a data disk, at least 40. Unit: GiB.
    SnapshotId string
    The id of snapshot.
    AutoSnapshotPolicyId string
    Worker node data disk auto snapshot policy.
    Category string
    The type of the data disks. Valid values: cloud, cloud_efficiency, cloud_ssd and cloud_essd. Default to cloud_efficiency.
    Device string
    The device of the data disks.
    Encrypted string
    Specifies whether to encrypt data disks. Valid values: true and false. Default is false.
    KmsKeyId string
    The id of the kms key.
    Name string
    The name of the data disks.
    PerformanceLevel string
    Worker node data disk performance level, when category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    Size string
    The size of a data disk, at least 40. Unit: GiB.
    SnapshotId string
    The id of snapshot.
    autoSnapshotPolicyId String
    Worker node data disk auto snapshot policy.
    category String
    The type of the data disks. Valid values: cloud, cloud_efficiency, cloud_ssd and cloud_essd. Default to cloud_efficiency.
    device String
    The device of the data disks.
    encrypted String
    Specifies whether to encrypt data disks. Valid values: true and false. Default is false.
    kmsKeyId String
    The id of the kms key.
    name String
    The name of the data disks.
    performanceLevel String
    Worker node data disk performance level, when category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    size String
    The size of a data disk, at least 40. Unit: GiB.
    snapshotId String
    The id of snapshot.
    autoSnapshotPolicyId string
    Worker node data disk auto snapshot policy.
    category string
    The type of the data disks. Valid values: cloud, cloud_efficiency, cloud_ssd and cloud_essd. Default to cloud_efficiency.
    device string
    The device of the data disks.
    encrypted string
    Specifies whether to encrypt data disks. Valid values: true and false. Default is false.
    kmsKeyId string
    The id of the kms key.
    name string
    The name of the data disks.
    performanceLevel string
    Worker node data disk performance level, when category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    size string
    The size of a data disk, at least 40. Unit: GiB.
    snapshotId string
    The id of snapshot.
    auto_snapshot_policy_id str
    Worker node data disk auto snapshot policy.
    category str
    The type of the data disks. Valid values: cloud, cloud_efficiency, cloud_ssd and cloud_essd. Default to cloud_efficiency.
    device str
    The device of the data disks.
    encrypted str
    Specifies whether to encrypt data disks. Valid values: true and false. Default is false.
    kms_key_id str
    The id of the kms key.
    name str
    The name of the data disks.
    performance_level str
    Worker node data disk performance level, when category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    size str
    The size of a data disk, at least 40. Unit: GiB.
    snapshot_id str
    The id of snapshot.
    autoSnapshotPolicyId String
    Worker node data disk auto snapshot policy.
    category String
    The type of the data disks. Valid values: cloud, cloud_efficiency, cloud_ssd and cloud_essd. Default to cloud_efficiency.
    device String
    The device of the data disks.
    encrypted String
    Specifies whether to encrypt data disks. Valid values: true and false. Default is false.
    kmsKeyId String
    The id of the kms key.
    name String
    The name of the data disks.
    performanceLevel String
    Worker node data disk performance level, when category values cloud_essd, the optional values are PL0, PL1, PL2 or PL3, but the specific performance level is related to the disk capacity. For more information, see Enhanced SSDs. Default is PL1.
    size String
    The size of a data disk, at least 40. Unit: GiB.
    snapshotId String
    The id of snapshot.

    EdgeKubernetesWorkerNode, EdgeKubernetesWorkerNodeArgs

    Id string
    ID of the node.
    Name string
    The kubernetes cluster's name. It is unique in one Alicloud account.
    PrivateIp string
    The private IP address of node.
    Id string
    ID of the node.
    Name string
    The kubernetes cluster's name. It is unique in one Alicloud account.
    PrivateIp string
    The private IP address of node.
    id String
    ID of the node.
    name String
    The kubernetes cluster's name. It is unique in one Alicloud account.
    privateIp String
    The private IP address of node.
    id string
    ID of the node.
    name string
    The kubernetes cluster's name. It is unique in one Alicloud account.
    privateIp string
    The private IP address of node.
    id str
    ID of the node.
    name str
    The kubernetes cluster's name. It is unique in one Alicloud account.
    private_ip str
    The private IP address of node.
    id String
    ID of the node.
    name String
    The kubernetes cluster's name. It is unique in one Alicloud account.
    privateIp String
    The private IP address of node.

    Import

    Kubernetes edge cluster can be imported using the id, e.g. Then complete the main.tf accords to the result of pulumi preview.

    $ pulumi import alicloud:cs/edgeKubernetes:EdgeKubernetes main cluster-id
    

    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.51.0 published on Saturday, Mar 23, 2024 by Pulumi