1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. KubernetesCluster
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.KubernetesCluster

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

    Example Usage

    Create a basic cluster with two worker nodes

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const defaultInstanceType = config.get("defaultInstanceType") || "SA2.2XLARGE16";
    const availabilityZoneFirst = config.get("availabilityZoneFirst") || "ap-guangzhou-3";
    const availabilityZoneSecond = config.get("availabilityZoneSecond") || "ap-guangzhou-4";
    const exampleClusterCidr = config.get("exampleClusterCidr") || "10.31.0.0/16";
    const vpcOne = tencentcloud.getVpcSubnets({
        isDefault: true,
        availabilityZone: availabilityZoneFirst,
    });
    const firstVpcId = vpcOne.then(vpcOne => vpcOne.instanceLists?.[0]?.vpcId);
    const firstSubnetId = vpcOne.then(vpcOne => vpcOne.instanceLists?.[0]?.subnetId);
    const vpcTwo = tencentcloud.getVpcSubnets({
        isDefault: true,
        availabilityZone: availabilityZoneSecond,
    });
    const secondVpcId = vpcTwo.then(vpcTwo => vpcTwo.instanceLists?.[0]?.vpcId);
    const secondSubnetId = vpcTwo.then(vpcTwo => vpcTwo.instanceLists?.[0]?.subnetId);
    const sg = new tencentcloud.SecurityGroup("sg", {});
    const sgId = sg.securityGroupId;
    const _default = tencentcloud.getImages({
        imageTypes: ["PUBLIC_IMAGE"],
        imageNameRegex: "Final",
    });
    const imageId = _default.then(_default => _default.imageId);
    const sgRule = new tencentcloud.SecurityGroupLiteRule("sgRule", {
        securityGroupId: sg.securityGroupId,
        ingresses: [
            "ACCEPT#10.0.0.0/16#ALL#ALL",
            "ACCEPT#172.16.0.0/22#ALL#ALL",
            "DROP#0.0.0.0/0#ALL#ALL",
        ],
        egresses: ["ACCEPT#172.16.0.0/22#ALL#ALL"],
    });
    const example = new tencentcloud.KubernetesCluster("example", {
        vpcId: firstVpcId,
        clusterCidr: exampleClusterCidr,
        clusterMaxPodNum: 32,
        clusterName: "tf_example_cluster",
        clusterDesc: "example for tke cluster",
        clusterMaxServiceNum: 32,
        clusterInternet: false,
        clusterInternetSecurityGroup: sgId,
        clusterVersion: "1.22.5",
        clusterDeployType: "MANAGED_CLUSTER",
        workerConfigs: [
            {
                count: 1,
                availabilityZone: availabilityZoneFirst,
                instanceType: defaultInstanceType,
                systemDiskType: "CLOUD_SSD",
                systemDiskSize: 60,
                internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
                internetMaxBandwidthOut: 100,
                publicIpAssigned: true,
                subnetId: firstSubnetId,
                dataDisks: [{
                    diskType: "CLOUD_PREMIUM",
                    diskSize: 50,
                }],
                enhancedSecurityService: false,
                enhancedMonitorService: false,
                userData: "dGVzdA==",
                password: "ZZXXccvv1212",
            },
            {
                count: 1,
                availabilityZone: availabilityZoneSecond,
                instanceType: defaultInstanceType,
                systemDiskType: "CLOUD_SSD",
                systemDiskSize: 60,
                internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
                internetMaxBandwidthOut: 100,
                publicIpAssigned: true,
                subnetId: secondSubnetId,
                dataDisks: [{
                    diskType: "CLOUD_PREMIUM",
                    diskSize: 50,
                }],
                enhancedSecurityService: false,
                enhancedMonitorService: false,
                userData: "dGVzdA==",
                keyIds: ["skey-11112222"],
                camRoleName: "CVM_QcsRole",
            },
        ],
        labels: {
            test1: "test1",
            test2: "test2",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    default_instance_type = config.get("defaultInstanceType")
    if default_instance_type is None:
        default_instance_type = "SA2.2XLARGE16"
    availability_zone_first = config.get("availabilityZoneFirst")
    if availability_zone_first is None:
        availability_zone_first = "ap-guangzhou-3"
    availability_zone_second = config.get("availabilityZoneSecond")
    if availability_zone_second is None:
        availability_zone_second = "ap-guangzhou-4"
    example_cluster_cidr = config.get("exampleClusterCidr")
    if example_cluster_cidr is None:
        example_cluster_cidr = "10.31.0.0/16"
    vpc_one = tencentcloud.get_vpc_subnets(is_default=True,
        availability_zone=availability_zone_first)
    first_vpc_id = vpc_one.instance_lists[0].vpc_id
    first_subnet_id = vpc_one.instance_lists[0].subnet_id
    vpc_two = tencentcloud.get_vpc_subnets(is_default=True,
        availability_zone=availability_zone_second)
    second_vpc_id = vpc_two.instance_lists[0].vpc_id
    second_subnet_id = vpc_two.instance_lists[0].subnet_id
    sg = tencentcloud.SecurityGroup("sg")
    sg_id = sg.security_group_id
    default = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
        image_name_regex="Final")
    image_id = default.image_id
    sg_rule = tencentcloud.SecurityGroupLiteRule("sgRule",
        security_group_id=sg.security_group_id,
        ingresses=[
            "ACCEPT#10.0.0.0/16#ALL#ALL",
            "ACCEPT#172.16.0.0/22#ALL#ALL",
            "DROP#0.0.0.0/0#ALL#ALL",
        ],
        egresses=["ACCEPT#172.16.0.0/22#ALL#ALL"])
    example = tencentcloud.KubernetesCluster("example",
        vpc_id=first_vpc_id,
        cluster_cidr=example_cluster_cidr,
        cluster_max_pod_num=32,
        cluster_name="tf_example_cluster",
        cluster_desc="example for tke cluster",
        cluster_max_service_num=32,
        cluster_internet=False,
        cluster_internet_security_group=sg_id,
        cluster_version="1.22.5",
        cluster_deploy_type="MANAGED_CLUSTER",
        worker_configs=[
            {
                "count": 1,
                "availability_zone": availability_zone_first,
                "instance_type": default_instance_type,
                "system_disk_type": "CLOUD_SSD",
                "system_disk_size": 60,
                "internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
                "internet_max_bandwidth_out": 100,
                "public_ip_assigned": True,
                "subnet_id": first_subnet_id,
                "data_disks": [{
                    "disk_type": "CLOUD_PREMIUM",
                    "disk_size": 50,
                }],
                "enhanced_security_service": False,
                "enhanced_monitor_service": False,
                "user_data": "dGVzdA==",
                "password": "ZZXXccvv1212",
            },
            {
                "count": 1,
                "availability_zone": availability_zone_second,
                "instance_type": default_instance_type,
                "system_disk_type": "CLOUD_SSD",
                "system_disk_size": 60,
                "internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
                "internet_max_bandwidth_out": 100,
                "public_ip_assigned": True,
                "subnet_id": second_subnet_id,
                "data_disks": [{
                    "disk_type": "CLOUD_PREMIUM",
                    "disk_size": 50,
                }],
                "enhanced_security_service": False,
                "enhanced_monitor_service": False,
                "user_data": "dGVzdA==",
                "key_ids": ["skey-11112222"],
                "cam_role_name": "CVM_QcsRole",
            },
        ],
        labels={
            "test1": "test1",
            "test2": "test2",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"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, "")
    		defaultInstanceType := "SA2.2XLARGE16"
    		if param := cfg.Get("defaultInstanceType"); param != "" {
    			defaultInstanceType = param
    		}
    		availabilityZoneFirst := "ap-guangzhou-3"
    		if param := cfg.Get("availabilityZoneFirst"); param != "" {
    			availabilityZoneFirst = param
    		}
    		availabilityZoneSecond := "ap-guangzhou-4"
    		if param := cfg.Get("availabilityZoneSecond"); param != "" {
    			availabilityZoneSecond = param
    		}
    		exampleClusterCidr := "10.31.0.0/16"
    		if param := cfg.Get("exampleClusterCidr"); param != "" {
    			exampleClusterCidr = param
    		}
    		vpcOne, err := tencentcloud.GetVpcSubnets(ctx, &tencentcloud.GetVpcSubnetsArgs{
    			IsDefault:        pulumi.BoolRef(true),
    			AvailabilityZone: pulumi.StringRef(availabilityZoneFirst),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		firstVpcId := vpcOne.InstanceLists[0].VpcId
    		firstSubnetId := vpcOne.InstanceLists[0].SubnetId
    		vpcTwo, err := tencentcloud.GetVpcSubnets(ctx, &tencentcloud.GetVpcSubnetsArgs{
    			IsDefault:        pulumi.BoolRef(true),
    			AvailabilityZone: pulumi.StringRef(availabilityZoneSecond),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_ := vpcTwo.InstanceLists[0].VpcId
    		secondSubnetId := vpcTwo.InstanceLists[0].SubnetId
    		sg, err := tencentcloud.NewSecurityGroup(ctx, "sg", nil)
    		if err != nil {
    			return err
    		}
    		sgId := sg.SecurityGroupId
    		_default, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
    			ImageTypes: []string{
    				"PUBLIC_IMAGE",
    			},
    			ImageNameRegex: pulumi.StringRef("Final"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_ := _default.ImageId
    		_, err = tencentcloud.NewSecurityGroupLiteRule(ctx, "sgRule", &tencentcloud.SecurityGroupLiteRuleArgs{
    			SecurityGroupId: sg.SecurityGroupId,
    			Ingresses: pulumi.StringArray{
    				pulumi.String("ACCEPT#10.0.0.0/16#ALL#ALL"),
    				pulumi.String("ACCEPT#172.16.0.0/22#ALL#ALL"),
    				pulumi.String("DROP#0.0.0.0/0#ALL#ALL"),
    			},
    			Egresses: pulumi.StringArray{
    				pulumi.String("ACCEPT#172.16.0.0/22#ALL#ALL"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewKubernetesCluster(ctx, "example", &tencentcloud.KubernetesClusterArgs{
    			VpcId:                        pulumi.String(firstVpcId),
    			ClusterCidr:                  pulumi.String(exampleClusterCidr),
    			ClusterMaxPodNum:             pulumi.Float64(32),
    			ClusterName:                  pulumi.String("tf_example_cluster"),
    			ClusterDesc:                  pulumi.String("example for tke cluster"),
    			ClusterMaxServiceNum:         pulumi.Float64(32),
    			ClusterInternet:              pulumi.Bool(false),
    			ClusterInternetSecurityGroup: pulumi.String(sgId),
    			ClusterVersion:               pulumi.String("1.22.5"),
    			ClusterDeployType:            pulumi.String("MANAGED_CLUSTER"),
    			WorkerConfigs: tencentcloud.KubernetesClusterWorkerConfigArray{
    				&tencentcloud.KubernetesClusterWorkerConfigArgs{
    					Count:                   pulumi.Float64(1),
    					AvailabilityZone:        pulumi.String(availabilityZoneFirst),
    					InstanceType:            pulumi.String(defaultInstanceType),
    					SystemDiskType:          pulumi.String("CLOUD_SSD"),
    					SystemDiskSize:          pulumi.Float64(60),
    					InternetChargeType:      pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
    					InternetMaxBandwidthOut: pulumi.Float64(100),
    					PublicIpAssigned:        pulumi.Bool(true),
    					SubnetId:                pulumi.String(firstSubnetId),
    					DataDisks: tencentcloud.KubernetesClusterWorkerConfigDataDiskArray{
    						&tencentcloud.KubernetesClusterWorkerConfigDataDiskArgs{
    							DiskType: pulumi.String("CLOUD_PREMIUM"),
    							DiskSize: pulumi.Float64(50),
    						},
    					},
    					EnhancedSecurityService: pulumi.Bool(false),
    					EnhancedMonitorService:  pulumi.Bool(false),
    					UserData:                pulumi.String("dGVzdA=="),
    					Password:                pulumi.String("ZZXXccvv1212"),
    				},
    				&tencentcloud.KubernetesClusterWorkerConfigArgs{
    					Count:                   pulumi.Float64(1),
    					AvailabilityZone:        pulumi.String(availabilityZoneSecond),
    					InstanceType:            pulumi.String(defaultInstanceType),
    					SystemDiskType:          pulumi.String("CLOUD_SSD"),
    					SystemDiskSize:          pulumi.Float64(60),
    					InternetChargeType:      pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
    					InternetMaxBandwidthOut: pulumi.Float64(100),
    					PublicIpAssigned:        pulumi.Bool(true),
    					SubnetId:                pulumi.String(secondSubnetId),
    					DataDisks: tencentcloud.KubernetesClusterWorkerConfigDataDiskArray{
    						&tencentcloud.KubernetesClusterWorkerConfigDataDiskArgs{
    							DiskType: pulumi.String("CLOUD_PREMIUM"),
    							DiskSize: pulumi.Float64(50),
    						},
    					},
    					EnhancedSecurityService: pulumi.Bool(false),
    					EnhancedMonitorService:  pulumi.Bool(false),
    					UserData:                pulumi.String("dGVzdA=="),
    					KeyIds: pulumi.StringArray{
    						pulumi.String("skey-11112222"),
    					},
    					CamRoleName: pulumi.String("CVM_QcsRole"),
    				},
    			},
    			Labels: pulumi.StringMap{
    				"test1": pulumi.String("test1"),
    				"test2": pulumi.String("test2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var defaultInstanceType = config.Get("defaultInstanceType") ?? "SA2.2XLARGE16";
        var availabilityZoneFirst = config.Get("availabilityZoneFirst") ?? "ap-guangzhou-3";
        var availabilityZoneSecond = config.Get("availabilityZoneSecond") ?? "ap-guangzhou-4";
        var exampleClusterCidr = config.Get("exampleClusterCidr") ?? "10.31.0.0/16";
        var vpcOne = Tencentcloud.GetVpcSubnets.Invoke(new()
        {
            IsDefault = true,
            AvailabilityZone = availabilityZoneFirst,
        });
    
        var firstVpcId = vpcOne.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.VpcId);
    
        var firstSubnetId = vpcOne.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.SubnetId);
    
        var vpcTwo = Tencentcloud.GetVpcSubnets.Invoke(new()
        {
            IsDefault = true,
            AvailabilityZone = availabilityZoneSecond,
        });
    
        var secondVpcId = vpcTwo.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.VpcId);
    
        var secondSubnetId = vpcTwo.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.SubnetId);
    
        var sg = new Tencentcloud.SecurityGroup("sg");
    
        var sgId = sg.SecurityGroupId;
    
        var @default = Tencentcloud.GetImages.Invoke(new()
        {
            ImageTypes = new[]
            {
                "PUBLIC_IMAGE",
            },
            ImageNameRegex = "Final",
        });
    
        var imageId = @default.Apply(@default => @default.Apply(getImagesResult => getImagesResult.ImageId));
    
        var sgRule = new Tencentcloud.SecurityGroupLiteRule("sgRule", new()
        {
            SecurityGroupId = sg.SecurityGroupId,
            Ingresses = new[]
            {
                "ACCEPT#10.0.0.0/16#ALL#ALL",
                "ACCEPT#172.16.0.0/22#ALL#ALL",
                "DROP#0.0.0.0/0#ALL#ALL",
            },
            Egresses = new[]
            {
                "ACCEPT#172.16.0.0/22#ALL#ALL",
            },
        });
    
        var example = new Tencentcloud.KubernetesCluster("example", new()
        {
            VpcId = firstVpcId,
            ClusterCidr = exampleClusterCidr,
            ClusterMaxPodNum = 32,
            ClusterName = "tf_example_cluster",
            ClusterDesc = "example for tke cluster",
            ClusterMaxServiceNum = 32,
            ClusterInternet = false,
            ClusterInternetSecurityGroup = sgId,
            ClusterVersion = "1.22.5",
            ClusterDeployType = "MANAGED_CLUSTER",
            WorkerConfigs = new[]
            {
                new Tencentcloud.Inputs.KubernetesClusterWorkerConfigArgs
                {
                    Count = 1,
                    AvailabilityZone = availabilityZoneFirst,
                    InstanceType = defaultInstanceType,
                    SystemDiskType = "CLOUD_SSD",
                    SystemDiskSize = 60,
                    InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
                    InternetMaxBandwidthOut = 100,
                    PublicIpAssigned = true,
                    SubnetId = firstSubnetId,
                    DataDisks = new[]
                    {
                        new Tencentcloud.Inputs.KubernetesClusterWorkerConfigDataDiskArgs
                        {
                            DiskType = "CLOUD_PREMIUM",
                            DiskSize = 50,
                        },
                    },
                    EnhancedSecurityService = false,
                    EnhancedMonitorService = false,
                    UserData = "dGVzdA==",
                    Password = "ZZXXccvv1212",
                },
                new Tencentcloud.Inputs.KubernetesClusterWorkerConfigArgs
                {
                    Count = 1,
                    AvailabilityZone = availabilityZoneSecond,
                    InstanceType = defaultInstanceType,
                    SystemDiskType = "CLOUD_SSD",
                    SystemDiskSize = 60,
                    InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
                    InternetMaxBandwidthOut = 100,
                    PublicIpAssigned = true,
                    SubnetId = secondSubnetId,
                    DataDisks = new[]
                    {
                        new Tencentcloud.Inputs.KubernetesClusterWorkerConfigDataDiskArgs
                        {
                            DiskType = "CLOUD_PREMIUM",
                            DiskSize = 50,
                        },
                    },
                    EnhancedSecurityService = false,
                    EnhancedMonitorService = false,
                    UserData = "dGVzdA==",
                    KeyIds = new[]
                    {
                        "skey-11112222",
                    },
                    CamRoleName = "CVM_QcsRole",
                },
            },
            Labels = 
            {
                { "test1", "test1" },
                { "test2", "test2" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetVpcSubnetsArgs;
    import com.pulumi.tencentcloud.SecurityGroup;
    import com.pulumi.tencentcloud.inputs.GetImagesArgs;
    import com.pulumi.tencentcloud.SecurityGroupLiteRule;
    import com.pulumi.tencentcloud.SecurityGroupLiteRuleArgs;
    import com.pulumi.tencentcloud.KubernetesCluster;
    import com.pulumi.tencentcloud.KubernetesClusterArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterWorkerConfigArgs;
    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 defaultInstanceType = config.get("defaultInstanceType").orElse("SA2.2XLARGE16");
            final var availabilityZoneFirst = config.get("availabilityZoneFirst").orElse("ap-guangzhou-3");
            final var availabilityZoneSecond = config.get("availabilityZoneSecond").orElse("ap-guangzhou-4");
            final var exampleClusterCidr = config.get("exampleClusterCidr").orElse("10.31.0.0/16");
            final var vpcOne = TencentcloudFunctions.getVpcSubnets(GetVpcSubnetsArgs.builder()
                .isDefault(true)
                .availabilityZone(availabilityZoneFirst)
                .build());
    
            final var firstVpcId = vpcOne.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].vpcId());
    
            final var firstSubnetId = vpcOne.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].subnetId());
    
            final var vpcTwo = TencentcloudFunctions.getVpcSubnets(GetVpcSubnetsArgs.builder()
                .isDefault(true)
                .availabilityZone(availabilityZoneSecond)
                .build());
    
            final var secondVpcId = vpcTwo.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].vpcId());
    
            final var secondSubnetId = vpcTwo.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].subnetId());
    
            var sg = new SecurityGroup("sg");
    
            final var sgId = sg.securityGroupId();
    
            final var default = TencentcloudFunctions.getImages(GetImagesArgs.builder()
                .imageTypes("PUBLIC_IMAGE")
                .imageNameRegex("Final")
                .build());
    
            final var imageId = default_.imageId();
    
            var sgRule = new SecurityGroupLiteRule("sgRule", SecurityGroupLiteRuleArgs.builder()
                .securityGroupId(sg.securityGroupId())
                .ingresses(            
                    "ACCEPT#10.0.0.0/16#ALL#ALL",
                    "ACCEPT#172.16.0.0/22#ALL#ALL",
                    "DROP#0.0.0.0/0#ALL#ALL")
                .egresses("ACCEPT#172.16.0.0/22#ALL#ALL")
                .build());
    
            var example = new KubernetesCluster("example", KubernetesClusterArgs.builder()
                .vpcId(firstVpcId)
                .clusterCidr(exampleClusterCidr)
                .clusterMaxPodNum(32)
                .clusterName("tf_example_cluster")
                .clusterDesc("example for tke cluster")
                .clusterMaxServiceNum(32)
                .clusterInternet(false)
                .clusterInternetSecurityGroup(sgId)
                .clusterVersion("1.22.5")
                .clusterDeployType("MANAGED_CLUSTER")
                .workerConfigs(            
                    KubernetesClusterWorkerConfigArgs.builder()
                        .count(1)
                        .availabilityZone(availabilityZoneFirst)
                        .instanceType(defaultInstanceType)
                        .systemDiskType("CLOUD_SSD")
                        .systemDiskSize(60)
                        .internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
                        .internetMaxBandwidthOut(100)
                        .publicIpAssigned(true)
                        .subnetId(firstSubnetId)
                        .dataDisks(KubernetesClusterWorkerConfigDataDiskArgs.builder()
                            .diskType("CLOUD_PREMIUM")
                            .diskSize(50)
                            .build())
                        .enhancedSecurityService(false)
                        .enhancedMonitorService(false)
                        .userData("dGVzdA==")
                        .password("ZZXXccvv1212")
                        .build(),
                    KubernetesClusterWorkerConfigArgs.builder()
                        .count(1)
                        .availabilityZone(availabilityZoneSecond)
                        .instanceType(defaultInstanceType)
                        .systemDiskType("CLOUD_SSD")
                        .systemDiskSize(60)
                        .internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
                        .internetMaxBandwidthOut(100)
                        .publicIpAssigned(true)
                        .subnetId(secondSubnetId)
                        .dataDisks(KubernetesClusterWorkerConfigDataDiskArgs.builder()
                            .diskType("CLOUD_PREMIUM")
                            .diskSize(50)
                            .build())
                        .enhancedSecurityService(false)
                        .enhancedMonitorService(false)
                        .userData("dGVzdA==")
                        .keyIds("skey-11112222")
                        .camRoleName("CVM_QcsRole")
                        .build())
                .labels(Map.ofEntries(
                    Map.entry("test1", "test1"),
                    Map.entry("test2", "test2")
                ))
                .build());
    
        }
    }
    
    configuration:
      defaultInstanceType:
        type: string
        default: SA2.2XLARGE16
      availabilityZoneFirst:
        type: string
        default: ap-guangzhou-3
      availabilityZoneSecond:
        type: string
        default: ap-guangzhou-4
      exampleClusterCidr:
        type: string
        default: 10.31.0.0/16
    resources:
      sg:
        type: tencentcloud:SecurityGroup
      sgRule:
        type: tencentcloud:SecurityGroupLiteRule
        properties:
          securityGroupId: ${sg.securityGroupId}
          ingresses:
            - ACCEPT#10.0.0.0/16#ALL#ALL
            - ACCEPT#172.16.0.0/22#ALL#ALL
            - DROP#0.0.0.0/0#ALL#ALL
          egresses:
            - ACCEPT#172.16.0.0/22#ALL#ALL
      example:
        type: tencentcloud:KubernetesCluster
        properties:
          vpcId: ${firstVpcId}
          clusterCidr: ${exampleClusterCidr}
          clusterMaxPodNum: 32
          clusterName: tf_example_cluster
          clusterDesc: example for tke cluster
          clusterMaxServiceNum: 32
          clusterInternet: false
          clusterInternetSecurityGroup: ${sgId}
          clusterVersion: 1.22.5
          clusterDeployType: MANAGED_CLUSTER
          workerConfigs:
            - count: 1
              availabilityZone: ${availabilityZoneFirst}
              instanceType: ${defaultInstanceType}
              systemDiskType: CLOUD_SSD
              systemDiskSize: 60
              internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
              internetMaxBandwidthOut: 100
              publicIpAssigned: true
              subnetId: ${firstSubnetId}
              dataDisks:
                - diskType: CLOUD_PREMIUM
                  diskSize: 50
              enhancedSecurityService: false
              enhancedMonitorService: false
              userData: dGVzdA==
              password: ZZXXccvv1212
            - count: 1
              availabilityZone: ${availabilityZoneSecond}
              instanceType: ${defaultInstanceType}
              systemDiskType: CLOUD_SSD
              systemDiskSize: 60
              internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
              internetMaxBandwidthOut: 100
              publicIpAssigned: true
              subnetId: ${secondSubnetId}
              dataDisks:
                - diskType: CLOUD_PREMIUM
                  diskSize: 50
              enhancedSecurityService: false
              enhancedMonitorService: false
              userData: dGVzdA==
              keyIds:
                - skey-11112222
              camRoleName: CVM_QcsRole
          labels:
            test1: test1
            test2: test2
    variables:
      firstVpcId: ${vpcOne.instanceLists[0].vpcId}
      firstSubnetId: ${vpcOne.instanceLists[0].subnetId}
      secondVpcId: ${vpcTwo.instanceLists[0].vpcId}
      secondSubnetId: ${vpcTwo.instanceLists[0].subnetId}
      sgId: ${sg.securityGroupId}
      imageId: ${default.imageId}
      vpcOne:
        fn::invoke:
          function: tencentcloud:getVpcSubnets
          arguments:
            isDefault: true
            availabilityZone: ${availabilityZoneFirst}
      vpcTwo:
        fn::invoke:
          function: tencentcloud:getVpcSubnets
          arguments:
            isDefault: true
            availabilityZone: ${availabilityZoneSecond}
      default:
        fn::invoke:
          function: tencentcloud:getImages
          arguments:
            imageTypes:
              - PUBLIC_IMAGE
            imageNameRegex: Final
    

    Create an empty cluster with a node pool

    The cluster does not have any nodes, nodes will be added through node pool.

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const defaultInstanceType = config.get("defaultInstanceType") || "SA2.2XLARGE16";
    const availabilityZoneFirst = config.get("availabilityZoneFirst") || "ap-guangzhou-3";
    const availabilityZoneSecond = config.get("availabilityZoneSecond") || "ap-guangzhou-4";
    const exampleClusterCidr = config.get("exampleClusterCidr") || "10.31.0.0/16";
    const vpcOne = tencentcloud.getVpcSubnets({
        isDefault: true,
        availabilityZone: availabilityZoneFirst,
    });
    const firstVpcId = vpcOne.then(vpcOne => vpcOne.instanceLists?.[0]?.vpcId);
    const firstSubnetId = vpcOne.then(vpcOne => vpcOne.instanceLists?.[0]?.subnetId);
    const sg = new tencentcloud.SecurityGroup("sg", {});
    const sgId = sg.securityGroupId;
    const vpcTwo = tencentcloud.getVpcSubnets({
        isDefault: true,
        availabilityZone: availabilityZoneSecond,
    });
    const sgRule = new tencentcloud.SecurityGroupLiteRule("sgRule", {
        securityGroupId: sg.securityGroupId,
        ingresses: [
            "ACCEPT#10.0.0.0/16#ALL#ALL",
            "ACCEPT#172.16.0.0/22#ALL#ALL",
            "DROP#0.0.0.0/0#ALL#ALL",
        ],
        egresses: ["ACCEPT#172.16.0.0/22#ALL#ALL"],
    });
    const exampleKubernetesCluster = new tencentcloud.KubernetesCluster("exampleKubernetesCluster", {
        vpcId: firstVpcId,
        clusterCidr: exampleClusterCidr,
        clusterMaxPodNum: 32,
        clusterName: "tf_example_cluster_np",
        clusterDesc: "example for tke cluster",
        clusterMaxServiceNum: 32,
        clusterVersion: "1.22.5",
        clusterDeployType: "MANAGED_CLUSTER",
    });
    // without any worker config
    const exampleKubernetesNodePool = new tencentcloud.KubernetesNodePool("exampleKubernetesNodePool", {
        clusterId: exampleKubernetesCluster.kubernetesClusterId,
        maxSize: 6,
        minSize: 1,
        vpcId: firstVpcId,
        subnetIds: [firstSubnetId],
        retryPolicy: "INCREMENTAL_INTERVALS",
        desiredCapacity: 4,
        enableAutoScale: true,
        multiZoneSubnetPolicy: "EQUALITY",
        autoScalingConfig: {
            instanceType: defaultInstanceType,
            systemDiskType: "CLOUD_PREMIUM",
            systemDiskSize: 50,
            orderlySecurityGroupIds: [sgId],
            dataDisks: [{
                diskType: "CLOUD_PREMIUM",
                diskSize: 50,
            }],
            internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
            internetMaxBandwidthOut: 10,
            publicIpAssigned: true,
            password: "test123#",
            enhancedSecurityService: false,
            enhancedMonitorService: false,
            hostName: "12.123.0.0",
            hostNameStyle: "ORIGINAL",
        },
        labels: {
            test1: "test1",
            test2: "test2",
        },
        taints: [
            {
                key: "test_taint",
                value: "taint_value",
                effect: "PreferNoSchedule",
            },
            {
                key: "test_taint2",
                value: "taint_value2",
                effect: "PreferNoSchedule",
            },
        ],
        nodeConfig: {
            extraArgs: ["root-dir=/var/lib/kubelet"],
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    default_instance_type = config.get("defaultInstanceType")
    if default_instance_type is None:
        default_instance_type = "SA2.2XLARGE16"
    availability_zone_first = config.get("availabilityZoneFirst")
    if availability_zone_first is None:
        availability_zone_first = "ap-guangzhou-3"
    availability_zone_second = config.get("availabilityZoneSecond")
    if availability_zone_second is None:
        availability_zone_second = "ap-guangzhou-4"
    example_cluster_cidr = config.get("exampleClusterCidr")
    if example_cluster_cidr is None:
        example_cluster_cidr = "10.31.0.0/16"
    vpc_one = tencentcloud.get_vpc_subnets(is_default=True,
        availability_zone=availability_zone_first)
    first_vpc_id = vpc_one.instance_lists[0].vpc_id
    first_subnet_id = vpc_one.instance_lists[0].subnet_id
    sg = tencentcloud.SecurityGroup("sg")
    sg_id = sg.security_group_id
    vpc_two = tencentcloud.get_vpc_subnets(is_default=True,
        availability_zone=availability_zone_second)
    sg_rule = tencentcloud.SecurityGroupLiteRule("sgRule",
        security_group_id=sg.security_group_id,
        ingresses=[
            "ACCEPT#10.0.0.0/16#ALL#ALL",
            "ACCEPT#172.16.0.0/22#ALL#ALL",
            "DROP#0.0.0.0/0#ALL#ALL",
        ],
        egresses=["ACCEPT#172.16.0.0/22#ALL#ALL"])
    example_kubernetes_cluster = tencentcloud.KubernetesCluster("exampleKubernetesCluster",
        vpc_id=first_vpc_id,
        cluster_cidr=example_cluster_cidr,
        cluster_max_pod_num=32,
        cluster_name="tf_example_cluster_np",
        cluster_desc="example for tke cluster",
        cluster_max_service_num=32,
        cluster_version="1.22.5",
        cluster_deploy_type="MANAGED_CLUSTER")
    # without any worker config
    example_kubernetes_node_pool = tencentcloud.KubernetesNodePool("exampleKubernetesNodePool",
        cluster_id=example_kubernetes_cluster.kubernetes_cluster_id,
        max_size=6,
        min_size=1,
        vpc_id=first_vpc_id,
        subnet_ids=[first_subnet_id],
        retry_policy="INCREMENTAL_INTERVALS",
        desired_capacity=4,
        enable_auto_scale=True,
        multi_zone_subnet_policy="EQUALITY",
        auto_scaling_config={
            "instance_type": default_instance_type,
            "system_disk_type": "CLOUD_PREMIUM",
            "system_disk_size": 50,
            "orderly_security_group_ids": [sg_id],
            "data_disks": [{
                "disk_type": "CLOUD_PREMIUM",
                "disk_size": 50,
            }],
            "internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
            "internet_max_bandwidth_out": 10,
            "public_ip_assigned": True,
            "password": "test123#",
            "enhanced_security_service": False,
            "enhanced_monitor_service": False,
            "host_name": "12.123.0.0",
            "host_name_style": "ORIGINAL",
        },
        labels={
            "test1": "test1",
            "test2": "test2",
        },
        taints=[
            {
                "key": "test_taint",
                "value": "taint_value",
                "effect": "PreferNoSchedule",
            },
            {
                "key": "test_taint2",
                "value": "taint_value2",
                "effect": "PreferNoSchedule",
            },
        ],
        node_config={
            "extra_args": ["root-dir=/var/lib/kubelet"],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"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, "")
    		defaultInstanceType := "SA2.2XLARGE16"
    		if param := cfg.Get("defaultInstanceType"); param != "" {
    			defaultInstanceType = param
    		}
    		availabilityZoneFirst := "ap-guangzhou-3"
    		if param := cfg.Get("availabilityZoneFirst"); param != "" {
    			availabilityZoneFirst = param
    		}
    		availabilityZoneSecond := "ap-guangzhou-4"
    		if param := cfg.Get("availabilityZoneSecond"); param != "" {
    			availabilityZoneSecond = param
    		}
    		exampleClusterCidr := "10.31.0.0/16"
    		if param := cfg.Get("exampleClusterCidr"); param != "" {
    			exampleClusterCidr = param
    		}
    		vpcOne, err := tencentcloud.GetVpcSubnets(ctx, &tencentcloud.GetVpcSubnetsArgs{
    			IsDefault:        pulumi.BoolRef(true),
    			AvailabilityZone: pulumi.StringRef(availabilityZoneFirst),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		firstVpcId := vpcOne.InstanceLists[0].VpcId
    		firstSubnetId := vpcOne.InstanceLists[0].SubnetId
    		sg, err := tencentcloud.NewSecurityGroup(ctx, "sg", nil)
    		if err != nil {
    			return err
    		}
    		sgId := sg.SecurityGroupId
    		_, err = tencentcloud.GetVpcSubnets(ctx, &tencentcloud.GetVpcSubnetsArgs{
    			IsDefault:        pulumi.BoolRef(true),
    			AvailabilityZone: pulumi.StringRef(availabilityZoneSecond),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewSecurityGroupLiteRule(ctx, "sgRule", &tencentcloud.SecurityGroupLiteRuleArgs{
    			SecurityGroupId: sg.SecurityGroupId,
    			Ingresses: pulumi.StringArray{
    				pulumi.String("ACCEPT#10.0.0.0/16#ALL#ALL"),
    				pulumi.String("ACCEPT#172.16.0.0/22#ALL#ALL"),
    				pulumi.String("DROP#0.0.0.0/0#ALL#ALL"),
    			},
    			Egresses: pulumi.StringArray{
    				pulumi.String("ACCEPT#172.16.0.0/22#ALL#ALL"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleKubernetesCluster, err := tencentcloud.NewKubernetesCluster(ctx, "exampleKubernetesCluster", &tencentcloud.KubernetesClusterArgs{
    			VpcId:                pulumi.String(firstVpcId),
    			ClusterCidr:          pulumi.String(exampleClusterCidr),
    			ClusterMaxPodNum:     pulumi.Float64(32),
    			ClusterName:          pulumi.String("tf_example_cluster_np"),
    			ClusterDesc:          pulumi.String("example for tke cluster"),
    			ClusterMaxServiceNum: pulumi.Float64(32),
    			ClusterVersion:       pulumi.String("1.22.5"),
    			ClusterDeployType:    pulumi.String("MANAGED_CLUSTER"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewKubernetesNodePool(ctx, "exampleKubernetesNodePool", &tencentcloud.KubernetesNodePoolArgs{
    			ClusterId: exampleKubernetesCluster.KubernetesClusterId,
    			MaxSize:   pulumi.Float64(6),
    			MinSize:   pulumi.Float64(1),
    			VpcId:     pulumi.String(firstVpcId),
    			SubnetIds: pulumi.StringArray{
    				pulumi.String(firstSubnetId),
    			},
    			RetryPolicy:           pulumi.String("INCREMENTAL_INTERVALS"),
    			DesiredCapacity:       pulumi.Float64(4),
    			EnableAutoScale:       pulumi.Bool(true),
    			MultiZoneSubnetPolicy: pulumi.String("EQUALITY"),
    			AutoScalingConfig: &tencentcloud.KubernetesNodePoolAutoScalingConfigArgs{
    				InstanceType:   pulumi.String(defaultInstanceType),
    				SystemDiskType: pulumi.String("CLOUD_PREMIUM"),
    				SystemDiskSize: pulumi.Float64(50),
    				OrderlySecurityGroupIds: pulumi.StringArray{
    					pulumi.String(sgId),
    				},
    				DataDisks: tencentcloud.KubernetesNodePoolAutoScalingConfigDataDiskArray{
    					&tencentcloud.KubernetesNodePoolAutoScalingConfigDataDiskArgs{
    						DiskType: pulumi.String("CLOUD_PREMIUM"),
    						DiskSize: pulumi.Float64(50),
    					},
    				},
    				InternetChargeType:      pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
    				InternetMaxBandwidthOut: pulumi.Float64(10),
    				PublicIpAssigned:        pulumi.Bool(true),
    				Password:                pulumi.String("test123#"),
    				EnhancedSecurityService: pulumi.Bool(false),
    				EnhancedMonitorService:  pulumi.Bool(false),
    				HostName:                pulumi.String("12.123.0.0"),
    				HostNameStyle:           pulumi.String("ORIGINAL"),
    			},
    			Labels: pulumi.StringMap{
    				"test1": pulumi.String("test1"),
    				"test2": pulumi.String("test2"),
    			},
    			Taints: tencentcloud.KubernetesNodePoolTaintArray{
    				&tencentcloud.KubernetesNodePoolTaintArgs{
    					Key:    pulumi.String("test_taint"),
    					Value:  pulumi.String("taint_value"),
    					Effect: pulumi.String("PreferNoSchedule"),
    				},
    				&tencentcloud.KubernetesNodePoolTaintArgs{
    					Key:    pulumi.String("test_taint2"),
    					Value:  pulumi.String("taint_value2"),
    					Effect: pulumi.String("PreferNoSchedule"),
    				},
    			},
    			NodeConfig: &tencentcloud.KubernetesNodePoolNodeConfigArgs{
    				ExtraArgs: pulumi.StringArray{
    					pulumi.String("root-dir=/var/lib/kubelet"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var defaultInstanceType = config.Get("defaultInstanceType") ?? "SA2.2XLARGE16";
        var availabilityZoneFirst = config.Get("availabilityZoneFirst") ?? "ap-guangzhou-3";
        var availabilityZoneSecond = config.Get("availabilityZoneSecond") ?? "ap-guangzhou-4";
        var exampleClusterCidr = config.Get("exampleClusterCidr") ?? "10.31.0.0/16";
        var vpcOne = Tencentcloud.GetVpcSubnets.Invoke(new()
        {
            IsDefault = true,
            AvailabilityZone = availabilityZoneFirst,
        });
    
        var firstVpcId = vpcOne.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.VpcId);
    
        var firstSubnetId = vpcOne.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.SubnetId);
    
        var sg = new Tencentcloud.SecurityGroup("sg");
    
        var sgId = sg.SecurityGroupId;
    
        var vpcTwo = Tencentcloud.GetVpcSubnets.Invoke(new()
        {
            IsDefault = true,
            AvailabilityZone = availabilityZoneSecond,
        });
    
        var sgRule = new Tencentcloud.SecurityGroupLiteRule("sgRule", new()
        {
            SecurityGroupId = sg.SecurityGroupId,
            Ingresses = new[]
            {
                "ACCEPT#10.0.0.0/16#ALL#ALL",
                "ACCEPT#172.16.0.0/22#ALL#ALL",
                "DROP#0.0.0.0/0#ALL#ALL",
            },
            Egresses = new[]
            {
                "ACCEPT#172.16.0.0/22#ALL#ALL",
            },
        });
    
        var exampleKubernetesCluster = new Tencentcloud.KubernetesCluster("exampleKubernetesCluster", new()
        {
            VpcId = firstVpcId,
            ClusterCidr = exampleClusterCidr,
            ClusterMaxPodNum = 32,
            ClusterName = "tf_example_cluster_np",
            ClusterDesc = "example for tke cluster",
            ClusterMaxServiceNum = 32,
            ClusterVersion = "1.22.5",
            ClusterDeployType = "MANAGED_CLUSTER",
        });
    
        // without any worker config
        var exampleKubernetesNodePool = new Tencentcloud.KubernetesNodePool("exampleKubernetesNodePool", new()
        {
            ClusterId = exampleKubernetesCluster.KubernetesClusterId,
            MaxSize = 6,
            MinSize = 1,
            VpcId = firstVpcId,
            SubnetIds = new[]
            {
                firstSubnetId,
            },
            RetryPolicy = "INCREMENTAL_INTERVALS",
            DesiredCapacity = 4,
            EnableAutoScale = true,
            MultiZoneSubnetPolicy = "EQUALITY",
            AutoScalingConfig = new Tencentcloud.Inputs.KubernetesNodePoolAutoScalingConfigArgs
            {
                InstanceType = defaultInstanceType,
                SystemDiskType = "CLOUD_PREMIUM",
                SystemDiskSize = 50,
                OrderlySecurityGroupIds = new[]
                {
                    sgId,
                },
                DataDisks = new[]
                {
                    new Tencentcloud.Inputs.KubernetesNodePoolAutoScalingConfigDataDiskArgs
                    {
                        DiskType = "CLOUD_PREMIUM",
                        DiskSize = 50,
                    },
                },
                InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
                InternetMaxBandwidthOut = 10,
                PublicIpAssigned = true,
                Password = "test123#",
                EnhancedSecurityService = false,
                EnhancedMonitorService = false,
                HostName = "12.123.0.0",
                HostNameStyle = "ORIGINAL",
            },
            Labels = 
            {
                { "test1", "test1" },
                { "test2", "test2" },
            },
            Taints = new[]
            {
                new Tencentcloud.Inputs.KubernetesNodePoolTaintArgs
                {
                    Key = "test_taint",
                    Value = "taint_value",
                    Effect = "PreferNoSchedule",
                },
                new Tencentcloud.Inputs.KubernetesNodePoolTaintArgs
                {
                    Key = "test_taint2",
                    Value = "taint_value2",
                    Effect = "PreferNoSchedule",
                },
            },
            NodeConfig = new Tencentcloud.Inputs.KubernetesNodePoolNodeConfigArgs
            {
                ExtraArgs = new[]
                {
                    "root-dir=/var/lib/kubelet",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetVpcSubnetsArgs;
    import com.pulumi.tencentcloud.SecurityGroup;
    import com.pulumi.tencentcloud.SecurityGroupLiteRule;
    import com.pulumi.tencentcloud.SecurityGroupLiteRuleArgs;
    import com.pulumi.tencentcloud.KubernetesCluster;
    import com.pulumi.tencentcloud.KubernetesClusterArgs;
    import com.pulumi.tencentcloud.KubernetesNodePool;
    import com.pulumi.tencentcloud.KubernetesNodePoolArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesNodePoolAutoScalingConfigArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesNodePoolTaintArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesNodePoolNodeConfigArgs;
    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 defaultInstanceType = config.get("defaultInstanceType").orElse("SA2.2XLARGE16");
            final var availabilityZoneFirst = config.get("availabilityZoneFirst").orElse("ap-guangzhou-3");
            final var availabilityZoneSecond = config.get("availabilityZoneSecond").orElse("ap-guangzhou-4");
            final var exampleClusterCidr = config.get("exampleClusterCidr").orElse("10.31.0.0/16");
            final var vpcOne = TencentcloudFunctions.getVpcSubnets(GetVpcSubnetsArgs.builder()
                .isDefault(true)
                .availabilityZone(availabilityZoneFirst)
                .build());
    
            final var firstVpcId = vpcOne.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].vpcId());
    
            final var firstSubnetId = vpcOne.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].subnetId());
    
            var sg = new SecurityGroup("sg");
    
            final var sgId = sg.securityGroupId();
    
            final var vpcTwo = TencentcloudFunctions.getVpcSubnets(GetVpcSubnetsArgs.builder()
                .isDefault(true)
                .availabilityZone(availabilityZoneSecond)
                .build());
    
            var sgRule = new SecurityGroupLiteRule("sgRule", SecurityGroupLiteRuleArgs.builder()
                .securityGroupId(sg.securityGroupId())
                .ingresses(            
                    "ACCEPT#10.0.0.0/16#ALL#ALL",
                    "ACCEPT#172.16.0.0/22#ALL#ALL",
                    "DROP#0.0.0.0/0#ALL#ALL")
                .egresses("ACCEPT#172.16.0.0/22#ALL#ALL")
                .build());
    
            var exampleKubernetesCluster = new KubernetesCluster("exampleKubernetesCluster", KubernetesClusterArgs.builder()
                .vpcId(firstVpcId)
                .clusterCidr(exampleClusterCidr)
                .clusterMaxPodNum(32)
                .clusterName("tf_example_cluster_np")
                .clusterDesc("example for tke cluster")
                .clusterMaxServiceNum(32)
                .clusterVersion("1.22.5")
                .clusterDeployType("MANAGED_CLUSTER")
                .build());
    
            // without any worker config
            var exampleKubernetesNodePool = new KubernetesNodePool("exampleKubernetesNodePool", KubernetesNodePoolArgs.builder()
                .clusterId(exampleKubernetesCluster.kubernetesClusterId())
                .maxSize(6)
                .minSize(1)
                .vpcId(firstVpcId)
                .subnetIds(firstSubnetId)
                .retryPolicy("INCREMENTAL_INTERVALS")
                .desiredCapacity(4)
                .enableAutoScale(true)
                .multiZoneSubnetPolicy("EQUALITY")
                .autoScalingConfig(KubernetesNodePoolAutoScalingConfigArgs.builder()
                    .instanceType(defaultInstanceType)
                    .systemDiskType("CLOUD_PREMIUM")
                    .systemDiskSize("50")
                    .orderlySecurityGroupIds(sgId)
                    .dataDisks(KubernetesNodePoolAutoScalingConfigDataDiskArgs.builder()
                        .diskType("CLOUD_PREMIUM")
                        .diskSize(50)
                        .build())
                    .internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
                    .internetMaxBandwidthOut(10)
                    .publicIpAssigned(true)
                    .password("test123#")
                    .enhancedSecurityService(false)
                    .enhancedMonitorService(false)
                    .hostName("12.123.0.0")
                    .hostNameStyle("ORIGINAL")
                    .build())
                .labels(Map.ofEntries(
                    Map.entry("test1", "test1"),
                    Map.entry("test2", "test2")
                ))
                .taints(            
                    KubernetesNodePoolTaintArgs.builder()
                        .key("test_taint")
                        .value("taint_value")
                        .effect("PreferNoSchedule")
                        .build(),
                    KubernetesNodePoolTaintArgs.builder()
                        .key("test_taint2")
                        .value("taint_value2")
                        .effect("PreferNoSchedule")
                        .build())
                .nodeConfig(KubernetesNodePoolNodeConfigArgs.builder()
                    .extraArgs("root-dir=/var/lib/kubelet")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      defaultInstanceType:
        type: string
        default: SA2.2XLARGE16
      availabilityZoneFirst:
        type: string
        default: ap-guangzhou-3
      availabilityZoneSecond:
        type: string
        default: ap-guangzhou-4
      exampleClusterCidr:
        type: string
        default: 10.31.0.0/16
    resources:
      sg:
        type: tencentcloud:SecurityGroup
      sgRule:
        type: tencentcloud:SecurityGroupLiteRule
        properties:
          securityGroupId: ${sg.securityGroupId}
          ingresses:
            - ACCEPT#10.0.0.0/16#ALL#ALL
            - ACCEPT#172.16.0.0/22#ALL#ALL
            - DROP#0.0.0.0/0#ALL#ALL
          egresses:
            - ACCEPT#172.16.0.0/22#ALL#ALL
      exampleKubernetesCluster:
        type: tencentcloud:KubernetesCluster
        properties:
          vpcId: ${firstVpcId}
          clusterCidr: ${exampleClusterCidr}
          clusterMaxPodNum: 32
          clusterName: tf_example_cluster_np
          clusterDesc: example for tke cluster
          clusterMaxServiceNum: 32
          clusterVersion: 1.22.5
          clusterDeployType: MANAGED_CLUSTER
      exampleKubernetesNodePool:
        type: tencentcloud:KubernetesNodePool
        properties:
          clusterId: ${exampleKubernetesCluster.kubernetesClusterId}
          maxSize: 6
          # set the node scaling range [1,6]
          minSize: 1
          vpcId: ${firstVpcId}
          subnetIds:
            - ${firstSubnetId}
          retryPolicy: INCREMENTAL_INTERVALS
          desiredCapacity: 4
          enableAutoScale: true
          multiZoneSubnetPolicy: EQUALITY
          autoScalingConfig:
            instanceType: ${defaultInstanceType}
            systemDiskType: CLOUD_PREMIUM
            systemDiskSize: '50'
            orderlySecurityGroupIds:
              - ${sgId}
            dataDisks:
              - diskType: CLOUD_PREMIUM
                diskSize: 50
            internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
            internetMaxBandwidthOut: 10
            publicIpAssigned: true
            password: test123#
            enhancedSecurityService: false
            enhancedMonitorService: false
            hostName: 12.123.0.0
            hostNameStyle: ORIGINAL
          labels:
            test1: test1
            test2: test2
          taints:
            - key: test_taint
              value: taint_value
              effect: PreferNoSchedule
            - key: test_taint2
              value: taint_value2
              effect: PreferNoSchedule
          nodeConfig:
            extraArgs:
              - root-dir=/var/lib/kubelet
    variables:
      firstVpcId: ${vpcOne.instanceLists[0].vpcId}
      firstSubnetId: ${vpcOne.instanceLists[0].subnetId}
      sgId: ${sg.securityGroupId}
      vpcOne:
        fn::invoke:
          function: tencentcloud:getVpcSubnets
          arguments:
            isDefault: true
            availabilityZone: ${availabilityZoneFirst}
      vpcTwo:
        fn::invoke:
          function: tencentcloud:getVpcSubnets
          arguments:
            isDefault: true
            availabilityZone: ${availabilityZoneSecond}
    

    Create a cluster with a node pool and open the network access with cluster endpoint

    The cluster’s internet and intranet access will be opened after nodes are added through node pool.

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const defaultInstanceType = config.get("defaultInstanceType") || "SA2.2XLARGE16";
    const availabilityZoneFirst = config.get("availabilityZoneFirst") || "ap-guangzhou-3";
    const availabilityZoneSecond = config.get("availabilityZoneSecond") || "ap-guangzhou-4";
    const exampleClusterCidr = config.get("exampleClusterCidr") || "10.31.0.0/16";
    const vpcOne = tencentcloud.getVpcSubnets({
        isDefault: true,
        availabilityZone: availabilityZoneFirst,
    });
    const firstVpcId = vpcOne.then(vpcOne => vpcOne.instanceLists?.[0]?.vpcId);
    const firstSubnetId = vpcOne.then(vpcOne => vpcOne.instanceLists?.[0]?.subnetId);
    const sg = new tencentcloud.SecurityGroup("sg", {});
    const sgId = sg.securityGroupId;
    const vpcTwo = tencentcloud.getVpcSubnets({
        isDefault: true,
        availabilityZone: availabilityZoneSecond,
    });
    const sgRule = new tencentcloud.SecurityGroupLiteRule("sgRule", {
        securityGroupId: sg.securityGroupId,
        ingresses: [
            "ACCEPT#10.0.0.0/16#ALL#ALL",
            "ACCEPT#172.16.0.0/22#ALL#ALL",
            "DROP#0.0.0.0/0#ALL#ALL",
        ],
        egresses: ["ACCEPT#172.16.0.0/22#ALL#ALL"],
    });
    const exampleKubernetesCluster = new tencentcloud.KubernetesCluster("exampleKubernetesCluster", {
        vpcId: firstVpcId,
        clusterCidr: exampleClusterCidr,
        clusterMaxPodNum: 32,
        clusterName: "tf_example_cluster",
        clusterDesc: "example for tke cluster",
        clusterMaxServiceNum: 32,
        clusterInternet: false,
        clusterVersion: "1.22.5",
        clusterDeployType: "MANAGED_CLUSTER",
    });
    // without any worker config
    const exampleKubernetesNodePool = new tencentcloud.KubernetesNodePool("exampleKubernetesNodePool", {
        clusterId: exampleKubernetesCluster.kubernetesClusterId,
        maxSize: 6,
        minSize: 1,
        vpcId: firstVpcId,
        subnetIds: [firstSubnetId],
        retryPolicy: "INCREMENTAL_INTERVALS",
        desiredCapacity: 4,
        enableAutoScale: true,
        multiZoneSubnetPolicy: "EQUALITY",
        autoScalingConfig: {
            instanceType: defaultInstanceType,
            systemDiskType: "CLOUD_PREMIUM",
            systemDiskSize: 50,
            orderlySecurityGroupIds: [sgId],
            dataDisks: [{
                diskType: "CLOUD_PREMIUM",
                diskSize: 50,
            }],
            internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
            internetMaxBandwidthOut: 10,
            publicIpAssigned: true,
            password: "test123#",
            enhancedSecurityService: false,
            enhancedMonitorService: false,
            hostName: "12.123.0.0",
            hostNameStyle: "ORIGINAL",
        },
        labels: {
            test1: "test1",
            test2: "test2",
        },
        taints: [
            {
                key: "test_taint",
                value: "taint_value",
                effect: "PreferNoSchedule",
            },
            {
                key: "test_taint2",
                value: "taint_value2",
                effect: "PreferNoSchedule",
            },
        ],
        nodeConfig: {
            extraArgs: ["root-dir=/var/lib/kubelet"],
        },
    });
    const exampleKubernetesClusterEndpoint = new tencentcloud.KubernetesClusterEndpoint("exampleKubernetesClusterEndpoint", {
        clusterId: exampleKubernetesCluster.kubernetesClusterId,
        clusterInternet: true,
        clusterIntranet: true,
        clusterInternetSecurityGroup: sgId,
        clusterIntranetSubnetId: firstSubnetId,
    }, {
        dependsOn: [exampleKubernetesNodePool],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    default_instance_type = config.get("defaultInstanceType")
    if default_instance_type is None:
        default_instance_type = "SA2.2XLARGE16"
    availability_zone_first = config.get("availabilityZoneFirst")
    if availability_zone_first is None:
        availability_zone_first = "ap-guangzhou-3"
    availability_zone_second = config.get("availabilityZoneSecond")
    if availability_zone_second is None:
        availability_zone_second = "ap-guangzhou-4"
    example_cluster_cidr = config.get("exampleClusterCidr")
    if example_cluster_cidr is None:
        example_cluster_cidr = "10.31.0.0/16"
    vpc_one = tencentcloud.get_vpc_subnets(is_default=True,
        availability_zone=availability_zone_first)
    first_vpc_id = vpc_one.instance_lists[0].vpc_id
    first_subnet_id = vpc_one.instance_lists[0].subnet_id
    sg = tencentcloud.SecurityGroup("sg")
    sg_id = sg.security_group_id
    vpc_two = tencentcloud.get_vpc_subnets(is_default=True,
        availability_zone=availability_zone_second)
    sg_rule = tencentcloud.SecurityGroupLiteRule("sgRule",
        security_group_id=sg.security_group_id,
        ingresses=[
            "ACCEPT#10.0.0.0/16#ALL#ALL",
            "ACCEPT#172.16.0.0/22#ALL#ALL",
            "DROP#0.0.0.0/0#ALL#ALL",
        ],
        egresses=["ACCEPT#172.16.0.0/22#ALL#ALL"])
    example_kubernetes_cluster = tencentcloud.KubernetesCluster("exampleKubernetesCluster",
        vpc_id=first_vpc_id,
        cluster_cidr=example_cluster_cidr,
        cluster_max_pod_num=32,
        cluster_name="tf_example_cluster",
        cluster_desc="example for tke cluster",
        cluster_max_service_num=32,
        cluster_internet=False,
        cluster_version="1.22.5",
        cluster_deploy_type="MANAGED_CLUSTER")
    # without any worker config
    example_kubernetes_node_pool = tencentcloud.KubernetesNodePool("exampleKubernetesNodePool",
        cluster_id=example_kubernetes_cluster.kubernetes_cluster_id,
        max_size=6,
        min_size=1,
        vpc_id=first_vpc_id,
        subnet_ids=[first_subnet_id],
        retry_policy="INCREMENTAL_INTERVALS",
        desired_capacity=4,
        enable_auto_scale=True,
        multi_zone_subnet_policy="EQUALITY",
        auto_scaling_config={
            "instance_type": default_instance_type,
            "system_disk_type": "CLOUD_PREMIUM",
            "system_disk_size": 50,
            "orderly_security_group_ids": [sg_id],
            "data_disks": [{
                "disk_type": "CLOUD_PREMIUM",
                "disk_size": 50,
            }],
            "internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
            "internet_max_bandwidth_out": 10,
            "public_ip_assigned": True,
            "password": "test123#",
            "enhanced_security_service": False,
            "enhanced_monitor_service": False,
            "host_name": "12.123.0.0",
            "host_name_style": "ORIGINAL",
        },
        labels={
            "test1": "test1",
            "test2": "test2",
        },
        taints=[
            {
                "key": "test_taint",
                "value": "taint_value",
                "effect": "PreferNoSchedule",
            },
            {
                "key": "test_taint2",
                "value": "taint_value2",
                "effect": "PreferNoSchedule",
            },
        ],
        node_config={
            "extra_args": ["root-dir=/var/lib/kubelet"],
        })
    example_kubernetes_cluster_endpoint = tencentcloud.KubernetesClusterEndpoint("exampleKubernetesClusterEndpoint",
        cluster_id=example_kubernetes_cluster.kubernetes_cluster_id,
        cluster_internet=True,
        cluster_intranet=True,
        cluster_internet_security_group=sg_id,
        cluster_intranet_subnet_id=first_subnet_id,
        opts = pulumi.ResourceOptions(depends_on=[example_kubernetes_node_pool]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"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, "")
    		defaultInstanceType := "SA2.2XLARGE16"
    		if param := cfg.Get("defaultInstanceType"); param != "" {
    			defaultInstanceType = param
    		}
    		availabilityZoneFirst := "ap-guangzhou-3"
    		if param := cfg.Get("availabilityZoneFirst"); param != "" {
    			availabilityZoneFirst = param
    		}
    		availabilityZoneSecond := "ap-guangzhou-4"
    		if param := cfg.Get("availabilityZoneSecond"); param != "" {
    			availabilityZoneSecond = param
    		}
    		exampleClusterCidr := "10.31.0.0/16"
    		if param := cfg.Get("exampleClusterCidr"); param != "" {
    			exampleClusterCidr = param
    		}
    		vpcOne, err := tencentcloud.GetVpcSubnets(ctx, &tencentcloud.GetVpcSubnetsArgs{
    			IsDefault:        pulumi.BoolRef(true),
    			AvailabilityZone: pulumi.StringRef(availabilityZoneFirst),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		firstVpcId := vpcOne.InstanceLists[0].VpcId
    		firstSubnetId := vpcOne.InstanceLists[0].SubnetId
    		sg, err := tencentcloud.NewSecurityGroup(ctx, "sg", nil)
    		if err != nil {
    			return err
    		}
    		sgId := sg.SecurityGroupId
    		_, err = tencentcloud.GetVpcSubnets(ctx, &tencentcloud.GetVpcSubnetsArgs{
    			IsDefault:        pulumi.BoolRef(true),
    			AvailabilityZone: pulumi.StringRef(availabilityZoneSecond),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewSecurityGroupLiteRule(ctx, "sgRule", &tencentcloud.SecurityGroupLiteRuleArgs{
    			SecurityGroupId: sg.SecurityGroupId,
    			Ingresses: pulumi.StringArray{
    				pulumi.String("ACCEPT#10.0.0.0/16#ALL#ALL"),
    				pulumi.String("ACCEPT#172.16.0.0/22#ALL#ALL"),
    				pulumi.String("DROP#0.0.0.0/0#ALL#ALL"),
    			},
    			Egresses: pulumi.StringArray{
    				pulumi.String("ACCEPT#172.16.0.0/22#ALL#ALL"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleKubernetesCluster, err := tencentcloud.NewKubernetesCluster(ctx, "exampleKubernetesCluster", &tencentcloud.KubernetesClusterArgs{
    			VpcId:                pulumi.String(firstVpcId),
    			ClusterCidr:          pulumi.String(exampleClusterCidr),
    			ClusterMaxPodNum:     pulumi.Float64(32),
    			ClusterName:          pulumi.String("tf_example_cluster"),
    			ClusterDesc:          pulumi.String("example for tke cluster"),
    			ClusterMaxServiceNum: pulumi.Float64(32),
    			ClusterInternet:      pulumi.Bool(false),
    			ClusterVersion:       pulumi.String("1.22.5"),
    			ClusterDeployType:    pulumi.String("MANAGED_CLUSTER"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleKubernetesNodePool, err := tencentcloud.NewKubernetesNodePool(ctx, "exampleKubernetesNodePool", &tencentcloud.KubernetesNodePoolArgs{
    			ClusterId: exampleKubernetesCluster.KubernetesClusterId,
    			MaxSize:   pulumi.Float64(6),
    			MinSize:   pulumi.Float64(1),
    			VpcId:     pulumi.String(firstVpcId),
    			SubnetIds: pulumi.StringArray{
    				pulumi.String(firstSubnetId),
    			},
    			RetryPolicy:           pulumi.String("INCREMENTAL_INTERVALS"),
    			DesiredCapacity:       pulumi.Float64(4),
    			EnableAutoScale:       pulumi.Bool(true),
    			MultiZoneSubnetPolicy: pulumi.String("EQUALITY"),
    			AutoScalingConfig: &tencentcloud.KubernetesNodePoolAutoScalingConfigArgs{
    				InstanceType:   pulumi.String(defaultInstanceType),
    				SystemDiskType: pulumi.String("CLOUD_PREMIUM"),
    				SystemDiskSize: pulumi.Float64(50),
    				OrderlySecurityGroupIds: pulumi.StringArray{
    					pulumi.String(sgId),
    				},
    				DataDisks: tencentcloud.KubernetesNodePoolAutoScalingConfigDataDiskArray{
    					&tencentcloud.KubernetesNodePoolAutoScalingConfigDataDiskArgs{
    						DiskType: pulumi.String("CLOUD_PREMIUM"),
    						DiskSize: pulumi.Float64(50),
    					},
    				},
    				InternetChargeType:      pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
    				InternetMaxBandwidthOut: pulumi.Float64(10),
    				PublicIpAssigned:        pulumi.Bool(true),
    				Password:                pulumi.String("test123#"),
    				EnhancedSecurityService: pulumi.Bool(false),
    				EnhancedMonitorService:  pulumi.Bool(false),
    				HostName:                pulumi.String("12.123.0.0"),
    				HostNameStyle:           pulumi.String("ORIGINAL"),
    			},
    			Labels: pulumi.StringMap{
    				"test1": pulumi.String("test1"),
    				"test2": pulumi.String("test2"),
    			},
    			Taints: tencentcloud.KubernetesNodePoolTaintArray{
    				&tencentcloud.KubernetesNodePoolTaintArgs{
    					Key:    pulumi.String("test_taint"),
    					Value:  pulumi.String("taint_value"),
    					Effect: pulumi.String("PreferNoSchedule"),
    				},
    				&tencentcloud.KubernetesNodePoolTaintArgs{
    					Key:    pulumi.String("test_taint2"),
    					Value:  pulumi.String("taint_value2"),
    					Effect: pulumi.String("PreferNoSchedule"),
    				},
    			},
    			NodeConfig: &tencentcloud.KubernetesNodePoolNodeConfigArgs{
    				ExtraArgs: pulumi.StringArray{
    					pulumi.String("root-dir=/var/lib/kubelet"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewKubernetesClusterEndpoint(ctx, "exampleKubernetesClusterEndpoint", &tencentcloud.KubernetesClusterEndpointArgs{
    			ClusterId:                    exampleKubernetesCluster.KubernetesClusterId,
    			ClusterInternet:              pulumi.Bool(true),
    			ClusterIntranet:              pulumi.Bool(true),
    			ClusterInternetSecurityGroup: pulumi.String(sgId),
    			ClusterIntranetSubnetId:      pulumi.String(firstSubnetId),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleKubernetesNodePool,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var defaultInstanceType = config.Get("defaultInstanceType") ?? "SA2.2XLARGE16";
        var availabilityZoneFirst = config.Get("availabilityZoneFirst") ?? "ap-guangzhou-3";
        var availabilityZoneSecond = config.Get("availabilityZoneSecond") ?? "ap-guangzhou-4";
        var exampleClusterCidr = config.Get("exampleClusterCidr") ?? "10.31.0.0/16";
        var vpcOne = Tencentcloud.GetVpcSubnets.Invoke(new()
        {
            IsDefault = true,
            AvailabilityZone = availabilityZoneFirst,
        });
    
        var firstVpcId = vpcOne.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.VpcId);
    
        var firstSubnetId = vpcOne.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.SubnetId);
    
        var sg = new Tencentcloud.SecurityGroup("sg");
    
        var sgId = sg.SecurityGroupId;
    
        var vpcTwo = Tencentcloud.GetVpcSubnets.Invoke(new()
        {
            IsDefault = true,
            AvailabilityZone = availabilityZoneSecond,
        });
    
        var sgRule = new Tencentcloud.SecurityGroupLiteRule("sgRule", new()
        {
            SecurityGroupId = sg.SecurityGroupId,
            Ingresses = new[]
            {
                "ACCEPT#10.0.0.0/16#ALL#ALL",
                "ACCEPT#172.16.0.0/22#ALL#ALL",
                "DROP#0.0.0.0/0#ALL#ALL",
            },
            Egresses = new[]
            {
                "ACCEPT#172.16.0.0/22#ALL#ALL",
            },
        });
    
        var exampleKubernetesCluster = new Tencentcloud.KubernetesCluster("exampleKubernetesCluster", new()
        {
            VpcId = firstVpcId,
            ClusterCidr = exampleClusterCidr,
            ClusterMaxPodNum = 32,
            ClusterName = "tf_example_cluster",
            ClusterDesc = "example for tke cluster",
            ClusterMaxServiceNum = 32,
            ClusterInternet = false,
            ClusterVersion = "1.22.5",
            ClusterDeployType = "MANAGED_CLUSTER",
        });
    
        // without any worker config
        var exampleKubernetesNodePool = new Tencentcloud.KubernetesNodePool("exampleKubernetesNodePool", new()
        {
            ClusterId = exampleKubernetesCluster.KubernetesClusterId,
            MaxSize = 6,
            MinSize = 1,
            VpcId = firstVpcId,
            SubnetIds = new[]
            {
                firstSubnetId,
            },
            RetryPolicy = "INCREMENTAL_INTERVALS",
            DesiredCapacity = 4,
            EnableAutoScale = true,
            MultiZoneSubnetPolicy = "EQUALITY",
            AutoScalingConfig = new Tencentcloud.Inputs.KubernetesNodePoolAutoScalingConfigArgs
            {
                InstanceType = defaultInstanceType,
                SystemDiskType = "CLOUD_PREMIUM",
                SystemDiskSize = 50,
                OrderlySecurityGroupIds = new[]
                {
                    sgId,
                },
                DataDisks = new[]
                {
                    new Tencentcloud.Inputs.KubernetesNodePoolAutoScalingConfigDataDiskArgs
                    {
                        DiskType = "CLOUD_PREMIUM",
                        DiskSize = 50,
                    },
                },
                InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
                InternetMaxBandwidthOut = 10,
                PublicIpAssigned = true,
                Password = "test123#",
                EnhancedSecurityService = false,
                EnhancedMonitorService = false,
                HostName = "12.123.0.0",
                HostNameStyle = "ORIGINAL",
            },
            Labels = 
            {
                { "test1", "test1" },
                { "test2", "test2" },
            },
            Taints = new[]
            {
                new Tencentcloud.Inputs.KubernetesNodePoolTaintArgs
                {
                    Key = "test_taint",
                    Value = "taint_value",
                    Effect = "PreferNoSchedule",
                },
                new Tencentcloud.Inputs.KubernetesNodePoolTaintArgs
                {
                    Key = "test_taint2",
                    Value = "taint_value2",
                    Effect = "PreferNoSchedule",
                },
            },
            NodeConfig = new Tencentcloud.Inputs.KubernetesNodePoolNodeConfigArgs
            {
                ExtraArgs = new[]
                {
                    "root-dir=/var/lib/kubelet",
                },
            },
        });
    
        var exampleKubernetesClusterEndpoint = new Tencentcloud.KubernetesClusterEndpoint("exampleKubernetesClusterEndpoint", new()
        {
            ClusterId = exampleKubernetesCluster.KubernetesClusterId,
            ClusterInternet = true,
            ClusterIntranet = true,
            ClusterInternetSecurityGroup = sgId,
            ClusterIntranetSubnetId = firstSubnetId,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                exampleKubernetesNodePool,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetVpcSubnetsArgs;
    import com.pulumi.tencentcloud.SecurityGroup;
    import com.pulumi.tencentcloud.SecurityGroupLiteRule;
    import com.pulumi.tencentcloud.SecurityGroupLiteRuleArgs;
    import com.pulumi.tencentcloud.KubernetesCluster;
    import com.pulumi.tencentcloud.KubernetesClusterArgs;
    import com.pulumi.tencentcloud.KubernetesNodePool;
    import com.pulumi.tencentcloud.KubernetesNodePoolArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesNodePoolAutoScalingConfigArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesNodePoolTaintArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesNodePoolNodeConfigArgs;
    import com.pulumi.tencentcloud.KubernetesClusterEndpoint;
    import com.pulumi.tencentcloud.KubernetesClusterEndpointArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 defaultInstanceType = config.get("defaultInstanceType").orElse("SA2.2XLARGE16");
            final var availabilityZoneFirst = config.get("availabilityZoneFirst").orElse("ap-guangzhou-3");
            final var availabilityZoneSecond = config.get("availabilityZoneSecond").orElse("ap-guangzhou-4");
            final var exampleClusterCidr = config.get("exampleClusterCidr").orElse("10.31.0.0/16");
            final var vpcOne = TencentcloudFunctions.getVpcSubnets(GetVpcSubnetsArgs.builder()
                .isDefault(true)
                .availabilityZone(availabilityZoneFirst)
                .build());
    
            final var firstVpcId = vpcOne.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].vpcId());
    
            final var firstSubnetId = vpcOne.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].subnetId());
    
            var sg = new SecurityGroup("sg");
    
            final var sgId = sg.securityGroupId();
    
            final var vpcTwo = TencentcloudFunctions.getVpcSubnets(GetVpcSubnetsArgs.builder()
                .isDefault(true)
                .availabilityZone(availabilityZoneSecond)
                .build());
    
            var sgRule = new SecurityGroupLiteRule("sgRule", SecurityGroupLiteRuleArgs.builder()
                .securityGroupId(sg.securityGroupId())
                .ingresses(            
                    "ACCEPT#10.0.0.0/16#ALL#ALL",
                    "ACCEPT#172.16.0.0/22#ALL#ALL",
                    "DROP#0.0.0.0/0#ALL#ALL")
                .egresses("ACCEPT#172.16.0.0/22#ALL#ALL")
                .build());
    
            var exampleKubernetesCluster = new KubernetesCluster("exampleKubernetesCluster", KubernetesClusterArgs.builder()
                .vpcId(firstVpcId)
                .clusterCidr(exampleClusterCidr)
                .clusterMaxPodNum(32)
                .clusterName("tf_example_cluster")
                .clusterDesc("example for tke cluster")
                .clusterMaxServiceNum(32)
                .clusterInternet(false)
                .clusterVersion("1.22.5")
                .clusterDeployType("MANAGED_CLUSTER")
                .build());
    
            // without any worker config
            var exampleKubernetesNodePool = new KubernetesNodePool("exampleKubernetesNodePool", KubernetesNodePoolArgs.builder()
                .clusterId(exampleKubernetesCluster.kubernetesClusterId())
                .maxSize(6)
                .minSize(1)
                .vpcId(firstVpcId)
                .subnetIds(firstSubnetId)
                .retryPolicy("INCREMENTAL_INTERVALS")
                .desiredCapacity(4)
                .enableAutoScale(true)
                .multiZoneSubnetPolicy("EQUALITY")
                .autoScalingConfig(KubernetesNodePoolAutoScalingConfigArgs.builder()
                    .instanceType(defaultInstanceType)
                    .systemDiskType("CLOUD_PREMIUM")
                    .systemDiskSize("50")
                    .orderlySecurityGroupIds(sgId)
                    .dataDisks(KubernetesNodePoolAutoScalingConfigDataDiskArgs.builder()
                        .diskType("CLOUD_PREMIUM")
                        .diskSize(50)
                        .build())
                    .internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
                    .internetMaxBandwidthOut(10)
                    .publicIpAssigned(true)
                    .password("test123#")
                    .enhancedSecurityService(false)
                    .enhancedMonitorService(false)
                    .hostName("12.123.0.0")
                    .hostNameStyle("ORIGINAL")
                    .build())
                .labels(Map.ofEntries(
                    Map.entry("test1", "test1"),
                    Map.entry("test2", "test2")
                ))
                .taints(            
                    KubernetesNodePoolTaintArgs.builder()
                        .key("test_taint")
                        .value("taint_value")
                        .effect("PreferNoSchedule")
                        .build(),
                    KubernetesNodePoolTaintArgs.builder()
                        .key("test_taint2")
                        .value("taint_value2")
                        .effect("PreferNoSchedule")
                        .build())
                .nodeConfig(KubernetesNodePoolNodeConfigArgs.builder()
                    .extraArgs("root-dir=/var/lib/kubelet")
                    .build())
                .build());
    
            var exampleKubernetesClusterEndpoint = new KubernetesClusterEndpoint("exampleKubernetesClusterEndpoint", KubernetesClusterEndpointArgs.builder()
                .clusterId(exampleKubernetesCluster.kubernetesClusterId())
                .clusterInternet(true)
                .clusterIntranet(true)
                .clusterInternetSecurityGroup(sgId)
                .clusterIntranetSubnetId(firstSubnetId)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(exampleKubernetesNodePool)
                    .build());
    
        }
    }
    
    configuration:
      defaultInstanceType:
        type: string
        default: SA2.2XLARGE16
      availabilityZoneFirst:
        type: string
        default: ap-guangzhou-3
      availabilityZoneSecond:
        type: string
        default: ap-guangzhou-4
      exampleClusterCidr:
        type: string
        default: 10.31.0.0/16
    resources:
      sg:
        type: tencentcloud:SecurityGroup
      sgRule:
        type: tencentcloud:SecurityGroupLiteRule
        properties:
          securityGroupId: ${sg.securityGroupId}
          ingresses:
            - ACCEPT#10.0.0.0/16#ALL#ALL
            - ACCEPT#172.16.0.0/22#ALL#ALL
            - DROP#0.0.0.0/0#ALL#ALL
          egresses:
            - ACCEPT#172.16.0.0/22#ALL#ALL
      exampleKubernetesCluster:
        type: tencentcloud:KubernetesCluster
        properties:
          vpcId: ${firstVpcId}
          clusterCidr: ${exampleClusterCidr}
          clusterMaxPodNum: 32
          clusterName: tf_example_cluster
          clusterDesc: example for tke cluster
          clusterMaxServiceNum: 32
          clusterInternet: false
          # (can be ignored) open it after the nodes added
          clusterVersion: 1.22.5
          clusterDeployType: MANAGED_CLUSTER
      exampleKubernetesNodePool:
        type: tencentcloud:KubernetesNodePool
        properties:
          clusterId: ${exampleKubernetesCluster.kubernetesClusterId}
          maxSize: 6
          # set the node scaling range [1,6]
          minSize: 1
          vpcId: ${firstVpcId}
          subnetIds:
            - ${firstSubnetId}
          retryPolicy: INCREMENTAL_INTERVALS
          desiredCapacity: 4
          enableAutoScale: true
          multiZoneSubnetPolicy: EQUALITY
          autoScalingConfig:
            instanceType: ${defaultInstanceType}
            systemDiskType: CLOUD_PREMIUM
            systemDiskSize: '50'
            orderlySecurityGroupIds:
              - ${sgId}
            dataDisks:
              - diskType: CLOUD_PREMIUM
                diskSize: 50
            internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
            internetMaxBandwidthOut: 10
            publicIpAssigned: true
            password: test123#
            enhancedSecurityService: false
            enhancedMonitorService: false
            hostName: 12.123.0.0
            hostNameStyle: ORIGINAL
          labels:
            test1: test1
            test2: test2
          taints:
            - key: test_taint
              value: taint_value
              effect: PreferNoSchedule
            - key: test_taint2
              value: taint_value2
              effect: PreferNoSchedule
          nodeConfig:
            extraArgs:
              - root-dir=/var/lib/kubelet
      exampleKubernetesClusterEndpoint:
        type: tencentcloud:KubernetesClusterEndpoint
        properties:
          clusterId: ${exampleKubernetesCluster.kubernetesClusterId}
          clusterInternet: true
          # open the internet here
          clusterIntranet: true
          clusterInternetSecurityGroup: ${sgId}
          clusterIntranetSubnetId: ${firstSubnetId}
        options:
          dependsOn:
            - ${exampleKubernetesNodePool}
    variables:
      firstVpcId: ${vpcOne.instanceLists[0].vpcId}
      firstSubnetId: ${vpcOne.instanceLists[0].subnetId}
      sgId: ${sg.securityGroupId}
      vpcOne:
        fn::invoke:
          function: tencentcloud:getVpcSubnets
          arguments:
            isDefault: true
            availabilityZone: ${availabilityZoneFirst}
      vpcTwo:
        fn::invoke:
          function: tencentcloud:getVpcSubnets
          arguments:
            isDefault: true
            availabilityZone: ${availabilityZoneSecond}
    

    Use Kubelet

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const defaultInstanceType = config.get("defaultInstanceType") || "SA2.2XLARGE16";
    const availabilityZoneFirst = config.get("availabilityZoneFirst") || "ap-guangzhou-3";
    const availabilityZoneSecond = config.get("availabilityZoneSecond") || "ap-guangzhou-4";
    const exampleClusterCidr = config.get("exampleClusterCidr") || "10.31.0.0/16";
    const vpcOne = tencentcloud.getVpcSubnets({
        isDefault: true,
        availabilityZone: availabilityZoneFirst,
    });
    const firstVpcId = vpcOne.then(vpcOne => vpcOne.instanceLists?.[0]?.vpcId);
    const firstSubnetId = vpcOne.then(vpcOne => vpcOne.instanceLists?.[0]?.subnetId);
    const vpcTwo = tencentcloud.getVpcSubnets({
        isDefault: true,
        availabilityZone: availabilityZoneSecond,
    });
    const secondVpcId = vpcTwo.then(vpcTwo => vpcTwo.instanceLists?.[0]?.vpcId);
    const secondSubnetId = vpcTwo.then(vpcTwo => vpcTwo.instanceLists?.[0]?.subnetId);
    const sg = new tencentcloud.SecurityGroup("sg", {});
    const sgId = sg.securityGroupId;
    const _default = tencentcloud.getImages({
        imageTypes: ["PUBLIC_IMAGE"],
        imageNameRegex: "Final",
    });
    const imageId = _default.then(_default => _default.imageId);
    const sgRule = new tencentcloud.SecurityGroupLiteRule("sgRule", {
        securityGroupId: sg.securityGroupId,
        ingresses: [
            "ACCEPT#10.0.0.0/16#ALL#ALL",
            "ACCEPT#172.16.0.0/22#ALL#ALL",
            "DROP#0.0.0.0/0#ALL#ALL",
        ],
        egresses: ["ACCEPT#172.16.0.0/22#ALL#ALL"],
    });
    const example = new tencentcloud.KubernetesCluster("example", {
        vpcId: firstVpcId,
        clusterCidr: exampleClusterCidr,
        clusterMaxPodNum: 32,
        clusterName: "tf_example_cluster",
        clusterDesc: "example for tke cluster",
        clusterMaxServiceNum: 32,
        clusterInternet: false,
        clusterInternetSecurityGroup: sgId,
        clusterVersion: "1.22.5",
        clusterDeployType: "MANAGED_CLUSTER",
        workerConfigs: [
            {
                count: 1,
                availabilityZone: availabilityZoneFirst,
                instanceType: defaultInstanceType,
                systemDiskType: "CLOUD_SSD",
                systemDiskSize: 60,
                internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
                internetMaxBandwidthOut: 100,
                publicIpAssigned: true,
                subnetId: firstSubnetId,
                dataDisks: [{
                    diskType: "CLOUD_PREMIUM",
                    diskSize: 50,
                    encrypt: false,
                }],
                enhancedSecurityService: false,
                enhancedMonitorService: false,
                userData: "dGVzdA==",
                disasterRecoverGroupIds: [],
                securityGroupIds: [],
                keyIds: [],
                password: "ZZXXccvv1212",
            },
            {
                count: 1,
                availabilityZone: availabilityZoneSecond,
                instanceType: defaultInstanceType,
                systemDiskType: "CLOUD_SSD",
                systemDiskSize: 60,
                internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
                internetMaxBandwidthOut: 100,
                publicIpAssigned: true,
                subnetId: secondSubnetId,
                dataDisks: [{
                    diskType: "CLOUD_PREMIUM",
                    diskSize: 50,
                }],
                enhancedSecurityService: false,
                enhancedMonitorService: false,
                userData: "dGVzdA==",
                disasterRecoverGroupIds: [],
                securityGroupIds: [],
                keyIds: [],
                camRoleName: "CVM_QcsRole",
                password: "ZZXXccvv1212",
            },
        ],
        labels: {
            test1: "test1",
            test2: "test2",
        },
        extraArgs: ["root-dir=/var/lib/kubelet"],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    default_instance_type = config.get("defaultInstanceType")
    if default_instance_type is None:
        default_instance_type = "SA2.2XLARGE16"
    availability_zone_first = config.get("availabilityZoneFirst")
    if availability_zone_first is None:
        availability_zone_first = "ap-guangzhou-3"
    availability_zone_second = config.get("availabilityZoneSecond")
    if availability_zone_second is None:
        availability_zone_second = "ap-guangzhou-4"
    example_cluster_cidr = config.get("exampleClusterCidr")
    if example_cluster_cidr is None:
        example_cluster_cidr = "10.31.0.0/16"
    vpc_one = tencentcloud.get_vpc_subnets(is_default=True,
        availability_zone=availability_zone_first)
    first_vpc_id = vpc_one.instance_lists[0].vpc_id
    first_subnet_id = vpc_one.instance_lists[0].subnet_id
    vpc_two = tencentcloud.get_vpc_subnets(is_default=True,
        availability_zone=availability_zone_second)
    second_vpc_id = vpc_two.instance_lists[0].vpc_id
    second_subnet_id = vpc_two.instance_lists[0].subnet_id
    sg = tencentcloud.SecurityGroup("sg")
    sg_id = sg.security_group_id
    default = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
        image_name_regex="Final")
    image_id = default.image_id
    sg_rule = tencentcloud.SecurityGroupLiteRule("sgRule",
        security_group_id=sg.security_group_id,
        ingresses=[
            "ACCEPT#10.0.0.0/16#ALL#ALL",
            "ACCEPT#172.16.0.0/22#ALL#ALL",
            "DROP#0.0.0.0/0#ALL#ALL",
        ],
        egresses=["ACCEPT#172.16.0.0/22#ALL#ALL"])
    example = tencentcloud.KubernetesCluster("example",
        vpc_id=first_vpc_id,
        cluster_cidr=example_cluster_cidr,
        cluster_max_pod_num=32,
        cluster_name="tf_example_cluster",
        cluster_desc="example for tke cluster",
        cluster_max_service_num=32,
        cluster_internet=False,
        cluster_internet_security_group=sg_id,
        cluster_version="1.22.5",
        cluster_deploy_type="MANAGED_CLUSTER",
        worker_configs=[
            {
                "count": 1,
                "availability_zone": availability_zone_first,
                "instance_type": default_instance_type,
                "system_disk_type": "CLOUD_SSD",
                "system_disk_size": 60,
                "internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
                "internet_max_bandwidth_out": 100,
                "public_ip_assigned": True,
                "subnet_id": first_subnet_id,
                "data_disks": [{
                    "disk_type": "CLOUD_PREMIUM",
                    "disk_size": 50,
                    "encrypt": False,
                }],
                "enhanced_security_service": False,
                "enhanced_monitor_service": False,
                "user_data": "dGVzdA==",
                "disaster_recover_group_ids": [],
                "security_group_ids": [],
                "key_ids": [],
                "password": "ZZXXccvv1212",
            },
            {
                "count": 1,
                "availability_zone": availability_zone_second,
                "instance_type": default_instance_type,
                "system_disk_type": "CLOUD_SSD",
                "system_disk_size": 60,
                "internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
                "internet_max_bandwidth_out": 100,
                "public_ip_assigned": True,
                "subnet_id": second_subnet_id,
                "data_disks": [{
                    "disk_type": "CLOUD_PREMIUM",
                    "disk_size": 50,
                }],
                "enhanced_security_service": False,
                "enhanced_monitor_service": False,
                "user_data": "dGVzdA==",
                "disaster_recover_group_ids": [],
                "security_group_ids": [],
                "key_ids": [],
                "cam_role_name": "CVM_QcsRole",
                "password": "ZZXXccvv1212",
            },
        ],
        labels={
            "test1": "test1",
            "test2": "test2",
        },
        extra_args=["root-dir=/var/lib/kubelet"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"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, "")
    		defaultInstanceType := "SA2.2XLARGE16"
    		if param := cfg.Get("defaultInstanceType"); param != "" {
    			defaultInstanceType = param
    		}
    		availabilityZoneFirst := "ap-guangzhou-3"
    		if param := cfg.Get("availabilityZoneFirst"); param != "" {
    			availabilityZoneFirst = param
    		}
    		availabilityZoneSecond := "ap-guangzhou-4"
    		if param := cfg.Get("availabilityZoneSecond"); param != "" {
    			availabilityZoneSecond = param
    		}
    		exampleClusterCidr := "10.31.0.0/16"
    		if param := cfg.Get("exampleClusterCidr"); param != "" {
    			exampleClusterCidr = param
    		}
    		vpcOne, err := tencentcloud.GetVpcSubnets(ctx, &tencentcloud.GetVpcSubnetsArgs{
    			IsDefault:        pulumi.BoolRef(true),
    			AvailabilityZone: pulumi.StringRef(availabilityZoneFirst),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		firstVpcId := vpcOne.InstanceLists[0].VpcId
    		firstSubnetId := vpcOne.InstanceLists[0].SubnetId
    		vpcTwo, err := tencentcloud.GetVpcSubnets(ctx, &tencentcloud.GetVpcSubnetsArgs{
    			IsDefault:        pulumi.BoolRef(true),
    			AvailabilityZone: pulumi.StringRef(availabilityZoneSecond),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_ := vpcTwo.InstanceLists[0].VpcId
    		secondSubnetId := vpcTwo.InstanceLists[0].SubnetId
    		sg, err := tencentcloud.NewSecurityGroup(ctx, "sg", nil)
    		if err != nil {
    			return err
    		}
    		sgId := sg.SecurityGroupId
    		_default, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
    			ImageTypes: []string{
    				"PUBLIC_IMAGE",
    			},
    			ImageNameRegex: pulumi.StringRef("Final"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_ := _default.ImageId
    		_, err = tencentcloud.NewSecurityGroupLiteRule(ctx, "sgRule", &tencentcloud.SecurityGroupLiteRuleArgs{
    			SecurityGroupId: sg.SecurityGroupId,
    			Ingresses: pulumi.StringArray{
    				pulumi.String("ACCEPT#10.0.0.0/16#ALL#ALL"),
    				pulumi.String("ACCEPT#172.16.0.0/22#ALL#ALL"),
    				pulumi.String("DROP#0.0.0.0/0#ALL#ALL"),
    			},
    			Egresses: pulumi.StringArray{
    				pulumi.String("ACCEPT#172.16.0.0/22#ALL#ALL"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewKubernetesCluster(ctx, "example", &tencentcloud.KubernetesClusterArgs{
    			VpcId:                        pulumi.String(firstVpcId),
    			ClusterCidr:                  pulumi.String(exampleClusterCidr),
    			ClusterMaxPodNum:             pulumi.Float64(32),
    			ClusterName:                  pulumi.String("tf_example_cluster"),
    			ClusterDesc:                  pulumi.String("example for tke cluster"),
    			ClusterMaxServiceNum:         pulumi.Float64(32),
    			ClusterInternet:              pulumi.Bool(false),
    			ClusterInternetSecurityGroup: pulumi.String(sgId),
    			ClusterVersion:               pulumi.String("1.22.5"),
    			ClusterDeployType:            pulumi.String("MANAGED_CLUSTER"),
    			WorkerConfigs: tencentcloud.KubernetesClusterWorkerConfigArray{
    				&tencentcloud.KubernetesClusterWorkerConfigArgs{
    					Count:                   pulumi.Float64(1),
    					AvailabilityZone:        pulumi.String(availabilityZoneFirst),
    					InstanceType:            pulumi.String(defaultInstanceType),
    					SystemDiskType:          pulumi.String("CLOUD_SSD"),
    					SystemDiskSize:          pulumi.Float64(60),
    					InternetChargeType:      pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
    					InternetMaxBandwidthOut: pulumi.Float64(100),
    					PublicIpAssigned:        pulumi.Bool(true),
    					SubnetId:                pulumi.String(firstSubnetId),
    					DataDisks: tencentcloud.KubernetesClusterWorkerConfigDataDiskArray{
    						&tencentcloud.KubernetesClusterWorkerConfigDataDiskArgs{
    							DiskType: pulumi.String("CLOUD_PREMIUM"),
    							DiskSize: pulumi.Float64(50),
    							Encrypt:  pulumi.Bool(false),
    						},
    					},
    					EnhancedSecurityService: pulumi.Bool(false),
    					EnhancedMonitorService:  pulumi.Bool(false),
    					UserData:                pulumi.String("dGVzdA=="),
    					DisasterRecoverGroupIds: pulumi.StringArray{},
    					SecurityGroupIds:        pulumi.StringArray{},
    					KeyIds:                  pulumi.StringArray{},
    					Password:                pulumi.String("ZZXXccvv1212"),
    				},
    				&tencentcloud.KubernetesClusterWorkerConfigArgs{
    					Count:                   pulumi.Float64(1),
    					AvailabilityZone:        pulumi.String(availabilityZoneSecond),
    					InstanceType:            pulumi.String(defaultInstanceType),
    					SystemDiskType:          pulumi.String("CLOUD_SSD"),
    					SystemDiskSize:          pulumi.Float64(60),
    					InternetChargeType:      pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
    					InternetMaxBandwidthOut: pulumi.Float64(100),
    					PublicIpAssigned:        pulumi.Bool(true),
    					SubnetId:                pulumi.String(secondSubnetId),
    					DataDisks: tencentcloud.KubernetesClusterWorkerConfigDataDiskArray{
    						&tencentcloud.KubernetesClusterWorkerConfigDataDiskArgs{
    							DiskType: pulumi.String("CLOUD_PREMIUM"),
    							DiskSize: pulumi.Float64(50),
    						},
    					},
    					EnhancedSecurityService: pulumi.Bool(false),
    					EnhancedMonitorService:  pulumi.Bool(false),
    					UserData:                pulumi.String("dGVzdA=="),
    					DisasterRecoverGroupIds: pulumi.StringArray{},
    					SecurityGroupIds:        pulumi.StringArray{},
    					KeyIds:                  pulumi.StringArray{},
    					CamRoleName:             pulumi.String("CVM_QcsRole"),
    					Password:                pulumi.String("ZZXXccvv1212"),
    				},
    			},
    			Labels: pulumi.StringMap{
    				"test1": pulumi.String("test1"),
    				"test2": pulumi.String("test2"),
    			},
    			ExtraArgs: pulumi.StringArray{
    				pulumi.String("root-dir=/var/lib/kubelet"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var defaultInstanceType = config.Get("defaultInstanceType") ?? "SA2.2XLARGE16";
        var availabilityZoneFirst = config.Get("availabilityZoneFirst") ?? "ap-guangzhou-3";
        var availabilityZoneSecond = config.Get("availabilityZoneSecond") ?? "ap-guangzhou-4";
        var exampleClusterCidr = config.Get("exampleClusterCidr") ?? "10.31.0.0/16";
        var vpcOne = Tencentcloud.GetVpcSubnets.Invoke(new()
        {
            IsDefault = true,
            AvailabilityZone = availabilityZoneFirst,
        });
    
        var firstVpcId = vpcOne.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.VpcId);
    
        var firstSubnetId = vpcOne.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.SubnetId);
    
        var vpcTwo = Tencentcloud.GetVpcSubnets.Invoke(new()
        {
            IsDefault = true,
            AvailabilityZone = availabilityZoneSecond,
        });
    
        var secondVpcId = vpcTwo.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.VpcId);
    
        var secondSubnetId = vpcTwo.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.SubnetId);
    
        var sg = new Tencentcloud.SecurityGroup("sg");
    
        var sgId = sg.SecurityGroupId;
    
        var @default = Tencentcloud.GetImages.Invoke(new()
        {
            ImageTypes = new[]
            {
                "PUBLIC_IMAGE",
            },
            ImageNameRegex = "Final",
        });
    
        var imageId = @default.Apply(@default => @default.Apply(getImagesResult => getImagesResult.ImageId));
    
        var sgRule = new Tencentcloud.SecurityGroupLiteRule("sgRule", new()
        {
            SecurityGroupId = sg.SecurityGroupId,
            Ingresses = new[]
            {
                "ACCEPT#10.0.0.0/16#ALL#ALL",
                "ACCEPT#172.16.0.0/22#ALL#ALL",
                "DROP#0.0.0.0/0#ALL#ALL",
            },
            Egresses = new[]
            {
                "ACCEPT#172.16.0.0/22#ALL#ALL",
            },
        });
    
        var example = new Tencentcloud.KubernetesCluster("example", new()
        {
            VpcId = firstVpcId,
            ClusterCidr = exampleClusterCidr,
            ClusterMaxPodNum = 32,
            ClusterName = "tf_example_cluster",
            ClusterDesc = "example for tke cluster",
            ClusterMaxServiceNum = 32,
            ClusterInternet = false,
            ClusterInternetSecurityGroup = sgId,
            ClusterVersion = "1.22.5",
            ClusterDeployType = "MANAGED_CLUSTER",
            WorkerConfigs = new[]
            {
                new Tencentcloud.Inputs.KubernetesClusterWorkerConfigArgs
                {
                    Count = 1,
                    AvailabilityZone = availabilityZoneFirst,
                    InstanceType = defaultInstanceType,
                    SystemDiskType = "CLOUD_SSD",
                    SystemDiskSize = 60,
                    InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
                    InternetMaxBandwidthOut = 100,
                    PublicIpAssigned = true,
                    SubnetId = firstSubnetId,
                    DataDisks = new[]
                    {
                        new Tencentcloud.Inputs.KubernetesClusterWorkerConfigDataDiskArgs
                        {
                            DiskType = "CLOUD_PREMIUM",
                            DiskSize = 50,
                            Encrypt = false,
                        },
                    },
                    EnhancedSecurityService = false,
                    EnhancedMonitorService = false,
                    UserData = "dGVzdA==",
                    DisasterRecoverGroupIds = new() { },
                    SecurityGroupIds = new() { },
                    KeyIds = new() { },
                    Password = "ZZXXccvv1212",
                },
                new Tencentcloud.Inputs.KubernetesClusterWorkerConfigArgs
                {
                    Count = 1,
                    AvailabilityZone = availabilityZoneSecond,
                    InstanceType = defaultInstanceType,
                    SystemDiskType = "CLOUD_SSD",
                    SystemDiskSize = 60,
                    InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
                    InternetMaxBandwidthOut = 100,
                    PublicIpAssigned = true,
                    SubnetId = secondSubnetId,
                    DataDisks = new[]
                    {
                        new Tencentcloud.Inputs.KubernetesClusterWorkerConfigDataDiskArgs
                        {
                            DiskType = "CLOUD_PREMIUM",
                            DiskSize = 50,
                        },
                    },
                    EnhancedSecurityService = false,
                    EnhancedMonitorService = false,
                    UserData = "dGVzdA==",
                    DisasterRecoverGroupIds = new() { },
                    SecurityGroupIds = new() { },
                    KeyIds = new() { },
                    CamRoleName = "CVM_QcsRole",
                    Password = "ZZXXccvv1212",
                },
            },
            Labels = 
            {
                { "test1", "test1" },
                { "test2", "test2" },
            },
            ExtraArgs = new[]
            {
                "root-dir=/var/lib/kubelet",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetVpcSubnetsArgs;
    import com.pulumi.tencentcloud.SecurityGroup;
    import com.pulumi.tencentcloud.inputs.GetImagesArgs;
    import com.pulumi.tencentcloud.SecurityGroupLiteRule;
    import com.pulumi.tencentcloud.SecurityGroupLiteRuleArgs;
    import com.pulumi.tencentcloud.KubernetesCluster;
    import com.pulumi.tencentcloud.KubernetesClusterArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterWorkerConfigArgs;
    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 defaultInstanceType = config.get("defaultInstanceType").orElse("SA2.2XLARGE16");
            final var availabilityZoneFirst = config.get("availabilityZoneFirst").orElse("ap-guangzhou-3");
            final var availabilityZoneSecond = config.get("availabilityZoneSecond").orElse("ap-guangzhou-4");
            final var exampleClusterCidr = config.get("exampleClusterCidr").orElse("10.31.0.0/16");
            final var vpcOne = TencentcloudFunctions.getVpcSubnets(GetVpcSubnetsArgs.builder()
                .isDefault(true)
                .availabilityZone(availabilityZoneFirst)
                .build());
    
            final var firstVpcId = vpcOne.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].vpcId());
    
            final var firstSubnetId = vpcOne.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].subnetId());
    
            final var vpcTwo = TencentcloudFunctions.getVpcSubnets(GetVpcSubnetsArgs.builder()
                .isDefault(true)
                .availabilityZone(availabilityZoneSecond)
                .build());
    
            final var secondVpcId = vpcTwo.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].vpcId());
    
            final var secondSubnetId = vpcTwo.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].subnetId());
    
            var sg = new SecurityGroup("sg");
    
            final var sgId = sg.securityGroupId();
    
            final var default = TencentcloudFunctions.getImages(GetImagesArgs.builder()
                .imageTypes("PUBLIC_IMAGE")
                .imageNameRegex("Final")
                .build());
    
            final var imageId = default_.imageId();
    
            var sgRule = new SecurityGroupLiteRule("sgRule", SecurityGroupLiteRuleArgs.builder()
                .securityGroupId(sg.securityGroupId())
                .ingresses(            
                    "ACCEPT#10.0.0.0/16#ALL#ALL",
                    "ACCEPT#172.16.0.0/22#ALL#ALL",
                    "DROP#0.0.0.0/0#ALL#ALL")
                .egresses("ACCEPT#172.16.0.0/22#ALL#ALL")
                .build());
    
            var example = new KubernetesCluster("example", KubernetesClusterArgs.builder()
                .vpcId(firstVpcId)
                .clusterCidr(exampleClusterCidr)
                .clusterMaxPodNum(32)
                .clusterName("tf_example_cluster")
                .clusterDesc("example for tke cluster")
                .clusterMaxServiceNum(32)
                .clusterInternet(false)
                .clusterInternetSecurityGroup(sgId)
                .clusterVersion("1.22.5")
                .clusterDeployType("MANAGED_CLUSTER")
                .workerConfigs(            
                    KubernetesClusterWorkerConfigArgs.builder()
                        .count(1)
                        .availabilityZone(availabilityZoneFirst)
                        .instanceType(defaultInstanceType)
                        .systemDiskType("CLOUD_SSD")
                        .systemDiskSize(60)
                        .internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
                        .internetMaxBandwidthOut(100)
                        .publicIpAssigned(true)
                        .subnetId(firstSubnetId)
                        .dataDisks(KubernetesClusterWorkerConfigDataDiskArgs.builder()
                            .diskType("CLOUD_PREMIUM")
                            .diskSize(50)
                            .encrypt(false)
                            .build())
                        .enhancedSecurityService(false)
                        .enhancedMonitorService(false)
                        .userData("dGVzdA==")
                        .disasterRecoverGroupIds()
                        .securityGroupIds()
                        .keyIds()
                        .password("ZZXXccvv1212")
                        .build(),
                    KubernetesClusterWorkerConfigArgs.builder()
                        .count(1)
                        .availabilityZone(availabilityZoneSecond)
                        .instanceType(defaultInstanceType)
                        .systemDiskType("CLOUD_SSD")
                        .systemDiskSize(60)
                        .internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
                        .internetMaxBandwidthOut(100)
                        .publicIpAssigned(true)
                        .subnetId(secondSubnetId)
                        .dataDisks(KubernetesClusterWorkerConfigDataDiskArgs.builder()
                            .diskType("CLOUD_PREMIUM")
                            .diskSize(50)
                            .build())
                        .enhancedSecurityService(false)
                        .enhancedMonitorService(false)
                        .userData("dGVzdA==")
                        .disasterRecoverGroupIds()
                        .securityGroupIds()
                        .keyIds()
                        .camRoleName("CVM_QcsRole")
                        .password("ZZXXccvv1212")
                        .build())
                .labels(Map.ofEntries(
                    Map.entry("test1", "test1"),
                    Map.entry("test2", "test2")
                ))
                .extraArgs("root-dir=/var/lib/kubelet")
                .build());
    
        }
    }
    
    configuration:
      # Create a baisc kubernetes cluster with two nodes.
      defaultInstanceType:
        type: string
        default: SA2.2XLARGE16
      availabilityZoneFirst:
        type: string
        default: ap-guangzhou-3
      availabilityZoneSecond:
        type: string
        default: ap-guangzhou-4
      exampleClusterCidr:
        type: string
        default: 10.31.0.0/16
    resources:
      sg:
        type: tencentcloud:SecurityGroup
      sgRule:
        type: tencentcloud:SecurityGroupLiteRule
        properties:
          securityGroupId: ${sg.securityGroupId}
          ingresses:
            - ACCEPT#10.0.0.0/16#ALL#ALL
            - ACCEPT#172.16.0.0/22#ALL#ALL
            - DROP#0.0.0.0/0#ALL#ALL
          egresses:
            - ACCEPT#172.16.0.0/22#ALL#ALL
      example:
        type: tencentcloud:KubernetesCluster
        properties:
          vpcId: ${firstVpcId}
          clusterCidr: ${exampleClusterCidr}
          clusterMaxPodNum: 32
          clusterName: tf_example_cluster
          clusterDesc: example for tke cluster
          clusterMaxServiceNum: 32
          clusterInternet: false
          clusterInternetSecurityGroup: ${sgId}
          clusterVersion: 1.22.5
          clusterDeployType: MANAGED_CLUSTER
          workerConfigs:
            - count: 1
              availabilityZone: ${availabilityZoneFirst}
              instanceType: ${defaultInstanceType}
              systemDiskType: CLOUD_SSD
              systemDiskSize: 60
              internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
              internetMaxBandwidthOut: 100
              publicIpAssigned: true
              subnetId: ${firstSubnetId}
              dataDisks:
                - diskType: CLOUD_PREMIUM
                  diskSize: 50
                  encrypt: false
              enhancedSecurityService: false
              enhancedMonitorService: false
              userData: dGVzdA==
              disasterRecoverGroupIds: []
              securityGroupIds: []
              keyIds: []
              password: ZZXXccvv1212
            - count: 1
              availabilityZone: ${availabilityZoneSecond}
              instanceType: ${defaultInstanceType}
              systemDiskType: CLOUD_SSD
              systemDiskSize: 60
              internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
              internetMaxBandwidthOut: 100
              publicIpAssigned: true
              subnetId: ${secondSubnetId}
              dataDisks:
                - diskType: CLOUD_PREMIUM
                  diskSize: 50
              enhancedSecurityService: false
              enhancedMonitorService: false
              userData: dGVzdA==
              disasterRecoverGroupIds: []
              securityGroupIds: []
              keyIds: []
              camRoleName: CVM_QcsRole
              password: ZZXXccvv1212
          labels:
            test1: test1
            test2: test2
          extraArgs:
            - root-dir=/var/lib/kubelet
    variables:
      firstVpcId: ${vpcOne.instanceLists[0].vpcId}
      firstSubnetId: ${vpcOne.instanceLists[0].subnetId}
      secondVpcId: ${vpcTwo.instanceLists[0].vpcId}
      secondSubnetId: ${vpcTwo.instanceLists[0].subnetId}
      sgId: ${sg.securityGroupId}
      imageId: ${default.imageId}
      vpcOne:
        fn::invoke:
          function: tencentcloud:getVpcSubnets
          arguments:
            isDefault: true
            availabilityZone: ${availabilityZoneFirst}
      vpcTwo:
        fn::invoke:
          function: tencentcloud:getVpcSubnets
          arguments:
            isDefault: true
            availabilityZone: ${availabilityZoneSecond}
      default:
        fn::invoke:
          function: tencentcloud:getImages
          arguments:
            imageTypes:
              - PUBLIC_IMAGE
            imageNameRegex: Final
    

    Use node pool global config

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const availabilityZone = config.get("availabilityZone") || "ap-guangzhou-3";
    const vpc = config.get("vpc") || "vpc-dk8zmwuf";
    const subnet = config.get("subnet") || "subnet-pqfek0t8";
    const defaultInstanceType = config.get("defaultInstanceType") || "SA1.LARGE8";
    const testNodePoolGlobalConfig = new tencentcloud.KubernetesCluster("testNodePoolGlobalConfig", {
        vpcId: vpc,
        clusterCidr: "10.1.0.0/16",
        clusterMaxPodNum: 32,
        clusterName: "test",
        clusterDesc: "test cluster desc",
        clusterMaxServiceNum: 32,
        clusterInternet: true,
        clusterDeployType: "MANAGED_CLUSTER",
        workerConfigs: [{
            count: 1,
            availabilityZone: availabilityZone,
            instanceType: defaultInstanceType,
            systemDiskType: "CLOUD_SSD",
            systemDiskSize: 60,
            internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
            internetMaxBandwidthOut: 100,
            publicIpAssigned: true,
            subnetId: subnet,
            dataDisks: [{
                diskType: "CLOUD_PREMIUM",
                diskSize: 50,
            }],
            enhancedSecurityService: false,
            enhancedMonitorService: false,
            userData: "dGVzdA==",
            keyIds: "skey-11112222",
        }],
        nodePoolGlobalConfigs: [{
            isScaleInEnabled: true,
            expander: "random",
            ignoreDaemonSetsUtilization: true,
            maxConcurrentScaleIn: 5,
            scaleInDelay: 15,
            scaleInUnneededTime: 15,
            scaleInUtilizationThreshold: 30,
            skipNodesWithLocalStorage: false,
            skipNodesWithSystemPods: true,
        }],
        labels: {
            test1: "test1",
            test2: "test2",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    availability_zone = config.get("availabilityZone")
    if availability_zone is None:
        availability_zone = "ap-guangzhou-3"
    vpc = config.get("vpc")
    if vpc is None:
        vpc = "vpc-dk8zmwuf"
    subnet = config.get("subnet")
    if subnet is None:
        subnet = "subnet-pqfek0t8"
    default_instance_type = config.get("defaultInstanceType")
    if default_instance_type is None:
        default_instance_type = "SA1.LARGE8"
    test_node_pool_global_config = tencentcloud.KubernetesCluster("testNodePoolGlobalConfig",
        vpc_id=vpc,
        cluster_cidr="10.1.0.0/16",
        cluster_max_pod_num=32,
        cluster_name="test",
        cluster_desc="test cluster desc",
        cluster_max_service_num=32,
        cluster_internet=True,
        cluster_deploy_type="MANAGED_CLUSTER",
        worker_configs=[{
            "count": 1,
            "availability_zone": availability_zone,
            "instance_type": default_instance_type,
            "system_disk_type": "CLOUD_SSD",
            "system_disk_size": 60,
            "internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
            "internet_max_bandwidth_out": 100,
            "public_ip_assigned": True,
            "subnet_id": subnet,
            "data_disks": [{
                "disk_type": "CLOUD_PREMIUM",
                "disk_size": 50,
            }],
            "enhanced_security_service": False,
            "enhanced_monitor_service": False,
            "user_data": "dGVzdA==",
            "key_ids": "skey-11112222",
        }],
        node_pool_global_configs=[{
            "is_scale_in_enabled": True,
            "expander": "random",
            "ignore_daemon_sets_utilization": True,
            "max_concurrent_scale_in": 5,
            "scale_in_delay": 15,
            "scale_in_unneeded_time": 15,
            "scale_in_utilization_threshold": 30,
            "skip_nodes_with_local_storage": False,
            "skip_nodes_with_system_pods": True,
        }],
        labels={
            "test1": "test1",
            "test2": "test2",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"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, "")
    		availabilityZone := "ap-guangzhou-3"
    		if param := cfg.Get("availabilityZone"); param != "" {
    			availabilityZone = param
    		}
    		vpc := "vpc-dk8zmwuf"
    		if param := cfg.Get("vpc"); param != "" {
    			vpc = param
    		}
    		subnet := "subnet-pqfek0t8"
    		if param := cfg.Get("subnet"); param != "" {
    			subnet = param
    		}
    		defaultInstanceType := "SA1.LARGE8"
    		if param := cfg.Get("defaultInstanceType"); param != "" {
    			defaultInstanceType = param
    		}
    		_, err := tencentcloud.NewKubernetesCluster(ctx, "testNodePoolGlobalConfig", &tencentcloud.KubernetesClusterArgs{
    			VpcId:                pulumi.String(vpc),
    			ClusterCidr:          pulumi.String("10.1.0.0/16"),
    			ClusterMaxPodNum:     pulumi.Float64(32),
    			ClusterName:          pulumi.String("test"),
    			ClusterDesc:          pulumi.String("test cluster desc"),
    			ClusterMaxServiceNum: pulumi.Float64(32),
    			ClusterInternet:      pulumi.Bool(true),
    			ClusterDeployType:    pulumi.String("MANAGED_CLUSTER"),
    			WorkerConfigs: tencentcloud.KubernetesClusterWorkerConfigArray{
    				&tencentcloud.KubernetesClusterWorkerConfigArgs{
    					Count:                   pulumi.Float64(1),
    					AvailabilityZone:        pulumi.String(availabilityZone),
    					InstanceType:            pulumi.String(defaultInstanceType),
    					SystemDiskType:          pulumi.String("CLOUD_SSD"),
    					SystemDiskSize:          pulumi.Float64(60),
    					InternetChargeType:      pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
    					InternetMaxBandwidthOut: pulumi.Float64(100),
    					PublicIpAssigned:        pulumi.Bool(true),
    					SubnetId:                pulumi.String(subnet),
    					DataDisks: tencentcloud.KubernetesClusterWorkerConfigDataDiskArray{
    						&tencentcloud.KubernetesClusterWorkerConfigDataDiskArgs{
    							DiskType: pulumi.String("CLOUD_PREMIUM"),
    							DiskSize: pulumi.Float64(50),
    						},
    					},
    					EnhancedSecurityService: pulumi.Bool(false),
    					EnhancedMonitorService:  pulumi.Bool(false),
    					UserData:                pulumi.String("dGVzdA=="),
    					KeyIds:                  pulumi.StringArray("skey-11112222"),
    				},
    			},
    			NodePoolGlobalConfigs: tencentcloud.KubernetesClusterNodePoolGlobalConfigArray{
    				&tencentcloud.KubernetesClusterNodePoolGlobalConfigArgs{
    					IsScaleInEnabled:            pulumi.Bool(true),
    					Expander:                    pulumi.String("random"),
    					IgnoreDaemonSetsUtilization: pulumi.Bool(true),
    					MaxConcurrentScaleIn:        pulumi.Float64(5),
    					ScaleInDelay:                pulumi.Float64(15),
    					ScaleInUnneededTime:         pulumi.Float64(15),
    					ScaleInUtilizationThreshold: pulumi.Float64(30),
    					SkipNodesWithLocalStorage:   pulumi.Bool(false),
    					SkipNodesWithSystemPods:     pulumi.Bool(true),
    				},
    			},
    			Labels: pulumi.StringMap{
    				"test1": pulumi.String("test1"),
    				"test2": pulumi.String("test2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var availabilityZone = config.Get("availabilityZone") ?? "ap-guangzhou-3";
        var vpc = config.Get("vpc") ?? "vpc-dk8zmwuf";
        var subnet = config.Get("subnet") ?? "subnet-pqfek0t8";
        var defaultInstanceType = config.Get("defaultInstanceType") ?? "SA1.LARGE8";
        var testNodePoolGlobalConfig = new Tencentcloud.KubernetesCluster("testNodePoolGlobalConfig", new()
        {
            VpcId = vpc,
            ClusterCidr = "10.1.0.0/16",
            ClusterMaxPodNum = 32,
            ClusterName = "test",
            ClusterDesc = "test cluster desc",
            ClusterMaxServiceNum = 32,
            ClusterInternet = true,
            ClusterDeployType = "MANAGED_CLUSTER",
            WorkerConfigs = new[]
            {
                new Tencentcloud.Inputs.KubernetesClusterWorkerConfigArgs
                {
                    Count = 1,
                    AvailabilityZone = availabilityZone,
                    InstanceType = defaultInstanceType,
                    SystemDiskType = "CLOUD_SSD",
                    SystemDiskSize = 60,
                    InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
                    InternetMaxBandwidthOut = 100,
                    PublicIpAssigned = true,
                    SubnetId = subnet,
                    DataDisks = new[]
                    {
                        new Tencentcloud.Inputs.KubernetesClusterWorkerConfigDataDiskArgs
                        {
                            DiskType = "CLOUD_PREMIUM",
                            DiskSize = 50,
                        },
                    },
                    EnhancedSecurityService = false,
                    EnhancedMonitorService = false,
                    UserData = "dGVzdA==",
                    KeyIds = "skey-11112222",
                },
            },
            NodePoolGlobalConfigs = new[]
            {
                new Tencentcloud.Inputs.KubernetesClusterNodePoolGlobalConfigArgs
                {
                    IsScaleInEnabled = true,
                    Expander = "random",
                    IgnoreDaemonSetsUtilization = true,
                    MaxConcurrentScaleIn = 5,
                    ScaleInDelay = 15,
                    ScaleInUnneededTime = 15,
                    ScaleInUtilizationThreshold = 30,
                    SkipNodesWithLocalStorage = false,
                    SkipNodesWithSystemPods = true,
                },
            },
            Labels = 
            {
                { "test1", "test1" },
                { "test2", "test2" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.KubernetesCluster;
    import com.pulumi.tencentcloud.KubernetesClusterArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterWorkerConfigArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterNodePoolGlobalConfigArgs;
    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 availabilityZone = config.get("availabilityZone").orElse("ap-guangzhou-3");
            final var vpc = config.get("vpc").orElse("vpc-dk8zmwuf");
            final var subnet = config.get("subnet").orElse("subnet-pqfek0t8");
            final var defaultInstanceType = config.get("defaultInstanceType").orElse("SA1.LARGE8");
            var testNodePoolGlobalConfig = new KubernetesCluster("testNodePoolGlobalConfig", KubernetesClusterArgs.builder()
                .vpcId(vpc)
                .clusterCidr("10.1.0.0/16")
                .clusterMaxPodNum(32)
                .clusterName("test")
                .clusterDesc("test cluster desc")
                .clusterMaxServiceNum(32)
                .clusterInternet(true)
                .clusterDeployType("MANAGED_CLUSTER")
                .workerConfigs(KubernetesClusterWorkerConfigArgs.builder()
                    .count(1)
                    .availabilityZone(availabilityZone)
                    .instanceType(defaultInstanceType)
                    .systemDiskType("CLOUD_SSD")
                    .systemDiskSize(60)
                    .internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
                    .internetMaxBandwidthOut(100)
                    .publicIpAssigned(true)
                    .subnetId(subnet)
                    .dataDisks(KubernetesClusterWorkerConfigDataDiskArgs.builder()
                        .diskType("CLOUD_PREMIUM")
                        .diskSize(50)
                        .build())
                    .enhancedSecurityService(false)
                    .enhancedMonitorService(false)
                    .userData("dGVzdA==")
                    .keyIds("skey-11112222")
                    .build())
                .nodePoolGlobalConfigs(KubernetesClusterNodePoolGlobalConfigArgs.builder()
                    .isScaleInEnabled(true)
                    .expander("random")
                    .ignoreDaemonSetsUtilization(true)
                    .maxConcurrentScaleIn(5)
                    .scaleInDelay(15)
                    .scaleInUnneededTime(15)
                    .scaleInUtilizationThreshold(30)
                    .skipNodesWithLocalStorage(false)
                    .skipNodesWithSystemPods(true)
                    .build())
                .labels(Map.ofEntries(
                    Map.entry("test1", "test1"),
                    Map.entry("test2", "test2")
                ))
                .build());
    
        }
    }
    
    configuration:
      availabilityZone:
        type: string
        default: ap-guangzhou-3
      vpc:
        type: string
        default: vpc-dk8zmwuf
      subnet:
        type: string
        default: subnet-pqfek0t8
      defaultInstanceType:
        type: string
        default: SA1.LARGE8
    resources:
      testNodePoolGlobalConfig:
        type: tencentcloud:KubernetesCluster
        properties:
          vpcId: ${vpc}
          clusterCidr: 10.1.0.0/16
          clusterMaxPodNum: 32
          clusterName: test
          clusterDesc: test cluster desc
          clusterMaxServiceNum: 32
          clusterInternet: true
          # managed_cluster_internet_security_policies = ["3.3.3.3", "1.1.1.1"]
          clusterDeployType: MANAGED_CLUSTER
          workerConfigs:
            - count: 1
              availabilityZone: ${availabilityZone}
              instanceType: ${defaultInstanceType}
              systemDiskType: CLOUD_SSD
              systemDiskSize: 60
              internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
              internetMaxBandwidthOut: 100
              publicIpAssigned: true
              subnetId: ${subnet}
              dataDisks:
                - diskType: CLOUD_PREMIUM
                  diskSize: 50
              enhancedSecurityService: false
              enhancedMonitorService: false
              userData: dGVzdA==
              keyIds: skey-11112222
          nodePoolGlobalConfigs:
            - isScaleInEnabled: true
              expander: random
              ignoreDaemonSetsUtilization: true
              maxConcurrentScaleIn: 5
              scaleInDelay: 15
              scaleInUnneededTime: 15
              scaleInUtilizationThreshold: 30
              skipNodesWithLocalStorage: false
              skipNodesWithSystemPods: true
          labels:
            test1: test1
            test2: test2
    

    Using VPC-CNI network type

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const availabilityZone = config.get("availabilityZone") || "ap-guangzhou-1";
    const vpc = config.get("vpc") || "vpc-r1m1fyx5";
    const defaultInstanceType = config.get("defaultInstanceType") || "SA2.SMALL2";
    const managedCluster = new tencentcloud.KubernetesCluster("managedCluster", {
        vpcId: vpc,
        clusterMaxPodNum: 32,
        clusterName: "test",
        clusterDesc: "test cluster desc",
        clusterMaxServiceNum: 256,
        clusterInternet: true,
        clusterDeployType: "MANAGED_CLUSTER",
        networkType: "VPC-CNI",
        eniSubnetIds: ["subnet-bk1etlyu"],
        serviceCidr: "10.1.0.0/24",
        workerConfigs: [{
            count: 1,
            availabilityZone: availabilityZone,
            instanceType: defaultInstanceType,
            systemDiskType: "CLOUD_PREMIUM",
            systemDiskSize: 60,
            internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
            internetMaxBandwidthOut: 100,
            publicIpAssigned: true,
            subnetId: "subnet-t5dv27rs",
            dataDisks: [{
                diskType: "CLOUD_PREMIUM",
                diskSize: 50,
            }],
            enhancedSecurityService: false,
            enhancedMonitorService: false,
            userData: "dGVzdA==",
            keyIds: "skey-11112222",
        }],
        labels: {
            test1: "test1",
            test2: "test2",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    availability_zone = config.get("availabilityZone")
    if availability_zone is None:
        availability_zone = "ap-guangzhou-1"
    vpc = config.get("vpc")
    if vpc is None:
        vpc = "vpc-r1m1fyx5"
    default_instance_type = config.get("defaultInstanceType")
    if default_instance_type is None:
        default_instance_type = "SA2.SMALL2"
    managed_cluster = tencentcloud.KubernetesCluster("managedCluster",
        vpc_id=vpc,
        cluster_max_pod_num=32,
        cluster_name="test",
        cluster_desc="test cluster desc",
        cluster_max_service_num=256,
        cluster_internet=True,
        cluster_deploy_type="MANAGED_CLUSTER",
        network_type="VPC-CNI",
        eni_subnet_ids=["subnet-bk1etlyu"],
        service_cidr="10.1.0.0/24",
        worker_configs=[{
            "count": 1,
            "availability_zone": availability_zone,
            "instance_type": default_instance_type,
            "system_disk_type": "CLOUD_PREMIUM",
            "system_disk_size": 60,
            "internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
            "internet_max_bandwidth_out": 100,
            "public_ip_assigned": True,
            "subnet_id": "subnet-t5dv27rs",
            "data_disks": [{
                "disk_type": "CLOUD_PREMIUM",
                "disk_size": 50,
            }],
            "enhanced_security_service": False,
            "enhanced_monitor_service": False,
            "user_data": "dGVzdA==",
            "key_ids": "skey-11112222",
        }],
        labels={
            "test1": "test1",
            "test2": "test2",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"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, "")
    		availabilityZone := "ap-guangzhou-1"
    		if param := cfg.Get("availabilityZone"); param != "" {
    			availabilityZone = param
    		}
    		vpc := "vpc-r1m1fyx5"
    		if param := cfg.Get("vpc"); param != "" {
    			vpc = param
    		}
    		defaultInstanceType := "SA2.SMALL2"
    		if param := cfg.Get("defaultInstanceType"); param != "" {
    			defaultInstanceType = param
    		}
    		_, err := tencentcloud.NewKubernetesCluster(ctx, "managedCluster", &tencentcloud.KubernetesClusterArgs{
    			VpcId:                pulumi.String(vpc),
    			ClusterMaxPodNum:     pulumi.Float64(32),
    			ClusterName:          pulumi.String("test"),
    			ClusterDesc:          pulumi.String("test cluster desc"),
    			ClusterMaxServiceNum: pulumi.Float64(256),
    			ClusterInternet:      pulumi.Bool(true),
    			ClusterDeployType:    pulumi.String("MANAGED_CLUSTER"),
    			NetworkType:          pulumi.String("VPC-CNI"),
    			EniSubnetIds: pulumi.StringArray{
    				pulumi.String("subnet-bk1etlyu"),
    			},
    			ServiceCidr: pulumi.String("10.1.0.0/24"),
    			WorkerConfigs: tencentcloud.KubernetesClusterWorkerConfigArray{
    				&tencentcloud.KubernetesClusterWorkerConfigArgs{
    					Count:                   pulumi.Float64(1),
    					AvailabilityZone:        pulumi.String(availabilityZone),
    					InstanceType:            pulumi.String(defaultInstanceType),
    					SystemDiskType:          pulumi.String("CLOUD_PREMIUM"),
    					SystemDiskSize:          pulumi.Float64(60),
    					InternetChargeType:      pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
    					InternetMaxBandwidthOut: pulumi.Float64(100),
    					PublicIpAssigned:        pulumi.Bool(true),
    					SubnetId:                pulumi.String("subnet-t5dv27rs"),
    					DataDisks: tencentcloud.KubernetesClusterWorkerConfigDataDiskArray{
    						&tencentcloud.KubernetesClusterWorkerConfigDataDiskArgs{
    							DiskType: pulumi.String("CLOUD_PREMIUM"),
    							DiskSize: pulumi.Float64(50),
    						},
    					},
    					EnhancedSecurityService: pulumi.Bool(false),
    					EnhancedMonitorService:  pulumi.Bool(false),
    					UserData:                pulumi.String("dGVzdA=="),
    					KeyIds:                  pulumi.StringArray("skey-11112222"),
    				},
    			},
    			Labels: pulumi.StringMap{
    				"test1": pulumi.String("test1"),
    				"test2": pulumi.String("test2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var availabilityZone = config.Get("availabilityZone") ?? "ap-guangzhou-1";
        var vpc = config.Get("vpc") ?? "vpc-r1m1fyx5";
        var defaultInstanceType = config.Get("defaultInstanceType") ?? "SA2.SMALL2";
        var managedCluster = new Tencentcloud.KubernetesCluster("managedCluster", new()
        {
            VpcId = vpc,
            ClusterMaxPodNum = 32,
            ClusterName = "test",
            ClusterDesc = "test cluster desc",
            ClusterMaxServiceNum = 256,
            ClusterInternet = true,
            ClusterDeployType = "MANAGED_CLUSTER",
            NetworkType = "VPC-CNI",
            EniSubnetIds = new[]
            {
                "subnet-bk1etlyu",
            },
            ServiceCidr = "10.1.0.0/24",
            WorkerConfigs = new[]
            {
                new Tencentcloud.Inputs.KubernetesClusterWorkerConfigArgs
                {
                    Count = 1,
                    AvailabilityZone = availabilityZone,
                    InstanceType = defaultInstanceType,
                    SystemDiskType = "CLOUD_PREMIUM",
                    SystemDiskSize = 60,
                    InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
                    InternetMaxBandwidthOut = 100,
                    PublicIpAssigned = true,
                    SubnetId = "subnet-t5dv27rs",
                    DataDisks = new[]
                    {
                        new Tencentcloud.Inputs.KubernetesClusterWorkerConfigDataDiskArgs
                        {
                            DiskType = "CLOUD_PREMIUM",
                            DiskSize = 50,
                        },
                    },
                    EnhancedSecurityService = false,
                    EnhancedMonitorService = false,
                    UserData = "dGVzdA==",
                    KeyIds = "skey-11112222",
                },
            },
            Labels = 
            {
                { "test1", "test1" },
                { "test2", "test2" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.KubernetesCluster;
    import com.pulumi.tencentcloud.KubernetesClusterArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterWorkerConfigArgs;
    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 availabilityZone = config.get("availabilityZone").orElse("ap-guangzhou-1");
            final var vpc = config.get("vpc").orElse("vpc-r1m1fyx5");
            final var defaultInstanceType = config.get("defaultInstanceType").orElse("SA2.SMALL2");
            var managedCluster = new KubernetesCluster("managedCluster", KubernetesClusterArgs.builder()
                .vpcId(vpc)
                .clusterMaxPodNum(32)
                .clusterName("test")
                .clusterDesc("test cluster desc")
                .clusterMaxServiceNum(256)
                .clusterInternet(true)
                .clusterDeployType("MANAGED_CLUSTER")
                .networkType("VPC-CNI")
                .eniSubnetIds("subnet-bk1etlyu")
                .serviceCidr("10.1.0.0/24")
                .workerConfigs(KubernetesClusterWorkerConfigArgs.builder()
                    .count(1)
                    .availabilityZone(availabilityZone)
                    .instanceType(defaultInstanceType)
                    .systemDiskType("CLOUD_PREMIUM")
                    .systemDiskSize(60)
                    .internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
                    .internetMaxBandwidthOut(100)
                    .publicIpAssigned(true)
                    .subnetId("subnet-t5dv27rs")
                    .dataDisks(KubernetesClusterWorkerConfigDataDiskArgs.builder()
                        .diskType("CLOUD_PREMIUM")
                        .diskSize(50)
                        .build())
                    .enhancedSecurityService(false)
                    .enhancedMonitorService(false)
                    .userData("dGVzdA==")
                    .keyIds("skey-11112222")
                    .build())
                .labels(Map.ofEntries(
                    Map.entry("test1", "test1"),
                    Map.entry("test2", "test2")
                ))
                .build());
    
        }
    }
    
    configuration:
      availabilityZone:
        type: string
        default: ap-guangzhou-1
      vpc:
        type: string
        default: vpc-r1m1fyx5
      defaultInstanceType:
        type: string
        default: SA2.SMALL2
    resources:
      managedCluster:
        type: tencentcloud:KubernetesCluster
        properties:
          vpcId: ${vpc}
          clusterMaxPodNum: 32
          clusterName: test
          clusterDesc: test cluster desc
          clusterMaxServiceNum: 256
          clusterInternet: true
          clusterDeployType: MANAGED_CLUSTER
          networkType: VPC-CNI
          eniSubnetIds:
            - subnet-bk1etlyu
          serviceCidr: 10.1.0.0/24
          workerConfigs:
            - count: 1
              availabilityZone: ${availabilityZone}
              instanceType: ${defaultInstanceType}
              systemDiskType: CLOUD_PREMIUM
              systemDiskSize: 60
              internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
              internetMaxBandwidthOut: 100
              publicIpAssigned: true
              subnetId: subnet-t5dv27rs
              dataDisks:
                - diskType: CLOUD_PREMIUM
                  diskSize: 50
              enhancedSecurityService: false
              enhancedMonitorService: false
              userData: dGVzdA==
              keyIds: skey-11112222
          labels:
            test1: test1
            test2: test2
    

    Using ops options

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const managedCluster = new tencentcloud.KubernetesCluster("managedCluster", {
        clusterAudit: {
            enabled: true,
            logSetId: "",
            topicId: "",
        },
        eventPersistence: {
            enabled: true,
            logSetId: "",
            topicId: "",
        },
        logAgent: {
            enabled: true,
            kubeletRootDir: "",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    managed_cluster = tencentcloud.KubernetesCluster("managedCluster",
        cluster_audit={
            "enabled": True,
            "log_set_id": "",
            "topic_id": "",
        },
        event_persistence={
            "enabled": True,
            "log_set_id": "",
            "topic_id": "",
        },
        log_agent={
            "enabled": True,
            "kubelet_root_dir": "",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewKubernetesCluster(ctx, "managedCluster", &tencentcloud.KubernetesClusterArgs{
    			ClusterAudit: &tencentcloud.KubernetesClusterClusterAuditArgs{
    				Enabled:  pulumi.Bool(true),
    				LogSetId: pulumi.String(""),
    				TopicId:  pulumi.String(""),
    			},
    			EventPersistence: &tencentcloud.KubernetesClusterEventPersistenceArgs{
    				Enabled:  pulumi.Bool(true),
    				LogSetId: pulumi.String(""),
    				TopicId:  pulumi.String(""),
    			},
    			LogAgent: &tencentcloud.KubernetesClusterLogAgentArgs{
    				Enabled:        pulumi.Bool(true),
    				KubeletRootDir: pulumi.String(""),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var managedCluster = new Tencentcloud.KubernetesCluster("managedCluster", new()
        {
            ClusterAudit = new Tencentcloud.Inputs.KubernetesClusterClusterAuditArgs
            {
                Enabled = true,
                LogSetId = "",
                TopicId = "",
            },
            EventPersistence = new Tencentcloud.Inputs.KubernetesClusterEventPersistenceArgs
            {
                Enabled = true,
                LogSetId = "",
                TopicId = "",
            },
            LogAgent = new Tencentcloud.Inputs.KubernetesClusterLogAgentArgs
            {
                Enabled = true,
                KubeletRootDir = "",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.KubernetesCluster;
    import com.pulumi.tencentcloud.KubernetesClusterArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterClusterAuditArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterEventPersistenceArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterLogAgentArgs;
    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) {
            var managedCluster = new KubernetesCluster("managedCluster", KubernetesClusterArgs.builder()
                .clusterAudit(KubernetesClusterClusterAuditArgs.builder()
                    .enabled(true)
                    .logSetId("")
                    .topicId("")
                    .build())
                .eventPersistence(KubernetesClusterEventPersistenceArgs.builder()
                    .enabled(true)
                    .logSetId("")
                    .topicId("")
                    .build())
                .logAgent(KubernetesClusterLogAgentArgs.builder()
                    .enabled(true)
                    .kubeletRootDir("")
                    .build())
                .build());
    
        }
    }
    
    resources:
      managedCluster:
        type: tencentcloud:KubernetesCluster
        properties:
          clusterAudit:
            enabled: true
            logSetId: ""
            topicId: ""
          eventPersistence:
            enabled: true
            logSetId: ""
            topicId: ""
          logAgent:
            enabled: true
            kubeletRootDir: ""
    

    Create a CDC scenario cluster

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.KubernetesCluster;
    import com.pulumi.tencentcloud.KubernetesClusterArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterExistInstanceArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterExistInstanceInstancesParaArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterExistInstanceInstancesParaMasterConfigArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterExistInstanceInstancesParaMasterConfigDataDiskArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterExistInstanceInstancesParaMasterConfigExtraArgs;
    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) {
            var cdcCluster = new KubernetesCluster("cdcCluster", KubernetesClusterArgs.builder()
                .cdcId("cluster-262n63e8")
                .clusterCidr("192.168.0.0/16")
                .clusterDeployType("INDEPENDENT_CLUSTER")
                .clusterDesc("test cluster desc")
                .clusterLevel("L20")
                .clusterMaxPodNum(64)
                .clusterMaxServiceNum(1024)
                .clusterName("test-cdc")
                .clusterOs("tlinux3.1x86_64")
                .clusterVersion("1.30.0")
                .containerRuntime("containerd")
                .existInstances(KubernetesClusterExistInstanceArgs.builder()
                    .instancesPara(KubernetesClusterExistInstanceInstancesParaArgs.builder()
                        .enhancedMonitorService(true)
                        .enhancedSecurityService(true)
                        .instanceIds(                    
                            "ins-mam0c7lw",
                            "ins-quvwayve",
                            "ins-qbffk8iw")
                        .masterConfig(KubernetesClusterExistInstanceInstancesParaMasterConfigArgs.builder()
                            .dataDisk(KubernetesClusterExistInstanceInstancesParaMasterConfigDataDiskArgs.builder()
                                .autoFormatAndMount(true)
                                .diskPartition("/dev/vdb")
                                .fileSystem("ext4")
                                .mountTarget("/var/data")
                                .build())
                            .dockerGraphPath("/var/lib/containerd")
                            .extraArgs(KubernetesClusterExistInstanceInstancesParaMasterConfigExtraArgs.builder()
                                .kubelet("root-dir=/root")
                                .build())
                            .labels(KubernetesClusterExistInstanceInstancesParaMasterConfigLabelArgs.builder()
                                .name("key")
                                .value("value")
                                .build())
                            .mountTarget("/var/data")
                            .taints(KubernetesClusterExistInstanceInstancesParaMasterConfigTaintArgs.builder()
                                .effect("NoSchedule")
                                .key("key")
                                .value("value")
                                .build())
                            .unschedulable(0)
                            .build())
                        .password("Password@123")
                        .securityGroupIds("sg-hjs685q9")
                        .build())
                    .nodeRole("MASTER_ETCD")
                    .build())
                .instanceDeleteMode("retain")
                .preStartUserScript("aXB0YWJsZXMgLUEgSU5QVVQgLXAgdGNwIC1zIDE2OS4yNTQuMC4wLzE5IC0tdGNwLWZsYWdzIFNZTixSU1QgU1lOIC1qIFRDUE1TUyAtLXNldC1tc3MgMTE2MAppcHRhYmxlcyAtQSBPVVRQVVQgLXAgdGNwIC1kIDE2OS4yNTQuMC4wLzE5IC0tdGNwLWZsYWdzIFNZTixSU1QgU1lOIC1qIFRDUE1TUyAtLXNldC1tc3MgMTE2MAoKZWNobyAnCmlwdGFibGVzIC1BIElOUFVUIC1wIHRjcCAtcyAxNjkuMjU0LjAuMC8xOSAtLXRjcC1mbGFncyBTWU4sUlNUIFNZTiAtaiBUQ1BNU1MgLS1zZXQtbXNzIDExNjAKaXB0YWJsZXMgLUEgT1VUUFVUIC1wIHRjcCAtZCAxNjkuMjU0LjAuMC8xOSAtLXRjcC1mbGFncyBTWU4sUlNUIFNZTiAtaiBUQ1BNU1MgLS1zZXQtbXNzIDExNjAKJyA+PiAvZXRjL3JjLmQvcmMubG9jYWw=")
                .runtimeVersion("1.6.9")
                .vpcId("vpc-0m6078eb")
                .build());
    
        }
    }
    
    resources:
      cdcCluster:
        type: tencentcloud:KubernetesCluster
        properties:
          cdcId: cluster-262n63e8
          clusterCidr: 192.168.0.0/16
          clusterDeployType: INDEPENDENT_CLUSTER
          clusterDesc: test cluster desc
          clusterLevel: L20
          clusterMaxPodNum: 64
          clusterMaxServiceNum: 1024
          clusterName: test-cdc
          clusterOs: tlinux3.1x86_64
          clusterVersion: 1.30.0
          containerRuntime: containerd
          existInstances:
            - instancesPara:
                enhancedMonitorService: true
                enhancedSecurityService: true
                instanceIds:
                  - ins-mam0c7lw
                  - ins-quvwayve
                  - ins-qbffk8iw
                masterConfig:
                  dataDisk:
                    autoFormatAndMount: true
                    diskPartition: /dev/vdb
                    fileSystem: ext4
                    mountTarget: /var/data
                  dockerGraphPath: /var/lib/containerd
                  extraArgs:
                    kubelet:
                      - root-dir=/root
                  labels:
                    - name: key
                      value: value
                  mountTarget: /var/data
                  taints:
                    - effect: NoSchedule
                      key: key
                      value: value
                  unschedulable: 0
                password: Password@123
                securityGroupIds:
                  - sg-hjs685q9
              nodeRole: MASTER_ETCD
          instanceDeleteMode: retain
          preStartUserScript: aXB0YWJsZXMgLUEgSU5QVVQgLXAgdGNwIC1zIDE2OS4yNTQuMC4wLzE5IC0tdGNwLWZsYWdzIFNZTixSU1QgU1lOIC1qIFRDUE1TUyAtLXNldC1tc3MgMTE2MAppcHRhYmxlcyAtQSBPVVRQVVQgLXAgdGNwIC1kIDE2OS4yNTQuMC4wLzE5IC0tdGNwLWZsYWdzIFNZTixSU1QgU1lOIC1qIFRDUE1TUyAtLXNldC1tc3MgMTE2MAoKZWNobyAnCmlwdGFibGVzIC1BIElOUFVUIC1wIHRjcCAtcyAxNjkuMjU0LjAuMC8xOSAtLXRjcC1mbGFncyBTWU4sUlNUIFNZTiAtaiBUQ1BNU1MgLS1zZXQtbXNzIDExNjAKaXB0YWJsZXMgLUEgT1VUUFVUIC1wIHRjcCAtZCAxNjkuMjU0LjAuMC8xOSAtLXRjcC1mbGFncyBTWU4sUlNUIFNZTiAtaiBUQ1BNU1MgLS1zZXQtbXNzIDExNjAKJyA+PiAvZXRjL3JjLmQvcmMubG9jYWw=
          runtimeVersion: 1.6.9
          vpcId: vpc-0m6078eb
    

    Use delete options to delete CBS when deleting the Cluster

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.KubernetesCluster("example", {
        vpcId: local.first_vpc_id,
        clusterCidr: _var.example_cluster_cidr,
        clusterMaxPodNum: 32,
        clusterName: "example",
        clusterDesc: "example for tke cluster",
        clusterMaxServiceNum: 32,
        clusterLevel: "L50",
        autoUpgradeClusterLevel: true,
        clusterInternet: false,
        clusterVersion: "1.30.0",
        clusterOs: "tlinux2.2(tkernel3)x86_64",
        clusterDeployType: "MANAGED_CLUSTER",
        containerRuntime: "containerd",
        dockerGraphPath: "/var/lib/containerd",
        tags: {
            demo: "test",
        },
        workerConfigs: [{
            count: 1,
            availabilityZone: _var.availability_zone_first,
            instanceType: "SA2.MEDIUM2",
            systemDiskType: "CLOUD_SSD",
            systemDiskSize: 60,
            internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
            internetMaxBandwidthOut: 100,
            publicIpAssigned: true,
            subnetId: local.first_subnet_id,
            dataDisks: [{
                diskType: "CLOUD_PREMIUM",
                diskSize: 50,
            }],
            enhancedSecurityService: false,
            enhancedMonitorService: false,
            userData: "dGVzdA==",
            disasterRecoverGroupIds: [],
            securityGroupIds: [],
            keyIds: [],
            camRoleName: "CVM_QcsRole",
            password: "ZZXXccvv1212",
        }],
        resourceDeleteOptions: [{
            resourceType: "CBS",
            deleteMode: "terminate",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.KubernetesCluster("example",
        vpc_id=local["first_vpc_id"],
        cluster_cidr=var["example_cluster_cidr"],
        cluster_max_pod_num=32,
        cluster_name="example",
        cluster_desc="example for tke cluster",
        cluster_max_service_num=32,
        cluster_level="L50",
        auto_upgrade_cluster_level=True,
        cluster_internet=False,
        cluster_version="1.30.0",
        cluster_os="tlinux2.2(tkernel3)x86_64",
        cluster_deploy_type="MANAGED_CLUSTER",
        container_runtime="containerd",
        docker_graph_path="/var/lib/containerd",
        tags={
            "demo": "test",
        },
        worker_configs=[{
            "count": 1,
            "availability_zone": var["availability_zone_first"],
            "instance_type": "SA2.MEDIUM2",
            "system_disk_type": "CLOUD_SSD",
            "system_disk_size": 60,
            "internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
            "internet_max_bandwidth_out": 100,
            "public_ip_assigned": True,
            "subnet_id": local["first_subnet_id"],
            "data_disks": [{
                "disk_type": "CLOUD_PREMIUM",
                "disk_size": 50,
            }],
            "enhanced_security_service": False,
            "enhanced_monitor_service": False,
            "user_data": "dGVzdA==",
            "disaster_recover_group_ids": [],
            "security_group_ids": [],
            "key_ids": [],
            "cam_role_name": "CVM_QcsRole",
            "password": "ZZXXccvv1212",
        }],
        resource_delete_options=[{
            "resource_type": "CBS",
            "delete_mode": "terminate",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewKubernetesCluster(ctx, "example", &tencentcloud.KubernetesClusterArgs{
    			VpcId:                   pulumi.Any(local.First_vpc_id),
    			ClusterCidr:             pulumi.Any(_var.Example_cluster_cidr),
    			ClusterMaxPodNum:        pulumi.Float64(32),
    			ClusterName:             pulumi.String("example"),
    			ClusterDesc:             pulumi.String("example for tke cluster"),
    			ClusterMaxServiceNum:    pulumi.Float64(32),
    			ClusterLevel:            pulumi.String("L50"),
    			AutoUpgradeClusterLevel: pulumi.Bool(true),
    			ClusterInternet:         pulumi.Bool(false),
    			ClusterVersion:          pulumi.String("1.30.0"),
    			ClusterOs:               pulumi.String("tlinux2.2(tkernel3)x86_64"),
    			ClusterDeployType:       pulumi.String("MANAGED_CLUSTER"),
    			ContainerRuntime:        pulumi.String("containerd"),
    			DockerGraphPath:         pulumi.String("/var/lib/containerd"),
    			Tags: pulumi.StringMap{
    				"demo": pulumi.String("test"),
    			},
    			WorkerConfigs: tencentcloud.KubernetesClusterWorkerConfigArray{
    				&tencentcloud.KubernetesClusterWorkerConfigArgs{
    					Count:                   pulumi.Float64(1),
    					AvailabilityZone:        pulumi.Any(_var.Availability_zone_first),
    					InstanceType:            pulumi.String("SA2.MEDIUM2"),
    					SystemDiskType:          pulumi.String("CLOUD_SSD"),
    					SystemDiskSize:          pulumi.Float64(60),
    					InternetChargeType:      pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
    					InternetMaxBandwidthOut: pulumi.Float64(100),
    					PublicIpAssigned:        pulumi.Bool(true),
    					SubnetId:                pulumi.Any(local.First_subnet_id),
    					DataDisks: tencentcloud.KubernetesClusterWorkerConfigDataDiskArray{
    						&tencentcloud.KubernetesClusterWorkerConfigDataDiskArgs{
    							DiskType: pulumi.String("CLOUD_PREMIUM"),
    							DiskSize: pulumi.Float64(50),
    						},
    					},
    					EnhancedSecurityService: pulumi.Bool(false),
    					EnhancedMonitorService:  pulumi.Bool(false),
    					UserData:                pulumi.String("dGVzdA=="),
    					DisasterRecoverGroupIds: pulumi.StringArray{},
    					SecurityGroupIds:        pulumi.StringArray{},
    					KeyIds:                  pulumi.StringArray{},
    					CamRoleName:             pulumi.String("CVM_QcsRole"),
    					Password:                pulumi.String("ZZXXccvv1212"),
    				},
    			},
    			ResourceDeleteOptions: tencentcloud.KubernetesClusterResourceDeleteOptionArray{
    				&tencentcloud.KubernetesClusterResourceDeleteOptionArgs{
    					ResourceType: pulumi.String("CBS"),
    					DeleteMode:   pulumi.String("terminate"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.KubernetesCluster("example", new()
        {
            VpcId = local.First_vpc_id,
            ClusterCidr = @var.Example_cluster_cidr,
            ClusterMaxPodNum = 32,
            ClusterName = "example",
            ClusterDesc = "example for tke cluster",
            ClusterMaxServiceNum = 32,
            ClusterLevel = "L50",
            AutoUpgradeClusterLevel = true,
            ClusterInternet = false,
            ClusterVersion = "1.30.0",
            ClusterOs = "tlinux2.2(tkernel3)x86_64",
            ClusterDeployType = "MANAGED_CLUSTER",
            ContainerRuntime = "containerd",
            DockerGraphPath = "/var/lib/containerd",
            Tags = 
            {
                { "demo", "test" },
            },
            WorkerConfigs = new[]
            {
                new Tencentcloud.Inputs.KubernetesClusterWorkerConfigArgs
                {
                    Count = 1,
                    AvailabilityZone = @var.Availability_zone_first,
                    InstanceType = "SA2.MEDIUM2",
                    SystemDiskType = "CLOUD_SSD",
                    SystemDiskSize = 60,
                    InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
                    InternetMaxBandwidthOut = 100,
                    PublicIpAssigned = true,
                    SubnetId = local.First_subnet_id,
                    DataDisks = new[]
                    {
                        new Tencentcloud.Inputs.KubernetesClusterWorkerConfigDataDiskArgs
                        {
                            DiskType = "CLOUD_PREMIUM",
                            DiskSize = 50,
                        },
                    },
                    EnhancedSecurityService = false,
                    EnhancedMonitorService = false,
                    UserData = "dGVzdA==",
                    DisasterRecoverGroupIds = new() { },
                    SecurityGroupIds = new() { },
                    KeyIds = new() { },
                    CamRoleName = "CVM_QcsRole",
                    Password = "ZZXXccvv1212",
                },
            },
            ResourceDeleteOptions = new[]
            {
                new Tencentcloud.Inputs.KubernetesClusterResourceDeleteOptionArgs
                {
                    ResourceType = "CBS",
                    DeleteMode = "terminate",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.KubernetesCluster;
    import com.pulumi.tencentcloud.KubernetesClusterArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterWorkerConfigArgs;
    import com.pulumi.tencentcloud.inputs.KubernetesClusterResourceDeleteOptionArgs;
    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) {
            var example = new KubernetesCluster("example", KubernetesClusterArgs.builder()
                .vpcId(local.first_vpc_id())
                .clusterCidr(var_.example_cluster_cidr())
                .clusterMaxPodNum(32)
                .clusterName("example")
                .clusterDesc("example for tke cluster")
                .clusterMaxServiceNum(32)
                .clusterLevel("L50")
                .autoUpgradeClusterLevel(true)
                .clusterInternet(false)
                .clusterVersion("1.30.0")
                .clusterOs("tlinux2.2(tkernel3)x86_64")
                .clusterDeployType("MANAGED_CLUSTER")
                .containerRuntime("containerd")
                .dockerGraphPath("/var/lib/containerd")
                .tags(Map.of("demo", "test"))
                .workerConfigs(KubernetesClusterWorkerConfigArgs.builder()
                    .count(1)
                    .availabilityZone(var_.availability_zone_first())
                    .instanceType("SA2.MEDIUM2")
                    .systemDiskType("CLOUD_SSD")
                    .systemDiskSize(60)
                    .internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
                    .internetMaxBandwidthOut(100)
                    .publicIpAssigned(true)
                    .subnetId(local.first_subnet_id())
                    .dataDisks(KubernetesClusterWorkerConfigDataDiskArgs.builder()
                        .diskType("CLOUD_PREMIUM")
                        .diskSize(50)
                        .build())
                    .enhancedSecurityService(false)
                    .enhancedMonitorService(false)
                    .userData("dGVzdA==")
                    .disasterRecoverGroupIds()
                    .securityGroupIds()
                    .keyIds()
                    .camRoleName("CVM_QcsRole")
                    .password("ZZXXccvv1212")
                    .build())
                .resourceDeleteOptions(KubernetesClusterResourceDeleteOptionArgs.builder()
                    .resourceType("CBS")
                    .deleteMode("terminate")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:KubernetesCluster
        properties:
          vpcId: ${local.first_vpc_id}
          clusterCidr: ${var.example_cluster_cidr}
          clusterMaxPodNum: 32
          clusterName: example
          clusterDesc: example for tke cluster
          clusterMaxServiceNum: 32
          clusterLevel: L50
          autoUpgradeClusterLevel: true
          clusterInternet: false
          # (can be ignored) open it after the nodes added
          clusterVersion: 1.30.0
          clusterOs: tlinux2.2(tkernel3)x86_64
          clusterDeployType: MANAGED_CLUSTER
          containerRuntime: containerd
          dockerGraphPath: /var/lib/containerd
          # without any worker config
          tags:
            demo: test
          workerConfigs:
            - count: 1
              availabilityZone: ${var.availability_zone_first}
              instanceType: SA2.MEDIUM2
              systemDiskType: CLOUD_SSD
              systemDiskSize: 60
              internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
              internetMaxBandwidthOut: 100
              publicIpAssigned: true
              subnetId: ${local.first_subnet_id}
              dataDisks:
                - diskType: CLOUD_PREMIUM
                  diskSize: 50
              enhancedSecurityService: false
              enhancedMonitorService: false
              userData: dGVzdA==
              disasterRecoverGroupIds: []
              securityGroupIds: []
              keyIds: []
              camRoleName: CVM_QcsRole
              password: ZZXXccvv1212
          resourceDeleteOptions:
            - resourceType: CBS
              deleteMode: terminate
    

    Create KubernetesCluster Resource

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

    Constructor syntax

    new KubernetesCluster(name: string, args: KubernetesClusterArgs, opts?: CustomResourceOptions);
    @overload
    def KubernetesCluster(resource_name: str,
                          args: KubernetesClusterArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def KubernetesCluster(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          vpc_id: Optional[str] = None,
                          acquire_cluster_admin_role: Optional[bool] = None,
                          auth_options: Optional[KubernetesClusterAuthOptionsArgs] = None,
                          auto_upgrade_cluster_level: Optional[bool] = None,
                          base_pod_num: Optional[float] = None,
                          cdc_id: Optional[str] = None,
                          claim_expired_seconds: Optional[float] = None,
                          cluster_audit: Optional[KubernetesClusterClusterAuditArgs] = None,
                          cluster_cidr: Optional[str] = None,
                          cluster_deploy_type: Optional[str] = None,
                          cluster_desc: Optional[str] = None,
                          cluster_extra_args: Optional[KubernetesClusterClusterExtraArgsArgs] = None,
                          cluster_internet: Optional[bool] = None,
                          cluster_internet_domain: Optional[str] = None,
                          cluster_internet_security_group: Optional[str] = None,
                          cluster_intranet: Optional[bool] = None,
                          cluster_intranet_domain: Optional[str] = None,
                          cluster_intranet_subnet_id: Optional[str] = None,
                          cluster_ipvs: Optional[bool] = None,
                          cluster_level: Optional[str] = None,
                          cluster_max_pod_num: Optional[float] = None,
                          cluster_max_service_num: Optional[float] = None,
                          cluster_name: Optional[str] = None,
                          cluster_os: Optional[str] = None,
                          cluster_os_type: Optional[str] = None,
                          cluster_subnet_id: Optional[str] = None,
                          cluster_version: Optional[str] = None,
                          container_runtime: Optional[str] = None,
                          deletion_protection: Optional[bool] = None,
                          docker_graph_path: Optional[str] = None,
                          enable_customized_pod_cidr: Optional[bool] = None,
                          eni_subnet_ids: Optional[Sequence[str]] = None,
                          event_persistence: Optional[KubernetesClusterEventPersistenceArgs] = None,
                          exist_instances: Optional[Sequence[KubernetesClusterExistInstanceArgs]] = None,
                          extension_addons: Optional[Sequence[KubernetesClusterExtensionAddonArgs]] = None,
                          extra_args: Optional[Sequence[str]] = None,
                          globe_desired_pod_num: Optional[float] = None,
                          ignore_cluster_cidr_conflict: Optional[bool] = None,
                          ignore_service_cidr_conflict: Optional[bool] = None,
                          instance_delete_mode: Optional[str] = None,
                          is_non_static_ip_mode: Optional[bool] = None,
                          kube_proxy_mode: Optional[str] = None,
                          kubernetes_cluster_id: Optional[str] = None,
                          labels: Optional[Mapping[str, str]] = None,
                          log_agent: Optional[KubernetesClusterLogAgentArgs] = None,
                          managed_cluster_internet_security_policies: Optional[Sequence[str]] = None,
                          master_configs: Optional[Sequence[KubernetesClusterMasterConfigArgs]] = None,
                          mount_target: Optional[str] = None,
                          network_type: Optional[str] = None,
                          node_name_type: Optional[str] = None,
                          node_pool_global_configs: Optional[Sequence[KubernetesClusterNodePoolGlobalConfigArgs]] = None,
                          pre_start_user_script: Optional[str] = None,
                          project_id: Optional[float] = None,
                          resource_delete_options: Optional[Sequence[KubernetesClusterResourceDeleteOptionArgs]] = None,
                          runtime_version: Optional[str] = None,
                          service_cidr: Optional[str] = None,
                          tags: Optional[Mapping[str, str]] = None,
                          unschedulable: Optional[float] = None,
                          upgrade_instances_follow_cluster: Optional[bool] = None,
                          vpc_cni_type: Optional[str] = None,
                          worker_configs: Optional[Sequence[KubernetesClusterWorkerConfigArgs]] = None)
    func NewKubernetesCluster(ctx *Context, name string, args KubernetesClusterArgs, opts ...ResourceOption) (*KubernetesCluster, error)
    public KubernetesCluster(string name, KubernetesClusterArgs args, CustomResourceOptions? opts = null)
    public KubernetesCluster(String name, KubernetesClusterArgs args)
    public KubernetesCluster(String name, KubernetesClusterArgs args, CustomResourceOptions options)
    
    type: tencentcloud:KubernetesCluster
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    KubernetesCluster Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The KubernetesCluster resource accepts the following input properties:

    VpcId string
    Vpc Id of the cluster.
    AcquireClusterAdminRole bool
    If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to false after acquired.
    AuthOptions KubernetesClusterAuthOptions
    Specify cluster authentication configuration. Only available for managed cluster and cluster_version >= 1.20.
    AutoUpgradeClusterLevel bool
    Whether the cluster level auto upgraded, valid for managed cluster.
    BasePodNum double
    The number of basic pods. valid when enable_customized_pod_cidr=true.
    CdcId string
    CDC ID.
    ClaimExpiredSeconds double
    Claim expired seconds to recycle ENI. This field can only set when field network_type is 'VPC-CNI'. claim_expired_seconds must greater or equal than 300 and less than 15768000.
    ClusterAudit KubernetesClusterClusterAudit
    Specify Cluster Audit config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    ClusterCidr string
    A network address block of the cluster. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    ClusterDeployType string
    Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
    ClusterDesc string
    Description of the cluster.
    ClusterExtraArgs KubernetesClusterClusterExtraArgs
    Customized parameters for master component,such as kube-apiserver, kube-controller-manager, kube-scheduler.
    ClusterInternet bool
    Open internet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    ClusterInternetDomain string
    Domain name for cluster Kube-apiserver internet access. Be careful if you modify value of this parameter, the cluster_external_endpoint value may be changed automatically too.
    ClusterInternetSecurityGroup string
    Specify security group, NOTE: This argument must not be empty if cluster internet enabled.
    ClusterIntranet bool
    Open intranet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    ClusterIntranetDomain string
    Domain name for cluster Kube-apiserver intranet access. Be careful if you modify value of this parameter, the pgw_endpoint value may be changed automatically too.
    ClusterIntranetSubnetId string
    Subnet id who can access this independent cluster, this field must and can only set when cluster_intranet is true. cluster_intranet_subnet_id can not modify once be set.
    ClusterIpvs bool
    Indicates whether ipvs is enabled. Default is true. False means iptables is enabled.
    ClusterLevel string
    Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevels to query available levels. Available value examples L5, L20, L50, L100, etc.
    ClusterMaxPodNum double
    The maximum number of Pods per node in the cluster. Default is 256. The minimum value is 4. When its power unequal to 2, it will round upward to the closest power of 2.
    ClusterMaxServiceNum double
    The maximum number of services in the cluster. Default is 256. The range is from 32 to 32768. When its power unequal to 2, it will round upward to the closest power of 2.
    ClusterName string
    Name of the cluster.
    ClusterOs string
    Cluster operating system, supports setting public images (the field passes the corresponding image Name) and custom images (the field passes the corresponding image ID). For details, please refer to: https://cloud.tencent.com/document/product/457/68289.
    ClusterOsType string
    Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
    ClusterSubnetId string
    Subnet ID of the cluster, such as: subnet-b3p7d7q5.
    ClusterVersion string
    Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersions to get the upgradable cluster version.
    ContainerRuntime string
    Runtime type of the cluster, the available values include: 'docker' and 'containerd'.The Kubernetes v1.24 has removed dockershim, so please use containerd in v1.24 or higher.Default is 'docker'.
    DeletionProtection bool
    Indicates whether cluster deletion protection is enabled. Default is false.
    DockerGraphPath string
    Docker graph path. Default is /var/lib/docker.
    EnableCustomizedPodCidr bool
    Whether to enable the custom mode of node podCIDR size. Default is false.
    EniSubnetIds List<string>
    Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_type is 'VPC-CNI'. eni_subnet_ids can not empty once be set.
    EventPersistence KubernetesClusterEventPersistence
    Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    ExistInstances List<KubernetesClusterExistInstance>
    create tke cluster by existed instances.
    ExtensionAddons List<KubernetesClusterExtensionAddon>
    Information of the add-on to be installed.
    ExtraArgs List<string>
    Custom parameter information related to the node.
    GlobeDesiredPodNum double
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
    IgnoreClusterCidrConflict bool
    Indicates whether to ignore the cluster cidr conflict error. Default is false.
    IgnoreServiceCidrConflict bool
    Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNI mode.
    InstanceDeleteMode string
    The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
    IsNonStaticIpMode bool
    Indicates whether non-static ip mode is enabled. Default is false.
    KubeProxyMode string
    Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
    KubernetesClusterId string
    ID of the resource.
    Labels Dictionary<string, string>
    Labels of tke cluster nodes.
    LogAgent KubernetesClusterLogAgent
    Specify cluster log agent config.
    ManagedClusterInternetSecurityPolicies List<string>
    this argument was deprecated, use cluster_internet_security_group instead. Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field cluster_deploy_type is 'MANAGED_CLUSTER' and cluster_internet is true. managed_cluster_internet_security_policies can not delete or empty once be set.

    Deprecated: Deprecated

    MasterConfigs List<KubernetesClusterMasterConfig>
    Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
    MountTarget string
    Mount target. Default is not mounting.
    NetworkType string
    Cluster network type, the available values include: 'GR' and 'VPC-CNI' and 'CiliumOverlay'. Default is GR.
    NodeNameType string
    Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
    NodePoolGlobalConfigs List<KubernetesClusterNodePoolGlobalConfig>
    Global config effective for all node pools.
    PreStartUserScript string
    Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
    ProjectId double
    Project ID, default value is 0.
    ResourceDeleteOptions List<KubernetesClusterResourceDeleteOption>
    The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
    RuntimeVersion string
    Container Runtime version.
    ServiceCidr string
    A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    Tags Dictionary<string, string>
    The tags of the cluster.
    Unschedulable double
    Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
    UpgradeInstancesFollowCluster bool
    Indicates whether upgrade all instances when cluster_version change. Default is false.
    VpcCniType string
    Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-eni for shared network card multi-IP mode and tke-direct-eni for independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, both eni_subnet_ids and vpc_cni_type must be set to empty.
    WorkerConfigs List<KubernetesClusterWorkerConfig>
    Deploy the machine configuration information of the 'WORKER' service, and create <=20 units for common users. The other 'WORK' service are added by 'tencentcloud_kubernetes_scale_worker'.
    VpcId string
    Vpc Id of the cluster.
    AcquireClusterAdminRole bool
    If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to false after acquired.
    AuthOptions KubernetesClusterAuthOptionsArgs
    Specify cluster authentication configuration. Only available for managed cluster and cluster_version >= 1.20.
    AutoUpgradeClusterLevel bool
    Whether the cluster level auto upgraded, valid for managed cluster.
    BasePodNum float64
    The number of basic pods. valid when enable_customized_pod_cidr=true.
    CdcId string
    CDC ID.
    ClaimExpiredSeconds float64
    Claim expired seconds to recycle ENI. This field can only set when field network_type is 'VPC-CNI'. claim_expired_seconds must greater or equal than 300 and less than 15768000.
    ClusterAudit KubernetesClusterClusterAuditArgs
    Specify Cluster Audit config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    ClusterCidr string
    A network address block of the cluster. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    ClusterDeployType string
    Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
    ClusterDesc string
    Description of the cluster.
    ClusterExtraArgs KubernetesClusterClusterExtraArgsArgs
    Customized parameters for master component,such as kube-apiserver, kube-controller-manager, kube-scheduler.
    ClusterInternet bool
    Open internet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    ClusterInternetDomain string
    Domain name for cluster Kube-apiserver internet access. Be careful if you modify value of this parameter, the cluster_external_endpoint value may be changed automatically too.
    ClusterInternetSecurityGroup string
    Specify security group, NOTE: This argument must not be empty if cluster internet enabled.
    ClusterIntranet bool
    Open intranet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    ClusterIntranetDomain string
    Domain name for cluster Kube-apiserver intranet access. Be careful if you modify value of this parameter, the pgw_endpoint value may be changed automatically too.
    ClusterIntranetSubnetId string
    Subnet id who can access this independent cluster, this field must and can only set when cluster_intranet is true. cluster_intranet_subnet_id can not modify once be set.
    ClusterIpvs bool
    Indicates whether ipvs is enabled. Default is true. False means iptables is enabled.
    ClusterLevel string
    Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevels to query available levels. Available value examples L5, L20, L50, L100, etc.
    ClusterMaxPodNum float64
    The maximum number of Pods per node in the cluster. Default is 256. The minimum value is 4. When its power unequal to 2, it will round upward to the closest power of 2.
    ClusterMaxServiceNum float64
    The maximum number of services in the cluster. Default is 256. The range is from 32 to 32768. When its power unequal to 2, it will round upward to the closest power of 2.
    ClusterName string
    Name of the cluster.
    ClusterOs string
    Cluster operating system, supports setting public images (the field passes the corresponding image Name) and custom images (the field passes the corresponding image ID). For details, please refer to: https://cloud.tencent.com/document/product/457/68289.
    ClusterOsType string
    Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
    ClusterSubnetId string
    Subnet ID of the cluster, such as: subnet-b3p7d7q5.
    ClusterVersion string
    Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersions to get the upgradable cluster version.
    ContainerRuntime string
    Runtime type of the cluster, the available values include: 'docker' and 'containerd'.The Kubernetes v1.24 has removed dockershim, so please use containerd in v1.24 or higher.Default is 'docker'.
    DeletionProtection bool
    Indicates whether cluster deletion protection is enabled. Default is false.
    DockerGraphPath string
    Docker graph path. Default is /var/lib/docker.
    EnableCustomizedPodCidr bool
    Whether to enable the custom mode of node podCIDR size. Default is false.
    EniSubnetIds []string
    Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_type is 'VPC-CNI'. eni_subnet_ids can not empty once be set.
    EventPersistence KubernetesClusterEventPersistenceArgs
    Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    ExistInstances []KubernetesClusterExistInstanceArgs
    create tke cluster by existed instances.
    ExtensionAddons []KubernetesClusterExtensionAddonArgs
    Information of the add-on to be installed.
    ExtraArgs []string
    Custom parameter information related to the node.
    GlobeDesiredPodNum float64
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
    IgnoreClusterCidrConflict bool
    Indicates whether to ignore the cluster cidr conflict error. Default is false.
    IgnoreServiceCidrConflict bool
    Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNI mode.
    InstanceDeleteMode string
    The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
    IsNonStaticIpMode bool
    Indicates whether non-static ip mode is enabled. Default is false.
    KubeProxyMode string
    Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
    KubernetesClusterId string
    ID of the resource.
    Labels map[string]string
    Labels of tke cluster nodes.
    LogAgent KubernetesClusterLogAgentArgs
    Specify cluster log agent config.
    ManagedClusterInternetSecurityPolicies []string
    this argument was deprecated, use cluster_internet_security_group instead. Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field cluster_deploy_type is 'MANAGED_CLUSTER' and cluster_internet is true. managed_cluster_internet_security_policies can not delete or empty once be set.

    Deprecated: Deprecated

    MasterConfigs []KubernetesClusterMasterConfigArgs
    Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
    MountTarget string
    Mount target. Default is not mounting.
    NetworkType string
    Cluster network type, the available values include: 'GR' and 'VPC-CNI' and 'CiliumOverlay'. Default is GR.
    NodeNameType string
    Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
    NodePoolGlobalConfigs []KubernetesClusterNodePoolGlobalConfigArgs
    Global config effective for all node pools.
    PreStartUserScript string
    Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
    ProjectId float64
    Project ID, default value is 0.
    ResourceDeleteOptions []KubernetesClusterResourceDeleteOptionArgs
    The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
    RuntimeVersion string
    Container Runtime version.
    ServiceCidr string
    A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    Tags map[string]string
    The tags of the cluster.
    Unschedulable float64
    Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
    UpgradeInstancesFollowCluster bool
    Indicates whether upgrade all instances when cluster_version change. Default is false.
    VpcCniType string
    Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-eni for shared network card multi-IP mode and tke-direct-eni for independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, both eni_subnet_ids and vpc_cni_type must be set to empty.
    WorkerConfigs []KubernetesClusterWorkerConfigArgs
    Deploy the machine configuration information of the 'WORKER' service, and create <=20 units for common users. The other 'WORK' service are added by 'tencentcloud_kubernetes_scale_worker'.
    vpcId String
    Vpc Id of the cluster.
    acquireClusterAdminRole Boolean
    If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to false after acquired.
    authOptions KubernetesClusterAuthOptions
    Specify cluster authentication configuration. Only available for managed cluster and cluster_version >= 1.20.
    autoUpgradeClusterLevel Boolean
    Whether the cluster level auto upgraded, valid for managed cluster.
    basePodNum Double
    The number of basic pods. valid when enable_customized_pod_cidr=true.
    cdcId String
    CDC ID.
    claimExpiredSeconds Double
    Claim expired seconds to recycle ENI. This field can only set when field network_type is 'VPC-CNI'. claim_expired_seconds must greater or equal than 300 and less than 15768000.
    clusterAudit KubernetesClusterClusterAudit
    Specify Cluster Audit config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    clusterCidr String
    A network address block of the cluster. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    clusterDeployType String
    Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
    clusterDesc String
    Description of the cluster.
    clusterExtraArgs KubernetesClusterClusterExtraArgs
    Customized parameters for master component,such as kube-apiserver, kube-controller-manager, kube-scheduler.
    clusterInternet Boolean
    Open internet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    clusterInternetDomain String
    Domain name for cluster Kube-apiserver internet access. Be careful if you modify value of this parameter, the cluster_external_endpoint value may be changed automatically too.
    clusterInternetSecurityGroup String
    Specify security group, NOTE: This argument must not be empty if cluster internet enabled.
    clusterIntranet Boolean
    Open intranet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    clusterIntranetDomain String
    Domain name for cluster Kube-apiserver intranet access. Be careful if you modify value of this parameter, the pgw_endpoint value may be changed automatically too.
    clusterIntranetSubnetId String
    Subnet id who can access this independent cluster, this field must and can only set when cluster_intranet is true. cluster_intranet_subnet_id can not modify once be set.
    clusterIpvs Boolean
    Indicates whether ipvs is enabled. Default is true. False means iptables is enabled.
    clusterLevel String
    Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevels to query available levels. Available value examples L5, L20, L50, L100, etc.
    clusterMaxPodNum Double
    The maximum number of Pods per node in the cluster. Default is 256. The minimum value is 4. When its power unequal to 2, it will round upward to the closest power of 2.
    clusterMaxServiceNum Double
    The maximum number of services in the cluster. Default is 256. The range is from 32 to 32768. When its power unequal to 2, it will round upward to the closest power of 2.
    clusterName String
    Name of the cluster.
    clusterOs String
    Cluster operating system, supports setting public images (the field passes the corresponding image Name) and custom images (the field passes the corresponding image ID). For details, please refer to: https://cloud.tencent.com/document/product/457/68289.
    clusterOsType String
    Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
    clusterSubnetId String
    Subnet ID of the cluster, such as: subnet-b3p7d7q5.
    clusterVersion String
    Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersions to get the upgradable cluster version.
    containerRuntime String
    Runtime type of the cluster, the available values include: 'docker' and 'containerd'.The Kubernetes v1.24 has removed dockershim, so please use containerd in v1.24 or higher.Default is 'docker'.
    deletionProtection Boolean
    Indicates whether cluster deletion protection is enabled. Default is false.
    dockerGraphPath String
    Docker graph path. Default is /var/lib/docker.
    enableCustomizedPodCidr Boolean
    Whether to enable the custom mode of node podCIDR size. Default is false.
    eniSubnetIds List<String>
    Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_type is 'VPC-CNI'. eni_subnet_ids can not empty once be set.
    eventPersistence KubernetesClusterEventPersistence
    Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    existInstances List<KubernetesClusterExistInstance>
    create tke cluster by existed instances.
    extensionAddons List<KubernetesClusterExtensionAddon>
    Information of the add-on to be installed.
    extraArgs List<String>
    Custom parameter information related to the node.
    globeDesiredPodNum Double
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
    ignoreClusterCidrConflict Boolean
    Indicates whether to ignore the cluster cidr conflict error. Default is false.
    ignoreServiceCidrConflict Boolean
    Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNI mode.
    instanceDeleteMode String
    The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
    isNonStaticIpMode Boolean
    Indicates whether non-static ip mode is enabled. Default is false.
    kubeProxyMode String
    Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
    kubernetesClusterId String
    ID of the resource.
    labels Map<String,String>
    Labels of tke cluster nodes.
    logAgent KubernetesClusterLogAgent
    Specify cluster log agent config.
    managedClusterInternetSecurityPolicies List<String>
    this argument was deprecated, use cluster_internet_security_group instead. Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field cluster_deploy_type is 'MANAGED_CLUSTER' and cluster_internet is true. managed_cluster_internet_security_policies can not delete or empty once be set.

    Deprecated: Deprecated

    masterConfigs List<KubernetesClusterMasterConfig>
    Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
    mountTarget String
    Mount target. Default is not mounting.
    networkType String
    Cluster network type, the available values include: 'GR' and 'VPC-CNI' and 'CiliumOverlay'. Default is GR.
    nodeNameType String
    Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
    nodePoolGlobalConfigs List<KubernetesClusterNodePoolGlobalConfig>
    Global config effective for all node pools.
    preStartUserScript String
    Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
    projectId Double
    Project ID, default value is 0.
    resourceDeleteOptions List<KubernetesClusterResourceDeleteOption>
    The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
    runtimeVersion String
    Container Runtime version.
    serviceCidr String
    A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    tags Map<String,String>
    The tags of the cluster.
    unschedulable Double
    Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
    upgradeInstancesFollowCluster Boolean
    Indicates whether upgrade all instances when cluster_version change. Default is false.
    vpcCniType String
    Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-eni for shared network card multi-IP mode and tke-direct-eni for independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, both eni_subnet_ids and vpc_cni_type must be set to empty.
    workerConfigs List<KubernetesClusterWorkerConfig>
    Deploy the machine configuration information of the 'WORKER' service, and create <=20 units for common users. The other 'WORK' service are added by 'tencentcloud_kubernetes_scale_worker'.
    vpcId string
    Vpc Id of the cluster.
    acquireClusterAdminRole boolean
    If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to false after acquired.
    authOptions KubernetesClusterAuthOptions
    Specify cluster authentication configuration. Only available for managed cluster and cluster_version >= 1.20.
    autoUpgradeClusterLevel boolean
    Whether the cluster level auto upgraded, valid for managed cluster.
    basePodNum number
    The number of basic pods. valid when enable_customized_pod_cidr=true.
    cdcId string
    CDC ID.
    claimExpiredSeconds number
    Claim expired seconds to recycle ENI. This field can only set when field network_type is 'VPC-CNI'. claim_expired_seconds must greater or equal than 300 and less than 15768000.
    clusterAudit KubernetesClusterClusterAudit
    Specify Cluster Audit config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    clusterCidr string
    A network address block of the cluster. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    clusterDeployType string
    Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
    clusterDesc string
    Description of the cluster.
    clusterExtraArgs KubernetesClusterClusterExtraArgs
    Customized parameters for master component,such as kube-apiserver, kube-controller-manager, kube-scheduler.
    clusterInternet boolean
    Open internet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    clusterInternetDomain string
    Domain name for cluster Kube-apiserver internet access. Be careful if you modify value of this parameter, the cluster_external_endpoint value may be changed automatically too.
    clusterInternetSecurityGroup string
    Specify security group, NOTE: This argument must not be empty if cluster internet enabled.
    clusterIntranet boolean
    Open intranet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    clusterIntranetDomain string
    Domain name for cluster Kube-apiserver intranet access. Be careful if you modify value of this parameter, the pgw_endpoint value may be changed automatically too.
    clusterIntranetSubnetId string
    Subnet id who can access this independent cluster, this field must and can only set when cluster_intranet is true. cluster_intranet_subnet_id can not modify once be set.
    clusterIpvs boolean
    Indicates whether ipvs is enabled. Default is true. False means iptables is enabled.
    clusterLevel string
    Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevels to query available levels. Available value examples L5, L20, L50, L100, etc.
    clusterMaxPodNum number
    The maximum number of Pods per node in the cluster. Default is 256. The minimum value is 4. When its power unequal to 2, it will round upward to the closest power of 2.
    clusterMaxServiceNum number
    The maximum number of services in the cluster. Default is 256. The range is from 32 to 32768. When its power unequal to 2, it will round upward to the closest power of 2.
    clusterName string
    Name of the cluster.
    clusterOs string
    Cluster operating system, supports setting public images (the field passes the corresponding image Name) and custom images (the field passes the corresponding image ID). For details, please refer to: https://cloud.tencent.com/document/product/457/68289.
    clusterOsType string
    Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
    clusterSubnetId string
    Subnet ID of the cluster, such as: subnet-b3p7d7q5.
    clusterVersion string
    Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersions to get the upgradable cluster version.
    containerRuntime string
    Runtime type of the cluster, the available values include: 'docker' and 'containerd'.The Kubernetes v1.24 has removed dockershim, so please use containerd in v1.24 or higher.Default is 'docker'.
    deletionProtection boolean
    Indicates whether cluster deletion protection is enabled. Default is false.
    dockerGraphPath string
    Docker graph path. Default is /var/lib/docker.
    enableCustomizedPodCidr boolean
    Whether to enable the custom mode of node podCIDR size. Default is false.
    eniSubnetIds string[]
    Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_type is 'VPC-CNI'. eni_subnet_ids can not empty once be set.
    eventPersistence KubernetesClusterEventPersistence
    Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    existInstances KubernetesClusterExistInstance[]
    create tke cluster by existed instances.
    extensionAddons KubernetesClusterExtensionAddon[]
    Information of the add-on to be installed.
    extraArgs string[]
    Custom parameter information related to the node.
    globeDesiredPodNum number
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
    ignoreClusterCidrConflict boolean
    Indicates whether to ignore the cluster cidr conflict error. Default is false.
    ignoreServiceCidrConflict boolean
    Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNI mode.
    instanceDeleteMode string
    The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
    isNonStaticIpMode boolean
    Indicates whether non-static ip mode is enabled. Default is false.
    kubeProxyMode string
    Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
    kubernetesClusterId string
    ID of the resource.
    labels {[key: string]: string}
    Labels of tke cluster nodes.
    logAgent KubernetesClusterLogAgent
    Specify cluster log agent config.
    managedClusterInternetSecurityPolicies string[]
    this argument was deprecated, use cluster_internet_security_group instead. Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field cluster_deploy_type is 'MANAGED_CLUSTER' and cluster_internet is true. managed_cluster_internet_security_policies can not delete or empty once be set.

    Deprecated: Deprecated

    masterConfigs KubernetesClusterMasterConfig[]
    Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
    mountTarget string
    Mount target. Default is not mounting.
    networkType string
    Cluster network type, the available values include: 'GR' and 'VPC-CNI' and 'CiliumOverlay'. Default is GR.
    nodeNameType string
    Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
    nodePoolGlobalConfigs KubernetesClusterNodePoolGlobalConfig[]
    Global config effective for all node pools.
    preStartUserScript string
    Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
    projectId number
    Project ID, default value is 0.
    resourceDeleteOptions KubernetesClusterResourceDeleteOption[]
    The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
    runtimeVersion string
    Container Runtime version.
    serviceCidr string
    A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    tags {[key: string]: string}
    The tags of the cluster.
    unschedulable number
    Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
    upgradeInstancesFollowCluster boolean
    Indicates whether upgrade all instances when cluster_version change. Default is false.
    vpcCniType string
    Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-eni for shared network card multi-IP mode and tke-direct-eni for independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, both eni_subnet_ids and vpc_cni_type must be set to empty.
    workerConfigs KubernetesClusterWorkerConfig[]
    Deploy the machine configuration information of the 'WORKER' service, and create <=20 units for common users. The other 'WORK' service are added by 'tencentcloud_kubernetes_scale_worker'.
    vpc_id str
    Vpc Id of the cluster.
    acquire_cluster_admin_role bool
    If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to false after acquired.
    auth_options KubernetesClusterAuthOptionsArgs
    Specify cluster authentication configuration. Only available for managed cluster and cluster_version >= 1.20.
    auto_upgrade_cluster_level bool
    Whether the cluster level auto upgraded, valid for managed cluster.
    base_pod_num float
    The number of basic pods. valid when enable_customized_pod_cidr=true.
    cdc_id str
    CDC ID.
    claim_expired_seconds float
    Claim expired seconds to recycle ENI. This field can only set when field network_type is 'VPC-CNI'. claim_expired_seconds must greater or equal than 300 and less than 15768000.
    cluster_audit KubernetesClusterClusterAuditArgs
    Specify Cluster Audit config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    cluster_cidr str
    A network address block of the cluster. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    cluster_deploy_type str
    Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
    cluster_desc str
    Description of the cluster.
    cluster_extra_args KubernetesClusterClusterExtraArgsArgs
    Customized parameters for master component,such as kube-apiserver, kube-controller-manager, kube-scheduler.
    cluster_internet bool
    Open internet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    cluster_internet_domain str
    Domain name for cluster Kube-apiserver internet access. Be careful if you modify value of this parameter, the cluster_external_endpoint value may be changed automatically too.
    cluster_internet_security_group str
    Specify security group, NOTE: This argument must not be empty if cluster internet enabled.
    cluster_intranet bool
    Open intranet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    cluster_intranet_domain str
    Domain name for cluster Kube-apiserver intranet access. Be careful if you modify value of this parameter, the pgw_endpoint value may be changed automatically too.
    cluster_intranet_subnet_id str
    Subnet id who can access this independent cluster, this field must and can only set when cluster_intranet is true. cluster_intranet_subnet_id can not modify once be set.
    cluster_ipvs bool
    Indicates whether ipvs is enabled. Default is true. False means iptables is enabled.
    cluster_level str
    Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevels to query available levels. Available value examples L5, L20, L50, L100, etc.
    cluster_max_pod_num float
    The maximum number of Pods per node in the cluster. Default is 256. The minimum value is 4. When its power unequal to 2, it will round upward to the closest power of 2.
    cluster_max_service_num float
    The maximum number of services in the cluster. Default is 256. The range is from 32 to 32768. When its power unequal to 2, it will round upward to the closest power of 2.
    cluster_name str
    Name of the cluster.
    cluster_os str
    Cluster operating system, supports setting public images (the field passes the corresponding image Name) and custom images (the field passes the corresponding image ID). For details, please refer to: https://cloud.tencent.com/document/product/457/68289.
    cluster_os_type str
    Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
    cluster_subnet_id str
    Subnet ID of the cluster, such as: subnet-b3p7d7q5.
    cluster_version str
    Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersions to get the upgradable cluster version.
    container_runtime str
    Runtime type of the cluster, the available values include: 'docker' and 'containerd'.The Kubernetes v1.24 has removed dockershim, so please use containerd in v1.24 or higher.Default is 'docker'.
    deletion_protection bool
    Indicates whether cluster deletion protection is enabled. Default is false.
    docker_graph_path str
    Docker graph path. Default is /var/lib/docker.
    enable_customized_pod_cidr bool
    Whether to enable the custom mode of node podCIDR size. Default is false.
    eni_subnet_ids Sequence[str]
    Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_type is 'VPC-CNI'. eni_subnet_ids can not empty once be set.
    event_persistence KubernetesClusterEventPersistenceArgs
    Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    exist_instances Sequence[KubernetesClusterExistInstanceArgs]
    create tke cluster by existed instances.
    extension_addons Sequence[KubernetesClusterExtensionAddonArgs]
    Information of the add-on to be installed.
    extra_args Sequence[str]
    Custom parameter information related to the node.
    globe_desired_pod_num float
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
    ignore_cluster_cidr_conflict bool
    Indicates whether to ignore the cluster cidr conflict error. Default is false.
    ignore_service_cidr_conflict bool
    Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNI mode.
    instance_delete_mode str
    The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
    is_non_static_ip_mode bool
    Indicates whether non-static ip mode is enabled. Default is false.
    kube_proxy_mode str
    Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
    kubernetes_cluster_id str
    ID of the resource.
    labels Mapping[str, str]
    Labels of tke cluster nodes.
    log_agent KubernetesClusterLogAgentArgs
    Specify cluster log agent config.
    managed_cluster_internet_security_policies Sequence[str]
    this argument was deprecated, use cluster_internet_security_group instead. Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field cluster_deploy_type is 'MANAGED_CLUSTER' and cluster_internet is true. managed_cluster_internet_security_policies can not delete or empty once be set.

    Deprecated: Deprecated

    master_configs Sequence[KubernetesClusterMasterConfigArgs]
    Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
    mount_target str
    Mount target. Default is not mounting.
    network_type str
    Cluster network type, the available values include: 'GR' and 'VPC-CNI' and 'CiliumOverlay'. Default is GR.
    node_name_type str
    Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
    node_pool_global_configs Sequence[KubernetesClusterNodePoolGlobalConfigArgs]
    Global config effective for all node pools.
    pre_start_user_script str
    Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
    project_id float
    Project ID, default value is 0.
    resource_delete_options Sequence[KubernetesClusterResourceDeleteOptionArgs]
    The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
    runtime_version str
    Container Runtime version.
    service_cidr str
    A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    tags Mapping[str, str]
    The tags of the cluster.
    unschedulable float
    Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
    upgrade_instances_follow_cluster bool
    Indicates whether upgrade all instances when cluster_version change. Default is false.
    vpc_cni_type str
    Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-eni for shared network card multi-IP mode and tke-direct-eni for independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, both eni_subnet_ids and vpc_cni_type must be set to empty.
    worker_configs Sequence[KubernetesClusterWorkerConfigArgs]
    Deploy the machine configuration information of the 'WORKER' service, and create <=20 units for common users. The other 'WORK' service are added by 'tencentcloud_kubernetes_scale_worker'.
    vpcId String
    Vpc Id of the cluster.
    acquireClusterAdminRole Boolean
    If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to false after acquired.
    authOptions Property Map
    Specify cluster authentication configuration. Only available for managed cluster and cluster_version >= 1.20.
    autoUpgradeClusterLevel Boolean
    Whether the cluster level auto upgraded, valid for managed cluster.
    basePodNum Number
    The number of basic pods. valid when enable_customized_pod_cidr=true.
    cdcId String
    CDC ID.
    claimExpiredSeconds Number
    Claim expired seconds to recycle ENI. This field can only set when field network_type is 'VPC-CNI'. claim_expired_seconds must greater or equal than 300 and less than 15768000.
    clusterAudit Property Map
    Specify Cluster Audit config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    clusterCidr String
    A network address block of the cluster. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    clusterDeployType String
    Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
    clusterDesc String
    Description of the cluster.
    clusterExtraArgs Property Map
    Customized parameters for master component,such as kube-apiserver, kube-controller-manager, kube-scheduler.
    clusterInternet Boolean
    Open internet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    clusterInternetDomain String
    Domain name for cluster Kube-apiserver internet access. Be careful if you modify value of this parameter, the cluster_external_endpoint value may be changed automatically too.
    clusterInternetSecurityGroup String
    Specify security group, NOTE: This argument must not be empty if cluster internet enabled.
    clusterIntranet Boolean
    Open intranet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    clusterIntranetDomain String
    Domain name for cluster Kube-apiserver intranet access. Be careful if you modify value of this parameter, the pgw_endpoint value may be changed automatically too.
    clusterIntranetSubnetId String
    Subnet id who can access this independent cluster, this field must and can only set when cluster_intranet is true. cluster_intranet_subnet_id can not modify once be set.
    clusterIpvs Boolean
    Indicates whether ipvs is enabled. Default is true. False means iptables is enabled.
    clusterLevel String
    Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevels to query available levels. Available value examples L5, L20, L50, L100, etc.
    clusterMaxPodNum Number
    The maximum number of Pods per node in the cluster. Default is 256. The minimum value is 4. When its power unequal to 2, it will round upward to the closest power of 2.
    clusterMaxServiceNum Number
    The maximum number of services in the cluster. Default is 256. The range is from 32 to 32768. When its power unequal to 2, it will round upward to the closest power of 2.
    clusterName String
    Name of the cluster.
    clusterOs String
    Cluster operating system, supports setting public images (the field passes the corresponding image Name) and custom images (the field passes the corresponding image ID). For details, please refer to: https://cloud.tencent.com/document/product/457/68289.
    clusterOsType String
    Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
    clusterSubnetId String
    Subnet ID of the cluster, such as: subnet-b3p7d7q5.
    clusterVersion String
    Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersions to get the upgradable cluster version.
    containerRuntime String
    Runtime type of the cluster, the available values include: 'docker' and 'containerd'.The Kubernetes v1.24 has removed dockershim, so please use containerd in v1.24 or higher.Default is 'docker'.
    deletionProtection Boolean
    Indicates whether cluster deletion protection is enabled. Default is false.
    dockerGraphPath String
    Docker graph path. Default is /var/lib/docker.
    enableCustomizedPodCidr Boolean
    Whether to enable the custom mode of node podCIDR size. Default is false.
    eniSubnetIds List<String>
    Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_type is 'VPC-CNI'. eni_subnet_ids can not empty once be set.
    eventPersistence Property Map
    Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    existInstances List<Property Map>
    create tke cluster by existed instances.
    extensionAddons List<Property Map>
    Information of the add-on to be installed.
    extraArgs List<String>
    Custom parameter information related to the node.
    globeDesiredPodNum Number
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
    ignoreClusterCidrConflict Boolean
    Indicates whether to ignore the cluster cidr conflict error. Default is false.
    ignoreServiceCidrConflict Boolean
    Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNI mode.
    instanceDeleteMode String
    The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
    isNonStaticIpMode Boolean
    Indicates whether non-static ip mode is enabled. Default is false.
    kubeProxyMode String
    Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
    kubernetesClusterId String
    ID of the resource.
    labels Map<String>
    Labels of tke cluster nodes.
    logAgent Property Map
    Specify cluster log agent config.
    managedClusterInternetSecurityPolicies List<String>
    this argument was deprecated, use cluster_internet_security_group instead. Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field cluster_deploy_type is 'MANAGED_CLUSTER' and cluster_internet is true. managed_cluster_internet_security_policies can not delete or empty once be set.

    Deprecated: Deprecated

    masterConfigs List<Property Map>
    Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
    mountTarget String
    Mount target. Default is not mounting.
    networkType String
    Cluster network type, the available values include: 'GR' and 'VPC-CNI' and 'CiliumOverlay'. Default is GR.
    nodeNameType String
    Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
    nodePoolGlobalConfigs List<Property Map>
    Global config effective for all node pools.
    preStartUserScript String
    Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
    projectId Number
    Project ID, default value is 0.
    resourceDeleteOptions List<Property Map>
    The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
    runtimeVersion String
    Container Runtime version.
    serviceCidr String
    A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    tags Map<String>
    The tags of the cluster.
    unschedulable Number
    Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
    upgradeInstancesFollowCluster Boolean
    Indicates whether upgrade all instances when cluster_version change. Default is false.
    vpcCniType String
    Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-eni for shared network card multi-IP mode and tke-direct-eni for independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, both eni_subnet_ids and vpc_cni_type must be set to empty.
    workerConfigs List<Property Map>
    Deploy the machine configuration information of the 'WORKER' service, and create <=20 units for common users. The other 'WORK' service are added by 'tencentcloud_kubernetes_scale_worker'.

    Outputs

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

    CertificationAuthority string
    The certificate used for access.
    ClusterAsEnabled bool
    (Deprecated) This argument is deprecated because the TKE auto-scaling group was no longer available. Indicates whether to enable cluster node auto scaling. Default is false.

    Deprecated: Deprecated

    ClusterExternalEndpoint string
    External network address to access.
    ClusterNodeNum double
    Number of nodes in the cluster.
    Domain string
    Domain name for access.
    Id string
    The provider-assigned unique ID for this managed resource.
    KubeConfig string
    Kubernetes config.
    KubeConfigIntranet string
    Kubernetes config of private network.
    Password string
    Password of account.
    PgwEndpoint string
    The Intranet address used for access.
    SecurityPolicies List<string>
    Access policy.
    UserName string
    User name of account.
    WorkerInstancesLists List<KubernetesClusterWorkerInstancesList>
    An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
    CertificationAuthority string
    The certificate used for access.
    ClusterAsEnabled bool
    (Deprecated) This argument is deprecated because the TKE auto-scaling group was no longer available. Indicates whether to enable cluster node auto scaling. Default is false.

    Deprecated: Deprecated

    ClusterExternalEndpoint string
    External network address to access.
    ClusterNodeNum float64
    Number of nodes in the cluster.
    Domain string
    Domain name for access.
    Id string
    The provider-assigned unique ID for this managed resource.
    KubeConfig string
    Kubernetes config.
    KubeConfigIntranet string
    Kubernetes config of private network.
    Password string
    Password of account.
    PgwEndpoint string
    The Intranet address used for access.
    SecurityPolicies []string
    Access policy.
    UserName string
    User name of account.
    WorkerInstancesLists []KubernetesClusterWorkerInstancesList
    An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
    certificationAuthority String
    The certificate used for access.
    clusterAsEnabled Boolean
    (Deprecated) This argument is deprecated because the TKE auto-scaling group was no longer available. Indicates whether to enable cluster node auto scaling. Default is false.

    Deprecated: Deprecated

    clusterExternalEndpoint String
    External network address to access.
    clusterNodeNum Double
    Number of nodes in the cluster.
    domain String
    Domain name for access.
    id String
    The provider-assigned unique ID for this managed resource.
    kubeConfig String
    Kubernetes config.
    kubeConfigIntranet String
    Kubernetes config of private network.
    password String
    Password of account.
    pgwEndpoint String
    The Intranet address used for access.
    securityPolicies List<String>
    Access policy.
    userName String
    User name of account.
    workerInstancesLists List<KubernetesClusterWorkerInstancesList>
    An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
    certificationAuthority string
    The certificate used for access.
    clusterAsEnabled boolean
    (Deprecated) This argument is deprecated because the TKE auto-scaling group was no longer available. Indicates whether to enable cluster node auto scaling. Default is false.

    Deprecated: Deprecated

    clusterExternalEndpoint string
    External network address to access.
    clusterNodeNum number
    Number of nodes in the cluster.
    domain string
    Domain name for access.
    id string
    The provider-assigned unique ID for this managed resource.
    kubeConfig string
    Kubernetes config.
    kubeConfigIntranet string
    Kubernetes config of private network.
    password string
    Password of account.
    pgwEndpoint string
    The Intranet address used for access.
    securityPolicies string[]
    Access policy.
    userName string
    User name of account.
    workerInstancesLists KubernetesClusterWorkerInstancesList[]
    An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
    certification_authority str
    The certificate used for access.
    cluster_as_enabled bool
    (Deprecated) This argument is deprecated because the TKE auto-scaling group was no longer available. Indicates whether to enable cluster node auto scaling. Default is false.

    Deprecated: Deprecated

    cluster_external_endpoint str
    External network address to access.
    cluster_node_num float
    Number of nodes in the cluster.
    domain str
    Domain name for access.
    id str
    The provider-assigned unique ID for this managed resource.
    kube_config str
    Kubernetes config.
    kube_config_intranet str
    Kubernetes config of private network.
    password str
    Password of account.
    pgw_endpoint str
    The Intranet address used for access.
    security_policies Sequence[str]
    Access policy.
    user_name str
    User name of account.
    worker_instances_lists Sequence[KubernetesClusterWorkerInstancesList]
    An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
    certificationAuthority String
    The certificate used for access.
    clusterAsEnabled Boolean
    (Deprecated) This argument is deprecated because the TKE auto-scaling group was no longer available. Indicates whether to enable cluster node auto scaling. Default is false.

    Deprecated: Deprecated

    clusterExternalEndpoint String
    External network address to access.
    clusterNodeNum Number
    Number of nodes in the cluster.
    domain String
    Domain name for access.
    id String
    The provider-assigned unique ID for this managed resource.
    kubeConfig String
    Kubernetes config.
    kubeConfigIntranet String
    Kubernetes config of private network.
    password String
    Password of account.
    pgwEndpoint String
    The Intranet address used for access.
    securityPolicies List<String>
    Access policy.
    userName String
    User name of account.
    workerInstancesLists List<Property Map>
    An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:

    Look up Existing KubernetesCluster Resource

    Get an existing KubernetesCluster 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?: KubernetesClusterState, opts?: CustomResourceOptions): KubernetesCluster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acquire_cluster_admin_role: Optional[bool] = None,
            auth_options: Optional[KubernetesClusterAuthOptionsArgs] = None,
            auto_upgrade_cluster_level: Optional[bool] = None,
            base_pod_num: Optional[float] = None,
            cdc_id: Optional[str] = None,
            certification_authority: Optional[str] = None,
            claim_expired_seconds: Optional[float] = None,
            cluster_as_enabled: Optional[bool] = None,
            cluster_audit: Optional[KubernetesClusterClusterAuditArgs] = None,
            cluster_cidr: Optional[str] = None,
            cluster_deploy_type: Optional[str] = None,
            cluster_desc: Optional[str] = None,
            cluster_external_endpoint: Optional[str] = None,
            cluster_extra_args: Optional[KubernetesClusterClusterExtraArgsArgs] = None,
            cluster_internet: Optional[bool] = None,
            cluster_internet_domain: Optional[str] = None,
            cluster_internet_security_group: Optional[str] = None,
            cluster_intranet: Optional[bool] = None,
            cluster_intranet_domain: Optional[str] = None,
            cluster_intranet_subnet_id: Optional[str] = None,
            cluster_ipvs: Optional[bool] = None,
            cluster_level: Optional[str] = None,
            cluster_max_pod_num: Optional[float] = None,
            cluster_max_service_num: Optional[float] = None,
            cluster_name: Optional[str] = None,
            cluster_node_num: Optional[float] = None,
            cluster_os: Optional[str] = None,
            cluster_os_type: Optional[str] = None,
            cluster_subnet_id: Optional[str] = None,
            cluster_version: Optional[str] = None,
            container_runtime: Optional[str] = None,
            deletion_protection: Optional[bool] = None,
            docker_graph_path: Optional[str] = None,
            domain: Optional[str] = None,
            enable_customized_pod_cidr: Optional[bool] = None,
            eni_subnet_ids: Optional[Sequence[str]] = None,
            event_persistence: Optional[KubernetesClusterEventPersistenceArgs] = None,
            exist_instances: Optional[Sequence[KubernetesClusterExistInstanceArgs]] = None,
            extension_addons: Optional[Sequence[KubernetesClusterExtensionAddonArgs]] = None,
            extra_args: Optional[Sequence[str]] = None,
            globe_desired_pod_num: Optional[float] = None,
            ignore_cluster_cidr_conflict: Optional[bool] = None,
            ignore_service_cidr_conflict: Optional[bool] = None,
            instance_delete_mode: Optional[str] = None,
            is_non_static_ip_mode: Optional[bool] = None,
            kube_config: Optional[str] = None,
            kube_config_intranet: Optional[str] = None,
            kube_proxy_mode: Optional[str] = None,
            kubernetes_cluster_id: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            log_agent: Optional[KubernetesClusterLogAgentArgs] = None,
            managed_cluster_internet_security_policies: Optional[Sequence[str]] = None,
            master_configs: Optional[Sequence[KubernetesClusterMasterConfigArgs]] = None,
            mount_target: Optional[str] = None,
            network_type: Optional[str] = None,
            node_name_type: Optional[str] = None,
            node_pool_global_configs: Optional[Sequence[KubernetesClusterNodePoolGlobalConfigArgs]] = None,
            password: Optional[str] = None,
            pgw_endpoint: Optional[str] = None,
            pre_start_user_script: Optional[str] = None,
            project_id: Optional[float] = None,
            resource_delete_options: Optional[Sequence[KubernetesClusterResourceDeleteOptionArgs]] = None,
            runtime_version: Optional[str] = None,
            security_policies: Optional[Sequence[str]] = None,
            service_cidr: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            unschedulable: Optional[float] = None,
            upgrade_instances_follow_cluster: Optional[bool] = None,
            user_name: Optional[str] = None,
            vpc_cni_type: Optional[str] = None,
            vpc_id: Optional[str] = None,
            worker_configs: Optional[Sequence[KubernetesClusterWorkerConfigArgs]] = None,
            worker_instances_lists: Optional[Sequence[KubernetesClusterWorkerInstancesListArgs]] = None) -> KubernetesCluster
    func GetKubernetesCluster(ctx *Context, name string, id IDInput, state *KubernetesClusterState, opts ...ResourceOption) (*KubernetesCluster, error)
    public static KubernetesCluster Get(string name, Input<string> id, KubernetesClusterState? state, CustomResourceOptions? opts = null)
    public static KubernetesCluster get(String name, Output<String> id, KubernetesClusterState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:KubernetesCluster    get:      id: ${id}
    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:
    AcquireClusterAdminRole bool
    If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to false after acquired.
    AuthOptions KubernetesClusterAuthOptions
    Specify cluster authentication configuration. Only available for managed cluster and cluster_version >= 1.20.
    AutoUpgradeClusterLevel bool
    Whether the cluster level auto upgraded, valid for managed cluster.
    BasePodNum double
    The number of basic pods. valid when enable_customized_pod_cidr=true.
    CdcId string
    CDC ID.
    CertificationAuthority string
    The certificate used for access.
    ClaimExpiredSeconds double
    Claim expired seconds to recycle ENI. This field can only set when field network_type is 'VPC-CNI'. claim_expired_seconds must greater or equal than 300 and less than 15768000.
    ClusterAsEnabled bool
    (Deprecated) This argument is deprecated because the TKE auto-scaling group was no longer available. Indicates whether to enable cluster node auto scaling. Default is false.

    Deprecated: Deprecated

    ClusterAudit KubernetesClusterClusterAudit
    Specify Cluster Audit config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    ClusterCidr string
    A network address block of the cluster. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    ClusterDeployType string
    Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
    ClusterDesc string
    Description of the cluster.
    ClusterExternalEndpoint string
    External network address to access.
    ClusterExtraArgs KubernetesClusterClusterExtraArgs
    Customized parameters for master component,such as kube-apiserver, kube-controller-manager, kube-scheduler.
    ClusterInternet bool
    Open internet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    ClusterInternetDomain string
    Domain name for cluster Kube-apiserver internet access. Be careful if you modify value of this parameter, the cluster_external_endpoint value may be changed automatically too.
    ClusterInternetSecurityGroup string
    Specify security group, NOTE: This argument must not be empty if cluster internet enabled.
    ClusterIntranet bool
    Open intranet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    ClusterIntranetDomain string
    Domain name for cluster Kube-apiserver intranet access. Be careful if you modify value of this parameter, the pgw_endpoint value may be changed automatically too.
    ClusterIntranetSubnetId string
    Subnet id who can access this independent cluster, this field must and can only set when cluster_intranet is true. cluster_intranet_subnet_id can not modify once be set.
    ClusterIpvs bool
    Indicates whether ipvs is enabled. Default is true. False means iptables is enabled.
    ClusterLevel string
    Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevels to query available levels. Available value examples L5, L20, L50, L100, etc.
    ClusterMaxPodNum double
    The maximum number of Pods per node in the cluster. Default is 256. The minimum value is 4. When its power unequal to 2, it will round upward to the closest power of 2.
    ClusterMaxServiceNum double
    The maximum number of services in the cluster. Default is 256. The range is from 32 to 32768. When its power unequal to 2, it will round upward to the closest power of 2.
    ClusterName string
    Name of the cluster.
    ClusterNodeNum double
    Number of nodes in the cluster.
    ClusterOs string
    Cluster operating system, supports setting public images (the field passes the corresponding image Name) and custom images (the field passes the corresponding image ID). For details, please refer to: https://cloud.tencent.com/document/product/457/68289.
    ClusterOsType string
    Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
    ClusterSubnetId string
    Subnet ID of the cluster, such as: subnet-b3p7d7q5.
    ClusterVersion string
    Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersions to get the upgradable cluster version.
    ContainerRuntime string
    Runtime type of the cluster, the available values include: 'docker' and 'containerd'.The Kubernetes v1.24 has removed dockershim, so please use containerd in v1.24 or higher.Default is 'docker'.
    DeletionProtection bool
    Indicates whether cluster deletion protection is enabled. Default is false.
    DockerGraphPath string
    Docker graph path. Default is /var/lib/docker.
    Domain string
    Domain name for access.
    EnableCustomizedPodCidr bool
    Whether to enable the custom mode of node podCIDR size. Default is false.
    EniSubnetIds List<string>
    Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_type is 'VPC-CNI'. eni_subnet_ids can not empty once be set.
    EventPersistence KubernetesClusterEventPersistence
    Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    ExistInstances List<KubernetesClusterExistInstance>
    create tke cluster by existed instances.
    ExtensionAddons List<KubernetesClusterExtensionAddon>
    Information of the add-on to be installed.
    ExtraArgs List<string>
    Custom parameter information related to the node.
    GlobeDesiredPodNum double
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
    IgnoreClusterCidrConflict bool
    Indicates whether to ignore the cluster cidr conflict error. Default is false.
    IgnoreServiceCidrConflict bool
    Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNI mode.
    InstanceDeleteMode string
    The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
    IsNonStaticIpMode bool
    Indicates whether non-static ip mode is enabled. Default is false.
    KubeConfig string
    Kubernetes config.
    KubeConfigIntranet string
    Kubernetes config of private network.
    KubeProxyMode string
    Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
    KubernetesClusterId string
    ID of the resource.
    Labels Dictionary<string, string>
    Labels of tke cluster nodes.
    LogAgent KubernetesClusterLogAgent
    Specify cluster log agent config.
    ManagedClusterInternetSecurityPolicies List<string>
    this argument was deprecated, use cluster_internet_security_group instead. Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field cluster_deploy_type is 'MANAGED_CLUSTER' and cluster_internet is true. managed_cluster_internet_security_policies can not delete or empty once be set.

    Deprecated: Deprecated

    MasterConfigs List<KubernetesClusterMasterConfig>
    Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
    MountTarget string
    Mount target. Default is not mounting.
    NetworkType string
    Cluster network type, the available values include: 'GR' and 'VPC-CNI' and 'CiliumOverlay'. Default is GR.
    NodeNameType string
    Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
    NodePoolGlobalConfigs List<KubernetesClusterNodePoolGlobalConfig>
    Global config effective for all node pools.
    Password string
    Password of account.
    PgwEndpoint string
    The Intranet address used for access.
    PreStartUserScript string
    Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
    ProjectId double
    Project ID, default value is 0.
    ResourceDeleteOptions List<KubernetesClusterResourceDeleteOption>
    The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
    RuntimeVersion string
    Container Runtime version.
    SecurityPolicies List<string>
    Access policy.
    ServiceCidr string
    A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    Tags Dictionary<string, string>
    The tags of the cluster.
    Unschedulable double
    Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
    UpgradeInstancesFollowCluster bool
    Indicates whether upgrade all instances when cluster_version change. Default is false.
    UserName string
    User name of account.
    VpcCniType string
    Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-eni for shared network card multi-IP mode and tke-direct-eni for independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, both eni_subnet_ids and vpc_cni_type must be set to empty.
    VpcId string
    Vpc Id of the cluster.
    WorkerConfigs List<KubernetesClusterWorkerConfig>
    Deploy the machine configuration information of the 'WORKER' service, and create <=20 units for common users. The other 'WORK' service are added by 'tencentcloud_kubernetes_scale_worker'.
    WorkerInstancesLists List<KubernetesClusterWorkerInstancesList>
    An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
    AcquireClusterAdminRole bool
    If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to false after acquired.
    AuthOptions KubernetesClusterAuthOptionsArgs
    Specify cluster authentication configuration. Only available for managed cluster and cluster_version >= 1.20.
    AutoUpgradeClusterLevel bool
    Whether the cluster level auto upgraded, valid for managed cluster.
    BasePodNum float64
    The number of basic pods. valid when enable_customized_pod_cidr=true.
    CdcId string
    CDC ID.
    CertificationAuthority string
    The certificate used for access.
    ClaimExpiredSeconds float64
    Claim expired seconds to recycle ENI. This field can only set when field network_type is 'VPC-CNI'. claim_expired_seconds must greater or equal than 300 and less than 15768000.
    ClusterAsEnabled bool
    (Deprecated) This argument is deprecated because the TKE auto-scaling group was no longer available. Indicates whether to enable cluster node auto scaling. Default is false.

    Deprecated: Deprecated

    ClusterAudit KubernetesClusterClusterAuditArgs
    Specify Cluster Audit config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    ClusterCidr string
    A network address block of the cluster. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    ClusterDeployType string
    Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
    ClusterDesc string
    Description of the cluster.
    ClusterExternalEndpoint string
    External network address to access.
    ClusterExtraArgs KubernetesClusterClusterExtraArgsArgs
    Customized parameters for master component,such as kube-apiserver, kube-controller-manager, kube-scheduler.
    ClusterInternet bool
    Open internet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    ClusterInternetDomain string
    Domain name for cluster Kube-apiserver internet access. Be careful if you modify value of this parameter, the cluster_external_endpoint value may be changed automatically too.
    ClusterInternetSecurityGroup string
    Specify security group, NOTE: This argument must not be empty if cluster internet enabled.
    ClusterIntranet bool
    Open intranet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    ClusterIntranetDomain string
    Domain name for cluster Kube-apiserver intranet access. Be careful if you modify value of this parameter, the pgw_endpoint value may be changed automatically too.
    ClusterIntranetSubnetId string
    Subnet id who can access this independent cluster, this field must and can only set when cluster_intranet is true. cluster_intranet_subnet_id can not modify once be set.
    ClusterIpvs bool
    Indicates whether ipvs is enabled. Default is true. False means iptables is enabled.
    ClusterLevel string
    Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevels to query available levels. Available value examples L5, L20, L50, L100, etc.
    ClusterMaxPodNum float64
    The maximum number of Pods per node in the cluster. Default is 256. The minimum value is 4. When its power unequal to 2, it will round upward to the closest power of 2.
    ClusterMaxServiceNum float64
    The maximum number of services in the cluster. Default is 256. The range is from 32 to 32768. When its power unequal to 2, it will round upward to the closest power of 2.
    ClusterName string
    Name of the cluster.
    ClusterNodeNum float64
    Number of nodes in the cluster.
    ClusterOs string
    Cluster operating system, supports setting public images (the field passes the corresponding image Name) and custom images (the field passes the corresponding image ID). For details, please refer to: https://cloud.tencent.com/document/product/457/68289.
    ClusterOsType string
    Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
    ClusterSubnetId string
    Subnet ID of the cluster, such as: subnet-b3p7d7q5.
    ClusterVersion string
    Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersions to get the upgradable cluster version.
    ContainerRuntime string
    Runtime type of the cluster, the available values include: 'docker' and 'containerd'.The Kubernetes v1.24 has removed dockershim, so please use containerd in v1.24 or higher.Default is 'docker'.
    DeletionProtection bool
    Indicates whether cluster deletion protection is enabled. Default is false.
    DockerGraphPath string
    Docker graph path. Default is /var/lib/docker.
    Domain string
    Domain name for access.
    EnableCustomizedPodCidr bool
    Whether to enable the custom mode of node podCIDR size. Default is false.
    EniSubnetIds []string
    Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_type is 'VPC-CNI'. eni_subnet_ids can not empty once be set.
    EventPersistence KubernetesClusterEventPersistenceArgs
    Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    ExistInstances []KubernetesClusterExistInstanceArgs
    create tke cluster by existed instances.
    ExtensionAddons []KubernetesClusterExtensionAddonArgs
    Information of the add-on to be installed.
    ExtraArgs []string
    Custom parameter information related to the node.
    GlobeDesiredPodNum float64
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
    IgnoreClusterCidrConflict bool
    Indicates whether to ignore the cluster cidr conflict error. Default is false.
    IgnoreServiceCidrConflict bool
    Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNI mode.
    InstanceDeleteMode string
    The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
    IsNonStaticIpMode bool
    Indicates whether non-static ip mode is enabled. Default is false.
    KubeConfig string
    Kubernetes config.
    KubeConfigIntranet string
    Kubernetes config of private network.
    KubeProxyMode string
    Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
    KubernetesClusterId string
    ID of the resource.
    Labels map[string]string
    Labels of tke cluster nodes.
    LogAgent KubernetesClusterLogAgentArgs
    Specify cluster log agent config.
    ManagedClusterInternetSecurityPolicies []string
    this argument was deprecated, use cluster_internet_security_group instead. Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field cluster_deploy_type is 'MANAGED_CLUSTER' and cluster_internet is true. managed_cluster_internet_security_policies can not delete or empty once be set.

    Deprecated: Deprecated

    MasterConfigs []KubernetesClusterMasterConfigArgs
    Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
    MountTarget string
    Mount target. Default is not mounting.
    NetworkType string
    Cluster network type, the available values include: 'GR' and 'VPC-CNI' and 'CiliumOverlay'. Default is GR.
    NodeNameType string
    Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
    NodePoolGlobalConfigs []KubernetesClusterNodePoolGlobalConfigArgs
    Global config effective for all node pools.
    Password string
    Password of account.
    PgwEndpoint string
    The Intranet address used for access.
    PreStartUserScript string
    Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
    ProjectId float64
    Project ID, default value is 0.
    ResourceDeleteOptions []KubernetesClusterResourceDeleteOptionArgs
    The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
    RuntimeVersion string
    Container Runtime version.
    SecurityPolicies []string
    Access policy.
    ServiceCidr string
    A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    Tags map[string]string
    The tags of the cluster.
    Unschedulable float64
    Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
    UpgradeInstancesFollowCluster bool
    Indicates whether upgrade all instances when cluster_version change. Default is false.
    UserName string
    User name of account.
    VpcCniType string
    Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-eni for shared network card multi-IP mode and tke-direct-eni for independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, both eni_subnet_ids and vpc_cni_type must be set to empty.
    VpcId string
    Vpc Id of the cluster.
    WorkerConfigs []KubernetesClusterWorkerConfigArgs
    Deploy the machine configuration information of the 'WORKER' service, and create <=20 units for common users. The other 'WORK' service are added by 'tencentcloud_kubernetes_scale_worker'.
    WorkerInstancesLists []KubernetesClusterWorkerInstancesListArgs
    An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
    acquireClusterAdminRole Boolean
    If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to false after acquired.
    authOptions KubernetesClusterAuthOptions
    Specify cluster authentication configuration. Only available for managed cluster and cluster_version >= 1.20.
    autoUpgradeClusterLevel Boolean
    Whether the cluster level auto upgraded, valid for managed cluster.
    basePodNum Double
    The number of basic pods. valid when enable_customized_pod_cidr=true.
    cdcId String
    CDC ID.
    certificationAuthority String
    The certificate used for access.
    claimExpiredSeconds Double
    Claim expired seconds to recycle ENI. This field can only set when field network_type is 'VPC-CNI'. claim_expired_seconds must greater or equal than 300 and less than 15768000.
    clusterAsEnabled Boolean
    (Deprecated) This argument is deprecated because the TKE auto-scaling group was no longer available. Indicates whether to enable cluster node auto scaling. Default is false.

    Deprecated: Deprecated

    clusterAudit KubernetesClusterClusterAudit
    Specify Cluster Audit config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    clusterCidr String
    A network address block of the cluster. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    clusterDeployType String
    Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
    clusterDesc String
    Description of the cluster.
    clusterExternalEndpoint String
    External network address to access.
    clusterExtraArgs KubernetesClusterClusterExtraArgs
    Customized parameters for master component,such as kube-apiserver, kube-controller-manager, kube-scheduler.
    clusterInternet Boolean
    Open internet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    clusterInternetDomain String
    Domain name for cluster Kube-apiserver internet access. Be careful if you modify value of this parameter, the cluster_external_endpoint value may be changed automatically too.
    clusterInternetSecurityGroup String
    Specify security group, NOTE: This argument must not be empty if cluster internet enabled.
    clusterIntranet Boolean
    Open intranet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    clusterIntranetDomain String
    Domain name for cluster Kube-apiserver intranet access. Be careful if you modify value of this parameter, the pgw_endpoint value may be changed automatically too.
    clusterIntranetSubnetId String
    Subnet id who can access this independent cluster, this field must and can only set when cluster_intranet is true. cluster_intranet_subnet_id can not modify once be set.
    clusterIpvs Boolean
    Indicates whether ipvs is enabled. Default is true. False means iptables is enabled.
    clusterLevel String
    Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevels to query available levels. Available value examples L5, L20, L50, L100, etc.
    clusterMaxPodNum Double
    The maximum number of Pods per node in the cluster. Default is 256. The minimum value is 4. When its power unequal to 2, it will round upward to the closest power of 2.
    clusterMaxServiceNum Double
    The maximum number of services in the cluster. Default is 256. The range is from 32 to 32768. When its power unequal to 2, it will round upward to the closest power of 2.
    clusterName String
    Name of the cluster.
    clusterNodeNum Double
    Number of nodes in the cluster.
    clusterOs String
    Cluster operating system, supports setting public images (the field passes the corresponding image Name) and custom images (the field passes the corresponding image ID). For details, please refer to: https://cloud.tencent.com/document/product/457/68289.
    clusterOsType String
    Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
    clusterSubnetId String
    Subnet ID of the cluster, such as: subnet-b3p7d7q5.
    clusterVersion String
    Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersions to get the upgradable cluster version.
    containerRuntime String
    Runtime type of the cluster, the available values include: 'docker' and 'containerd'.The Kubernetes v1.24 has removed dockershim, so please use containerd in v1.24 or higher.Default is 'docker'.
    deletionProtection Boolean
    Indicates whether cluster deletion protection is enabled. Default is false.
    dockerGraphPath String
    Docker graph path. Default is /var/lib/docker.
    domain String
    Domain name for access.
    enableCustomizedPodCidr Boolean
    Whether to enable the custom mode of node podCIDR size. Default is false.
    eniSubnetIds List<String>
    Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_type is 'VPC-CNI'. eni_subnet_ids can not empty once be set.
    eventPersistence KubernetesClusterEventPersistence
    Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    existInstances List<KubernetesClusterExistInstance>
    create tke cluster by existed instances.
    extensionAddons List<KubernetesClusterExtensionAddon>
    Information of the add-on to be installed.
    extraArgs List<String>
    Custom parameter information related to the node.
    globeDesiredPodNum Double
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
    ignoreClusterCidrConflict Boolean
    Indicates whether to ignore the cluster cidr conflict error. Default is false.
    ignoreServiceCidrConflict Boolean
    Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNI mode.
    instanceDeleteMode String
    The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
    isNonStaticIpMode Boolean
    Indicates whether non-static ip mode is enabled. Default is false.
    kubeConfig String
    Kubernetes config.
    kubeConfigIntranet String
    Kubernetes config of private network.
    kubeProxyMode String
    Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
    kubernetesClusterId String
    ID of the resource.
    labels Map<String,String>
    Labels of tke cluster nodes.
    logAgent KubernetesClusterLogAgent
    Specify cluster log agent config.
    managedClusterInternetSecurityPolicies List<String>
    this argument was deprecated, use cluster_internet_security_group instead. Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field cluster_deploy_type is 'MANAGED_CLUSTER' and cluster_internet is true. managed_cluster_internet_security_policies can not delete or empty once be set.

    Deprecated: Deprecated

    masterConfigs List<KubernetesClusterMasterConfig>
    Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
    mountTarget String
    Mount target. Default is not mounting.
    networkType String
    Cluster network type, the available values include: 'GR' and 'VPC-CNI' and 'CiliumOverlay'. Default is GR.
    nodeNameType String
    Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
    nodePoolGlobalConfigs List<KubernetesClusterNodePoolGlobalConfig>
    Global config effective for all node pools.
    password String
    Password of account.
    pgwEndpoint String
    The Intranet address used for access.
    preStartUserScript String
    Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
    projectId Double
    Project ID, default value is 0.
    resourceDeleteOptions List<KubernetesClusterResourceDeleteOption>
    The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
    runtimeVersion String
    Container Runtime version.
    securityPolicies List<String>
    Access policy.
    serviceCidr String
    A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    tags Map<String,String>
    The tags of the cluster.
    unschedulable Double
    Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
    upgradeInstancesFollowCluster Boolean
    Indicates whether upgrade all instances when cluster_version change. Default is false.
    userName String
    User name of account.
    vpcCniType String
    Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-eni for shared network card multi-IP mode and tke-direct-eni for independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, both eni_subnet_ids and vpc_cni_type must be set to empty.
    vpcId String
    Vpc Id of the cluster.
    workerConfigs List<KubernetesClusterWorkerConfig>
    Deploy the machine configuration information of the 'WORKER' service, and create <=20 units for common users. The other 'WORK' service are added by 'tencentcloud_kubernetes_scale_worker'.
    workerInstancesLists List<KubernetesClusterWorkerInstancesList>
    An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
    acquireClusterAdminRole boolean
    If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to false after acquired.
    authOptions KubernetesClusterAuthOptions
    Specify cluster authentication configuration. Only available for managed cluster and cluster_version >= 1.20.
    autoUpgradeClusterLevel boolean
    Whether the cluster level auto upgraded, valid for managed cluster.
    basePodNum number
    The number of basic pods. valid when enable_customized_pod_cidr=true.
    cdcId string
    CDC ID.
    certificationAuthority string
    The certificate used for access.
    claimExpiredSeconds number
    Claim expired seconds to recycle ENI. This field can only set when field network_type is 'VPC-CNI'. claim_expired_seconds must greater or equal than 300 and less than 15768000.
    clusterAsEnabled boolean
    (Deprecated) This argument is deprecated because the TKE auto-scaling group was no longer available. Indicates whether to enable cluster node auto scaling. Default is false.

    Deprecated: Deprecated

    clusterAudit KubernetesClusterClusterAudit
    Specify Cluster Audit config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    clusterCidr string
    A network address block of the cluster. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    clusterDeployType string
    Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
    clusterDesc string
    Description of the cluster.
    clusterExternalEndpoint string
    External network address to access.
    clusterExtraArgs KubernetesClusterClusterExtraArgs
    Customized parameters for master component,such as kube-apiserver, kube-controller-manager, kube-scheduler.
    clusterInternet boolean
    Open internet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    clusterInternetDomain string
    Domain name for cluster Kube-apiserver internet access. Be careful if you modify value of this parameter, the cluster_external_endpoint value may be changed automatically too.
    clusterInternetSecurityGroup string
    Specify security group, NOTE: This argument must not be empty if cluster internet enabled.
    clusterIntranet boolean
    Open intranet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    clusterIntranetDomain string
    Domain name for cluster Kube-apiserver intranet access. Be careful if you modify value of this parameter, the pgw_endpoint value may be changed automatically too.
    clusterIntranetSubnetId string
    Subnet id who can access this independent cluster, this field must and can only set when cluster_intranet is true. cluster_intranet_subnet_id can not modify once be set.
    clusterIpvs boolean
    Indicates whether ipvs is enabled. Default is true. False means iptables is enabled.
    clusterLevel string
    Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevels to query available levels. Available value examples L5, L20, L50, L100, etc.
    clusterMaxPodNum number
    The maximum number of Pods per node in the cluster. Default is 256. The minimum value is 4. When its power unequal to 2, it will round upward to the closest power of 2.
    clusterMaxServiceNum number
    The maximum number of services in the cluster. Default is 256. The range is from 32 to 32768. When its power unequal to 2, it will round upward to the closest power of 2.
    clusterName string
    Name of the cluster.
    clusterNodeNum number
    Number of nodes in the cluster.
    clusterOs string
    Cluster operating system, supports setting public images (the field passes the corresponding image Name) and custom images (the field passes the corresponding image ID). For details, please refer to: https://cloud.tencent.com/document/product/457/68289.
    clusterOsType string
    Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
    clusterSubnetId string
    Subnet ID of the cluster, such as: subnet-b3p7d7q5.
    clusterVersion string
    Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersions to get the upgradable cluster version.
    containerRuntime string
    Runtime type of the cluster, the available values include: 'docker' and 'containerd'.The Kubernetes v1.24 has removed dockershim, so please use containerd in v1.24 or higher.Default is 'docker'.
    deletionProtection boolean
    Indicates whether cluster deletion protection is enabled. Default is false.
    dockerGraphPath string
    Docker graph path. Default is /var/lib/docker.
    domain string
    Domain name for access.
    enableCustomizedPodCidr boolean
    Whether to enable the custom mode of node podCIDR size. Default is false.
    eniSubnetIds string[]
    Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_type is 'VPC-CNI'. eni_subnet_ids can not empty once be set.
    eventPersistence KubernetesClusterEventPersistence
    Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    existInstances KubernetesClusterExistInstance[]
    create tke cluster by existed instances.
    extensionAddons KubernetesClusterExtensionAddon[]
    Information of the add-on to be installed.
    extraArgs string[]
    Custom parameter information related to the node.
    globeDesiredPodNum number
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
    ignoreClusterCidrConflict boolean
    Indicates whether to ignore the cluster cidr conflict error. Default is false.
    ignoreServiceCidrConflict boolean
    Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNI mode.
    instanceDeleteMode string
    The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
    isNonStaticIpMode boolean
    Indicates whether non-static ip mode is enabled. Default is false.
    kubeConfig string
    Kubernetes config.
    kubeConfigIntranet string
    Kubernetes config of private network.
    kubeProxyMode string
    Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
    kubernetesClusterId string
    ID of the resource.
    labels {[key: string]: string}
    Labels of tke cluster nodes.
    logAgent KubernetesClusterLogAgent
    Specify cluster log agent config.
    managedClusterInternetSecurityPolicies string[]
    this argument was deprecated, use cluster_internet_security_group instead. Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field cluster_deploy_type is 'MANAGED_CLUSTER' and cluster_internet is true. managed_cluster_internet_security_policies can not delete or empty once be set.

    Deprecated: Deprecated

    masterConfigs KubernetesClusterMasterConfig[]
    Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
    mountTarget string
    Mount target. Default is not mounting.
    networkType string
    Cluster network type, the available values include: 'GR' and 'VPC-CNI' and 'CiliumOverlay'. Default is GR.
    nodeNameType string
    Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
    nodePoolGlobalConfigs KubernetesClusterNodePoolGlobalConfig[]
    Global config effective for all node pools.
    password string
    Password of account.
    pgwEndpoint string
    The Intranet address used for access.
    preStartUserScript string
    Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
    projectId number
    Project ID, default value is 0.
    resourceDeleteOptions KubernetesClusterResourceDeleteOption[]
    The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
    runtimeVersion string
    Container Runtime version.
    securityPolicies string[]
    Access policy.
    serviceCidr string
    A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    tags {[key: string]: string}
    The tags of the cluster.
    unschedulable number
    Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
    upgradeInstancesFollowCluster boolean
    Indicates whether upgrade all instances when cluster_version change. Default is false.
    userName string
    User name of account.
    vpcCniType string
    Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-eni for shared network card multi-IP mode and tke-direct-eni for independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, both eni_subnet_ids and vpc_cni_type must be set to empty.
    vpcId string
    Vpc Id of the cluster.
    workerConfigs KubernetesClusterWorkerConfig[]
    Deploy the machine configuration information of the 'WORKER' service, and create <=20 units for common users. The other 'WORK' service are added by 'tencentcloud_kubernetes_scale_worker'.
    workerInstancesLists KubernetesClusterWorkerInstancesList[]
    An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
    acquire_cluster_admin_role bool
    If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to false after acquired.
    auth_options KubernetesClusterAuthOptionsArgs
    Specify cluster authentication configuration. Only available for managed cluster and cluster_version >= 1.20.
    auto_upgrade_cluster_level bool
    Whether the cluster level auto upgraded, valid for managed cluster.
    base_pod_num float
    The number of basic pods. valid when enable_customized_pod_cidr=true.
    cdc_id str
    CDC ID.
    certification_authority str
    The certificate used for access.
    claim_expired_seconds float
    Claim expired seconds to recycle ENI. This field can only set when field network_type is 'VPC-CNI'. claim_expired_seconds must greater or equal than 300 and less than 15768000.
    cluster_as_enabled bool
    (Deprecated) This argument is deprecated because the TKE auto-scaling group was no longer available. Indicates whether to enable cluster node auto scaling. Default is false.

    Deprecated: Deprecated

    cluster_audit KubernetesClusterClusterAuditArgs
    Specify Cluster Audit config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    cluster_cidr str
    A network address block of the cluster. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    cluster_deploy_type str
    Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
    cluster_desc str
    Description of the cluster.
    cluster_external_endpoint str
    External network address to access.
    cluster_extra_args KubernetesClusterClusterExtraArgsArgs
    Customized parameters for master component,such as kube-apiserver, kube-controller-manager, kube-scheduler.
    cluster_internet bool
    Open internet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    cluster_internet_domain str
    Domain name for cluster Kube-apiserver internet access. Be careful if you modify value of this parameter, the cluster_external_endpoint value may be changed automatically too.
    cluster_internet_security_group str
    Specify security group, NOTE: This argument must not be empty if cluster internet enabled.
    cluster_intranet bool
    Open intranet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    cluster_intranet_domain str
    Domain name for cluster Kube-apiserver intranet access. Be careful if you modify value of this parameter, the pgw_endpoint value may be changed automatically too.
    cluster_intranet_subnet_id str
    Subnet id who can access this independent cluster, this field must and can only set when cluster_intranet is true. cluster_intranet_subnet_id can not modify once be set.
    cluster_ipvs bool
    Indicates whether ipvs is enabled. Default is true. False means iptables is enabled.
    cluster_level str
    Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevels to query available levels. Available value examples L5, L20, L50, L100, etc.
    cluster_max_pod_num float
    The maximum number of Pods per node in the cluster. Default is 256. The minimum value is 4. When its power unequal to 2, it will round upward to the closest power of 2.
    cluster_max_service_num float
    The maximum number of services in the cluster. Default is 256. The range is from 32 to 32768. When its power unequal to 2, it will round upward to the closest power of 2.
    cluster_name str
    Name of the cluster.
    cluster_node_num float
    Number of nodes in the cluster.
    cluster_os str
    Cluster operating system, supports setting public images (the field passes the corresponding image Name) and custom images (the field passes the corresponding image ID). For details, please refer to: https://cloud.tencent.com/document/product/457/68289.
    cluster_os_type str
    Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
    cluster_subnet_id str
    Subnet ID of the cluster, such as: subnet-b3p7d7q5.
    cluster_version str
    Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersions to get the upgradable cluster version.
    container_runtime str
    Runtime type of the cluster, the available values include: 'docker' and 'containerd'.The Kubernetes v1.24 has removed dockershim, so please use containerd in v1.24 or higher.Default is 'docker'.
    deletion_protection bool
    Indicates whether cluster deletion protection is enabled. Default is false.
    docker_graph_path str
    Docker graph path. Default is /var/lib/docker.
    domain str
    Domain name for access.
    enable_customized_pod_cidr bool
    Whether to enable the custom mode of node podCIDR size. Default is false.
    eni_subnet_ids Sequence[str]
    Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_type is 'VPC-CNI'. eni_subnet_ids can not empty once be set.
    event_persistence KubernetesClusterEventPersistenceArgs
    Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    exist_instances Sequence[KubernetesClusterExistInstanceArgs]
    create tke cluster by existed instances.
    extension_addons Sequence[KubernetesClusterExtensionAddonArgs]
    Information of the add-on to be installed.
    extra_args Sequence[str]
    Custom parameter information related to the node.
    globe_desired_pod_num float
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
    ignore_cluster_cidr_conflict bool
    Indicates whether to ignore the cluster cidr conflict error. Default is false.
    ignore_service_cidr_conflict bool
    Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNI mode.
    instance_delete_mode str
    The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
    is_non_static_ip_mode bool
    Indicates whether non-static ip mode is enabled. Default is false.
    kube_config str
    Kubernetes config.
    kube_config_intranet str
    Kubernetes config of private network.
    kube_proxy_mode str
    Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
    kubernetes_cluster_id str
    ID of the resource.
    labels Mapping[str, str]
    Labels of tke cluster nodes.
    log_agent KubernetesClusterLogAgentArgs
    Specify cluster log agent config.
    managed_cluster_internet_security_policies Sequence[str]
    this argument was deprecated, use cluster_internet_security_group instead. Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field cluster_deploy_type is 'MANAGED_CLUSTER' and cluster_internet is true. managed_cluster_internet_security_policies can not delete or empty once be set.

    Deprecated: Deprecated

    master_configs Sequence[KubernetesClusterMasterConfigArgs]
    Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
    mount_target str
    Mount target. Default is not mounting.
    network_type str
    Cluster network type, the available values include: 'GR' and 'VPC-CNI' and 'CiliumOverlay'. Default is GR.
    node_name_type str
    Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
    node_pool_global_configs Sequence[KubernetesClusterNodePoolGlobalConfigArgs]
    Global config effective for all node pools.
    password str
    Password of account.
    pgw_endpoint str
    The Intranet address used for access.
    pre_start_user_script str
    Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
    project_id float
    Project ID, default value is 0.
    resource_delete_options Sequence[KubernetesClusterResourceDeleteOptionArgs]
    The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
    runtime_version str
    Container Runtime version.
    security_policies Sequence[str]
    Access policy.
    service_cidr str
    A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    tags Mapping[str, str]
    The tags of the cluster.
    unschedulable float
    Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
    upgrade_instances_follow_cluster bool
    Indicates whether upgrade all instances when cluster_version change. Default is false.
    user_name str
    User name of account.
    vpc_cni_type str
    Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-eni for shared network card multi-IP mode and tke-direct-eni for independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, both eni_subnet_ids and vpc_cni_type must be set to empty.
    vpc_id str
    Vpc Id of the cluster.
    worker_configs Sequence[KubernetesClusterWorkerConfigArgs]
    Deploy the machine configuration information of the 'WORKER' service, and create <=20 units for common users. The other 'WORK' service are added by 'tencentcloud_kubernetes_scale_worker'.
    worker_instances_lists Sequence[KubernetesClusterWorkerInstancesListArgs]
    An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
    acquireClusterAdminRole Boolean
    If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to false after acquired.
    authOptions Property Map
    Specify cluster authentication configuration. Only available for managed cluster and cluster_version >= 1.20.
    autoUpgradeClusterLevel Boolean
    Whether the cluster level auto upgraded, valid for managed cluster.
    basePodNum Number
    The number of basic pods. valid when enable_customized_pod_cidr=true.
    cdcId String
    CDC ID.
    certificationAuthority String
    The certificate used for access.
    claimExpiredSeconds Number
    Claim expired seconds to recycle ENI. This field can only set when field network_type is 'VPC-CNI'. claim_expired_seconds must greater or equal than 300 and less than 15768000.
    clusterAsEnabled Boolean
    (Deprecated) This argument is deprecated because the TKE auto-scaling group was no longer available. Indicates whether to enable cluster node auto scaling. Default is false.

    Deprecated: Deprecated

    clusterAudit Property Map
    Specify Cluster Audit config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    clusterCidr String
    A network address block of the cluster. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    clusterDeployType String
    Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
    clusterDesc String
    Description of the cluster.
    clusterExternalEndpoint String
    External network address to access.
    clusterExtraArgs Property Map
    Customized parameters for master component,such as kube-apiserver, kube-controller-manager, kube-scheduler.
    clusterInternet Boolean
    Open internet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    clusterInternetDomain String
    Domain name for cluster Kube-apiserver internet access. Be careful if you modify value of this parameter, the cluster_external_endpoint value may be changed automatically too.
    clusterInternetSecurityGroup String
    Specify security group, NOTE: This argument must not be empty if cluster internet enabled.
    clusterIntranet Boolean
    Open intranet access or not. If this field is set 'true', the field below worker_config must be set. Because only cluster with node is allowed enable access endpoint. You may open it through tencentcloud.KubernetesClusterEndpoint.
    clusterIntranetDomain String
    Domain name for cluster Kube-apiserver intranet access. Be careful if you modify value of this parameter, the pgw_endpoint value may be changed automatically too.
    clusterIntranetSubnetId String
    Subnet id who can access this independent cluster, this field must and can only set when cluster_intranet is true. cluster_intranet_subnet_id can not modify once be set.
    clusterIpvs Boolean
    Indicates whether ipvs is enabled. Default is true. False means iptables is enabled.
    clusterLevel String
    Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevels to query available levels. Available value examples L5, L20, L50, L100, etc.
    clusterMaxPodNum Number
    The maximum number of Pods per node in the cluster. Default is 256. The minimum value is 4. When its power unequal to 2, it will round upward to the closest power of 2.
    clusterMaxServiceNum Number
    The maximum number of services in the cluster. Default is 256. The range is from 32 to 32768. When its power unequal to 2, it will round upward to the closest power of 2.
    clusterName String
    Name of the cluster.
    clusterNodeNum Number
    Number of nodes in the cluster.
    clusterOs String
    Cluster operating system, supports setting public images (the field passes the corresponding image Name) and custom images (the field passes the corresponding image ID). For details, please refer to: https://cloud.tencent.com/document/product/457/68289.
    clusterOsType String
    Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
    clusterSubnetId String
    Subnet ID of the cluster, such as: subnet-b3p7d7q5.
    clusterVersion String
    Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersions to get the upgradable cluster version.
    containerRuntime String
    Runtime type of the cluster, the available values include: 'docker' and 'containerd'.The Kubernetes v1.24 has removed dockershim, so please use containerd in v1.24 or higher.Default is 'docker'.
    deletionProtection Boolean
    Indicates whether cluster deletion protection is enabled. Default is false.
    dockerGraphPath String
    Docker graph path. Default is /var/lib/docker.
    domain String
    Domain name for access.
    enableCustomizedPodCidr Boolean
    Whether to enable the custom mode of node podCIDR size. Default is false.
    eniSubnetIds List<String>
    Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_type is 'VPC-CNI'. eni_subnet_ids can not empty once be set.
    eventPersistence Property Map
    Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
    existInstances List<Property Map>
    create tke cluster by existed instances.
    extensionAddons List<Property Map>
    Information of the add-on to be installed.
    extraArgs List<String>
    Custom parameter information related to the node.
    globeDesiredPodNum Number
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
    ignoreClusterCidrConflict Boolean
    Indicates whether to ignore the cluster cidr conflict error. Default is false.
    ignoreServiceCidrConflict Boolean
    Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNI mode.
    instanceDeleteMode String
    The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
    isNonStaticIpMode Boolean
    Indicates whether non-static ip mode is enabled. Default is false.
    kubeConfig String
    Kubernetes config.
    kubeConfigIntranet String
    Kubernetes config of private network.
    kubeProxyMode String
    Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
    kubernetesClusterId String
    ID of the resource.
    labels Map<String>
    Labels of tke cluster nodes.
    logAgent Property Map
    Specify cluster log agent config.
    managedClusterInternetSecurityPolicies List<String>
    this argument was deprecated, use cluster_internet_security_group instead. Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field cluster_deploy_type is 'MANAGED_CLUSTER' and cluster_internet is true. managed_cluster_internet_security_policies can not delete or empty once be set.

    Deprecated: Deprecated

    masterConfigs List<Property Map>
    Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
    mountTarget String
    Mount target. Default is not mounting.
    networkType String
    Cluster network type, the available values include: 'GR' and 'VPC-CNI' and 'CiliumOverlay'. Default is GR.
    nodeNameType String
    Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
    nodePoolGlobalConfigs List<Property Map>
    Global config effective for all node pools.
    password String
    Password of account.
    pgwEndpoint String
    The Intranet address used for access.
    preStartUserScript String
    Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
    projectId Number
    Project ID, default value is 0.
    resourceDeleteOptions List<Property Map>
    The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
    runtimeVersion String
    Container Runtime version.
    securityPolicies List<String>
    Access policy.
    serviceCidr String
    A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
    tags Map<String>
    The tags of the cluster.
    unschedulable Number
    Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
    upgradeInstancesFollowCluster Boolean
    Indicates whether upgrade all instances when cluster_version change. Default is false.
    userName String
    User name of account.
    vpcCniType String
    Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-eni for shared network card multi-IP mode and tke-direct-eni for independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, both eni_subnet_ids and vpc_cni_type must be set to empty.
    vpcId String
    Vpc Id of the cluster.
    workerConfigs List<Property Map>
    Deploy the machine configuration information of the 'WORKER' service, and create <=20 units for common users. The other 'WORK' service are added by 'tencentcloud_kubernetes_scale_worker'.
    workerInstancesLists List<Property Map>
    An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:

    Supporting Types

    KubernetesClusterAuthOptions, KubernetesClusterAuthOptionsArgs

    AutoCreateDiscoveryAnonymousAuth bool
    If set to true, the rbac rule will be created automatically which allow anonymous user to access '/.well-known/openid-configuration' and '/openid/v1/jwks'.
    Issuer string
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field, it will be ignored anyway.
    JwksUri string
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field, it will be ignored anyway.
    UseTkeDefault bool
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri, and they will be ignored.
    AutoCreateDiscoveryAnonymousAuth bool
    If set to true, the rbac rule will be created automatically which allow anonymous user to access '/.well-known/openid-configuration' and '/openid/v1/jwks'.
    Issuer string
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field, it will be ignored anyway.
    JwksUri string
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field, it will be ignored anyway.
    UseTkeDefault bool
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri, and they will be ignored.
    autoCreateDiscoveryAnonymousAuth Boolean
    If set to true, the rbac rule will be created automatically which allow anonymous user to access '/.well-known/openid-configuration' and '/openid/v1/jwks'.
    issuer String
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field, it will be ignored anyway.
    jwksUri String
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field, it will be ignored anyway.
    useTkeDefault Boolean
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri, and they will be ignored.
    autoCreateDiscoveryAnonymousAuth boolean
    If set to true, the rbac rule will be created automatically which allow anonymous user to access '/.well-known/openid-configuration' and '/openid/v1/jwks'.
    issuer string
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field, it will be ignored anyway.
    jwksUri string
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field, it will be ignored anyway.
    useTkeDefault boolean
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri, and they will be ignored.
    auto_create_discovery_anonymous_auth bool
    If set to true, the rbac rule will be created automatically which allow anonymous user to access '/.well-known/openid-configuration' and '/openid/v1/jwks'.
    issuer str
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field, it will be ignored anyway.
    jwks_uri str
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field, it will be ignored anyway.
    use_tke_default bool
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri, and they will be ignored.
    autoCreateDiscoveryAnonymousAuth Boolean
    If set to true, the rbac rule will be created automatically which allow anonymous user to access '/.well-known/openid-configuration' and '/openid/v1/jwks'.
    issuer String
    Specify service-account-issuer. If use_tke_default is set to true, please do not set this field, it will be ignored anyway.
    jwksUri String
    Specify service-account-jwks-uri. If use_tke_default is set to true, please do not set this field, it will be ignored anyway.
    useTkeDefault Boolean
    If set to true, the issuer and jwks_uri will be generated automatically by tke, please do not set issuer and jwks_uri, and they will be ignored.

    KubernetesClusterClusterAudit, KubernetesClusterClusterAuditArgs

    Enabled bool
    Specify weather the Cluster Audit enabled. NOTE: Enable Cluster Audit will also auto install Log Agent.
    DeleteAuditLogAndTopic bool
    when you want to close the cluster audit log or delete the cluster, you can use this parameter to determine whether the audit log set and topic created by default will be deleted.
    LogSetId string
    Specify id of existing CLS log set, or auto create a new set by leave it empty.
    TopicId string
    Specify id of existing CLS log topic, or auto create a new topic by leave it empty.
    Enabled bool
    Specify weather the Cluster Audit enabled. NOTE: Enable Cluster Audit will also auto install Log Agent.
    DeleteAuditLogAndTopic bool
    when you want to close the cluster audit log or delete the cluster, you can use this parameter to determine whether the audit log set and topic created by default will be deleted.
    LogSetId string
    Specify id of existing CLS log set, or auto create a new set by leave it empty.
    TopicId string
    Specify id of existing CLS log topic, or auto create a new topic by leave it empty.
    enabled Boolean
    Specify weather the Cluster Audit enabled. NOTE: Enable Cluster Audit will also auto install Log Agent.
    deleteAuditLogAndTopic Boolean
    when you want to close the cluster audit log or delete the cluster, you can use this parameter to determine whether the audit log set and topic created by default will be deleted.
    logSetId String
    Specify id of existing CLS log set, or auto create a new set by leave it empty.
    topicId String
    Specify id of existing CLS log topic, or auto create a new topic by leave it empty.
    enabled boolean
    Specify weather the Cluster Audit enabled. NOTE: Enable Cluster Audit will also auto install Log Agent.
    deleteAuditLogAndTopic boolean
    when you want to close the cluster audit log or delete the cluster, you can use this parameter to determine whether the audit log set and topic created by default will be deleted.
    logSetId string
    Specify id of existing CLS log set, or auto create a new set by leave it empty.
    topicId string
    Specify id of existing CLS log topic, or auto create a new topic by leave it empty.
    enabled bool
    Specify weather the Cluster Audit enabled. NOTE: Enable Cluster Audit will also auto install Log Agent.
    delete_audit_log_and_topic bool
    when you want to close the cluster audit log or delete the cluster, you can use this parameter to determine whether the audit log set and topic created by default will be deleted.
    log_set_id str
    Specify id of existing CLS log set, or auto create a new set by leave it empty.
    topic_id str
    Specify id of existing CLS log topic, or auto create a new topic by leave it empty.
    enabled Boolean
    Specify weather the Cluster Audit enabled. NOTE: Enable Cluster Audit will also auto install Log Agent.
    deleteAuditLogAndTopic Boolean
    when you want to close the cluster audit log or delete the cluster, you can use this parameter to determine whether the audit log set and topic created by default will be deleted.
    logSetId String
    Specify id of existing CLS log set, or auto create a new set by leave it empty.
    topicId String
    Specify id of existing CLS log topic, or auto create a new topic by leave it empty.

    KubernetesClusterClusterExtraArgs, KubernetesClusterClusterExtraArgsArgs

    KubeApiservers List<string>
    The customized parameters for kube-apiserver.
    KubeControllerManagers List<string>
    The customized parameters for kube-controller-manager.
    KubeSchedulers List<string>
    The customized parameters for kube-scheduler.
    KubeApiservers []string
    The customized parameters for kube-apiserver.
    KubeControllerManagers []string
    The customized parameters for kube-controller-manager.
    KubeSchedulers []string
    The customized parameters for kube-scheduler.
    kubeApiservers List<String>
    The customized parameters for kube-apiserver.
    kubeControllerManagers List<String>
    The customized parameters for kube-controller-manager.
    kubeSchedulers List<String>
    The customized parameters for kube-scheduler.
    kubeApiservers string[]
    The customized parameters for kube-apiserver.
    kubeControllerManagers string[]
    The customized parameters for kube-controller-manager.
    kubeSchedulers string[]
    The customized parameters for kube-scheduler.
    kube_apiservers Sequence[str]
    The customized parameters for kube-apiserver.
    kube_controller_managers Sequence[str]
    The customized parameters for kube-controller-manager.
    kube_schedulers Sequence[str]
    The customized parameters for kube-scheduler.
    kubeApiservers List<String>
    The customized parameters for kube-apiserver.
    kubeControllerManagers List<String>
    The customized parameters for kube-controller-manager.
    kubeSchedulers List<String>
    The customized parameters for kube-scheduler.

    KubernetesClusterEventPersistence, KubernetesClusterEventPersistenceArgs

    Enabled bool
    Specify weather the Event Persistence enabled.
    DeleteEventLogAndTopic bool
    when you want to close the cluster event persistence or delete the cluster, you can use this parameter to determine whether the event persistence log set and topic created by default will be deleted.
    LogSetId string
    Specify id of existing CLS log set, or auto create a new set by leave it empty.
    TopicId string
    Specify id of existing CLS log topic, or auto create a new topic by leave it empty.
    Enabled bool
    Specify weather the Event Persistence enabled.
    DeleteEventLogAndTopic bool
    when you want to close the cluster event persistence or delete the cluster, you can use this parameter to determine whether the event persistence log set and topic created by default will be deleted.
    LogSetId string
    Specify id of existing CLS log set, or auto create a new set by leave it empty.
    TopicId string
    Specify id of existing CLS log topic, or auto create a new topic by leave it empty.
    enabled Boolean
    Specify weather the Event Persistence enabled.
    deleteEventLogAndTopic Boolean
    when you want to close the cluster event persistence or delete the cluster, you can use this parameter to determine whether the event persistence log set and topic created by default will be deleted.
    logSetId String
    Specify id of existing CLS log set, or auto create a new set by leave it empty.
    topicId String
    Specify id of existing CLS log topic, or auto create a new topic by leave it empty.
    enabled boolean
    Specify weather the Event Persistence enabled.
    deleteEventLogAndTopic boolean
    when you want to close the cluster event persistence or delete the cluster, you can use this parameter to determine whether the event persistence log set and topic created by default will be deleted.
    logSetId string
    Specify id of existing CLS log set, or auto create a new set by leave it empty.
    topicId string
    Specify id of existing CLS log topic, or auto create a new topic by leave it empty.
    enabled bool
    Specify weather the Event Persistence enabled.
    delete_event_log_and_topic bool
    when you want to close the cluster event persistence or delete the cluster, you can use this parameter to determine whether the event persistence log set and topic created by default will be deleted.
    log_set_id str
    Specify id of existing CLS log set, or auto create a new set by leave it empty.
    topic_id str
    Specify id of existing CLS log topic, or auto create a new topic by leave it empty.
    enabled Boolean
    Specify weather the Event Persistence enabled.
    deleteEventLogAndTopic Boolean
    when you want to close the cluster event persistence or delete the cluster, you can use this parameter to determine whether the event persistence log set and topic created by default will be deleted.
    logSetId String
    Specify id of existing CLS log set, or auto create a new set by leave it empty.
    topicId String
    Specify id of existing CLS log topic, or auto create a new topic by leave it empty.

    KubernetesClusterExistInstance, KubernetesClusterExistInstanceArgs

    DesiredPodNumbers List<double>
    Custom mode cluster, you can specify the number of pods for each node. corresponding to the existed_instances_para.instance_ids parameter.
    InstancesPara KubernetesClusterExistInstanceInstancesPara
    Reinstallation parameters of an existing instance.
    NodeRole string
    Role of existed node. value:MASTER_ETCD or WORKER.
    DesiredPodNumbers []float64
    Custom mode cluster, you can specify the number of pods for each node. corresponding to the existed_instances_para.instance_ids parameter.
    InstancesPara KubernetesClusterExistInstanceInstancesPara
    Reinstallation parameters of an existing instance.
    NodeRole string
    Role of existed node. value:MASTER_ETCD or WORKER.
    desiredPodNumbers List<Double>
    Custom mode cluster, you can specify the number of pods for each node. corresponding to the existed_instances_para.instance_ids parameter.
    instancesPara KubernetesClusterExistInstanceInstancesPara
    Reinstallation parameters of an existing instance.
    nodeRole String
    Role of existed node. value:MASTER_ETCD or WORKER.
    desiredPodNumbers number[]
    Custom mode cluster, you can specify the number of pods for each node. corresponding to the existed_instances_para.instance_ids parameter.
    instancesPara KubernetesClusterExistInstanceInstancesPara
    Reinstallation parameters of an existing instance.
    nodeRole string
    Role of existed node. value:MASTER_ETCD or WORKER.
    desired_pod_numbers Sequence[float]
    Custom mode cluster, you can specify the number of pods for each node. corresponding to the existed_instances_para.instance_ids parameter.
    instances_para KubernetesClusterExistInstanceInstancesPara
    Reinstallation parameters of an existing instance.
    node_role str
    Role of existed node. value:MASTER_ETCD or WORKER.
    desiredPodNumbers List<Number>
    Custom mode cluster, you can specify the number of pods for each node. corresponding to the existed_instances_para.instance_ids parameter.
    instancesPara Property Map
    Reinstallation parameters of an existing instance.
    nodeRole String
    Role of existed node. value:MASTER_ETCD or WORKER.

    KubernetesClusterExistInstanceInstancesPara, KubernetesClusterExistInstanceInstancesParaArgs

    InstanceIds List<string>
    Cluster IDs.
    EnhancedMonitorService bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    EnhancedSecurityService bool
    To specify whether to enable cloud security service. Default is TRUE.
    KeyIds List<string>
    ID list of keys, should be set if password not set.
    MasterConfig KubernetesClusterExistInstanceInstancesParaMasterConfig
    Advanced Node Settings. commonly used to attach existing instances.
    Password string
    Password to access, should be set if key_ids not set.
    SecurityGroupIds List<string>
    Security groups to which a CVM instance belongs.
    InstanceIds []string
    Cluster IDs.
    EnhancedMonitorService bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    EnhancedSecurityService bool
    To specify whether to enable cloud security service. Default is TRUE.
    KeyIds []string
    ID list of keys, should be set if password not set.
    MasterConfig KubernetesClusterExistInstanceInstancesParaMasterConfig
    Advanced Node Settings. commonly used to attach existing instances.
    Password string
    Password to access, should be set if key_ids not set.
    SecurityGroupIds []string
    Security groups to which a CVM instance belongs.
    instanceIds List<String>
    Cluster IDs.
    enhancedMonitorService Boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService Boolean
    To specify whether to enable cloud security service. Default is TRUE.
    keyIds List<String>
    ID list of keys, should be set if password not set.
    masterConfig KubernetesClusterExistInstanceInstancesParaMasterConfig
    Advanced Node Settings. commonly used to attach existing instances.
    password String
    Password to access, should be set if key_ids not set.
    securityGroupIds List<String>
    Security groups to which a CVM instance belongs.
    instanceIds string[]
    Cluster IDs.
    enhancedMonitorService boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService boolean
    To specify whether to enable cloud security service. Default is TRUE.
    keyIds string[]
    ID list of keys, should be set if password not set.
    masterConfig KubernetesClusterExistInstanceInstancesParaMasterConfig
    Advanced Node Settings. commonly used to attach existing instances.
    password string
    Password to access, should be set if key_ids not set.
    securityGroupIds string[]
    Security groups to which a CVM instance belongs.
    instance_ids Sequence[str]
    Cluster IDs.
    enhanced_monitor_service bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhanced_security_service bool
    To specify whether to enable cloud security service. Default is TRUE.
    key_ids Sequence[str]
    ID list of keys, should be set if password not set.
    master_config KubernetesClusterExistInstanceInstancesParaMasterConfig
    Advanced Node Settings. commonly used to attach existing instances.
    password str
    Password to access, should be set if key_ids not set.
    security_group_ids Sequence[str]
    Security groups to which a CVM instance belongs.
    instanceIds List<String>
    Cluster IDs.
    enhancedMonitorService Boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService Boolean
    To specify whether to enable cloud security service. Default is TRUE.
    keyIds List<String>
    ID list of keys, should be set if password not set.
    masterConfig Property Map
    Advanced Node Settings. commonly used to attach existing instances.
    password String
    Password to access, should be set if key_ids not set.
    securityGroupIds List<String>
    Security groups to which a CVM instance belongs.

    KubernetesClusterExistInstanceInstancesParaMasterConfig, KubernetesClusterExistInstanceInstancesParaMasterConfigArgs

    DataDisk KubernetesClusterExistInstanceInstancesParaMasterConfigDataDisk
    Configurations of data disk.
    DesiredPodNumber double
    Indicate to set desired pod number in node. valid when the cluster is podCIDR.
    DockerGraphPath string
    Docker graph path. Default is /var/lib/docker.
    ExtraArgs KubernetesClusterExistInstanceInstancesParaMasterConfigExtraArgs
    Custom parameter information related to the node. This is a white-list parameter.
    GpuArgs KubernetesClusterExistInstanceInstancesParaMasterConfigGpuArgs
    GPU driver parameters.
    Labels List<KubernetesClusterExistInstanceInstancesParaMasterConfigLabel>
    Node label list.
    MountTarget string
    Mount target. Default is not mounting.
    Taints List<KubernetesClusterExistInstanceInstancesParaMasterConfigTaint>
    Node taint.
    Unschedulable double
    Set whether the joined nodes participate in scheduling, with a default value of 0, indicating participation in scheduling; Non 0 means not participating in scheduling.
    UserScript string
    User script encoded in base64, which will be executed after the k8s component runs. The user needs to ensure the script's reentrant and retry logic. The script and its generated log files can be viewed in the node path /data/ccs_userscript/. If the node needs to be initialized before joining the schedule, it can be used in conjunction with the unschedulable parameter. After the final initialization of the userScript is completed, add the command "kubectl uncordon nodename --kubeconfig=/root/.kube/config" to add the node to the schedule.
    DataDisk KubernetesClusterExistInstanceInstancesParaMasterConfigDataDisk
    Configurations of data disk.
    DesiredPodNumber float64
    Indicate to set desired pod number in node. valid when the cluster is podCIDR.
    DockerGraphPath string
    Docker graph path. Default is /var/lib/docker.
    ExtraArgs KubernetesClusterExistInstanceInstancesParaMasterConfigExtraArgs
    Custom parameter information related to the node. This is a white-list parameter.
    GpuArgs KubernetesClusterExistInstanceInstancesParaMasterConfigGpuArgs
    GPU driver parameters.
    Labels []KubernetesClusterExistInstanceInstancesParaMasterConfigLabel
    Node label list.
    MountTarget string
    Mount target. Default is not mounting.
    Taints []KubernetesClusterExistInstanceInstancesParaMasterConfigTaint
    Node taint.
    Unschedulable float64
    Set whether the joined nodes participate in scheduling, with a default value of 0, indicating participation in scheduling; Non 0 means not participating in scheduling.
    UserScript string
    User script encoded in base64, which will be executed after the k8s component runs. The user needs to ensure the script's reentrant and retry logic. The script and its generated log files can be viewed in the node path /data/ccs_userscript/. If the node needs to be initialized before joining the schedule, it can be used in conjunction with the unschedulable parameter. After the final initialization of the userScript is completed, add the command "kubectl uncordon nodename --kubeconfig=/root/.kube/config" to add the node to the schedule.
    dataDisk KubernetesClusterExistInstanceInstancesParaMasterConfigDataDisk
    Configurations of data disk.
    desiredPodNumber Double
    Indicate to set desired pod number in node. valid when the cluster is podCIDR.
    dockerGraphPath String
    Docker graph path. Default is /var/lib/docker.
    extraArgs KubernetesClusterExistInstanceInstancesParaMasterConfigExtraArgs
    Custom parameter information related to the node. This is a white-list parameter.
    gpuArgs KubernetesClusterExistInstanceInstancesParaMasterConfigGpuArgs
    GPU driver parameters.
    labels List<KubernetesClusterExistInstanceInstancesParaMasterConfigLabel>
    Node label list.
    mountTarget String
    Mount target. Default is not mounting.
    taints List<KubernetesClusterExistInstanceInstancesParaMasterConfigTaint>
    Node taint.
    unschedulable Double
    Set whether the joined nodes participate in scheduling, with a default value of 0, indicating participation in scheduling; Non 0 means not participating in scheduling.
    userScript String
    User script encoded in base64, which will be executed after the k8s component runs. The user needs to ensure the script's reentrant and retry logic. The script and its generated log files can be viewed in the node path /data/ccs_userscript/. If the node needs to be initialized before joining the schedule, it can be used in conjunction with the unschedulable parameter. After the final initialization of the userScript is completed, add the command "kubectl uncordon nodename --kubeconfig=/root/.kube/config" to add the node to the schedule.
    dataDisk KubernetesClusterExistInstanceInstancesParaMasterConfigDataDisk
    Configurations of data disk.
    desiredPodNumber number
    Indicate to set desired pod number in node. valid when the cluster is podCIDR.
    dockerGraphPath string
    Docker graph path. Default is /var/lib/docker.
    extraArgs KubernetesClusterExistInstanceInstancesParaMasterConfigExtraArgs
    Custom parameter information related to the node. This is a white-list parameter.
    gpuArgs KubernetesClusterExistInstanceInstancesParaMasterConfigGpuArgs
    GPU driver parameters.
    labels KubernetesClusterExistInstanceInstancesParaMasterConfigLabel[]
    Node label list.
    mountTarget string
    Mount target. Default is not mounting.
    taints KubernetesClusterExistInstanceInstancesParaMasterConfigTaint[]
    Node taint.
    unschedulable number
    Set whether the joined nodes participate in scheduling, with a default value of 0, indicating participation in scheduling; Non 0 means not participating in scheduling.
    userScript string
    User script encoded in base64, which will be executed after the k8s component runs. The user needs to ensure the script's reentrant and retry logic. The script and its generated log files can be viewed in the node path /data/ccs_userscript/. If the node needs to be initialized before joining the schedule, it can be used in conjunction with the unschedulable parameter. After the final initialization of the userScript is completed, add the command "kubectl uncordon nodename --kubeconfig=/root/.kube/config" to add the node to the schedule.
    data_disk KubernetesClusterExistInstanceInstancesParaMasterConfigDataDisk
    Configurations of data disk.
    desired_pod_number float
    Indicate to set desired pod number in node. valid when the cluster is podCIDR.
    docker_graph_path str
    Docker graph path. Default is /var/lib/docker.
    extra_args KubernetesClusterExistInstanceInstancesParaMasterConfigExtraArgs
    Custom parameter information related to the node. This is a white-list parameter.
    gpu_args KubernetesClusterExistInstanceInstancesParaMasterConfigGpuArgs
    GPU driver parameters.
    labels Sequence[KubernetesClusterExistInstanceInstancesParaMasterConfigLabel]
    Node label list.
    mount_target str
    Mount target. Default is not mounting.
    taints Sequence[KubernetesClusterExistInstanceInstancesParaMasterConfigTaint]
    Node taint.
    unschedulable float
    Set whether the joined nodes participate in scheduling, with a default value of 0, indicating participation in scheduling; Non 0 means not participating in scheduling.
    user_script str
    User script encoded in base64, which will be executed after the k8s component runs. The user needs to ensure the script's reentrant and retry logic. The script and its generated log files can be viewed in the node path /data/ccs_userscript/. If the node needs to be initialized before joining the schedule, it can be used in conjunction with the unschedulable parameter. After the final initialization of the userScript is completed, add the command "kubectl uncordon nodename --kubeconfig=/root/.kube/config" to add the node to the schedule.
    dataDisk Property Map
    Configurations of data disk.
    desiredPodNumber Number
    Indicate to set desired pod number in node. valid when the cluster is podCIDR.
    dockerGraphPath String
    Docker graph path. Default is /var/lib/docker.
    extraArgs Property Map
    Custom parameter information related to the node. This is a white-list parameter.
    gpuArgs Property Map
    GPU driver parameters.
    labels List<Property Map>
    Node label list.
    mountTarget String
    Mount target. Default is not mounting.
    taints List<Property Map>
    Node taint.
    unschedulable Number
    Set whether the joined nodes participate in scheduling, with a default value of 0, indicating participation in scheduling; Non 0 means not participating in scheduling.
    userScript String
    User script encoded in base64, which will be executed after the k8s component runs. The user needs to ensure the script's reentrant and retry logic. The script and its generated log files can be viewed in the node path /data/ccs_userscript/. If the node needs to be initialized before joining the schedule, it can be used in conjunction with the unschedulable parameter. After the final initialization of the userScript is completed, add the command "kubectl uncordon nodename --kubeconfig=/root/.kube/config" to add the node to the schedule.

    KubernetesClusterExistInstanceInstancesParaMasterConfigDataDisk, KubernetesClusterExistInstanceInstancesParaMasterConfigDataDiskArgs

    AutoFormatAndMount bool
    Indicate whether to auto format and mount or not. Default is false.
    DiskPartition string
    The name of the device or partition to mount.
    DiskSize double
    Volume of disk in GB. Default is 0.
    DiskType string
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    FileSystem string
    File system, e.g. ext3/ext4/xfs.
    MountTarget string
    Mount target.
    AutoFormatAndMount bool
    Indicate whether to auto format and mount or not. Default is false.
    DiskPartition string
    The name of the device or partition to mount.
    DiskSize float64
    Volume of disk in GB. Default is 0.
    DiskType string
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    FileSystem string
    File system, e.g. ext3/ext4/xfs.
    MountTarget string
    Mount target.
    autoFormatAndMount Boolean
    Indicate whether to auto format and mount or not. Default is false.
    diskPartition String
    The name of the device or partition to mount.
    diskSize Double
    Volume of disk in GB. Default is 0.
    diskType String
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    fileSystem String
    File system, e.g. ext3/ext4/xfs.
    mountTarget String
    Mount target.
    autoFormatAndMount boolean
    Indicate whether to auto format and mount or not. Default is false.
    diskPartition string
    The name of the device or partition to mount.
    diskSize number
    Volume of disk in GB. Default is 0.
    diskType string
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    fileSystem string
    File system, e.g. ext3/ext4/xfs.
    mountTarget string
    Mount target.
    auto_format_and_mount bool
    Indicate whether to auto format and mount or not. Default is false.
    disk_partition str
    The name of the device or partition to mount.
    disk_size float
    Volume of disk in GB. Default is 0.
    disk_type str
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    file_system str
    File system, e.g. ext3/ext4/xfs.
    mount_target str
    Mount target.
    autoFormatAndMount Boolean
    Indicate whether to auto format and mount or not. Default is false.
    diskPartition String
    The name of the device or partition to mount.
    diskSize Number
    Volume of disk in GB. Default is 0.
    diskType String
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    fileSystem String
    File system, e.g. ext3/ext4/xfs.
    mountTarget String
    Mount target.

    KubernetesClusterExistInstanceInstancesParaMasterConfigExtraArgs, KubernetesClusterExistInstanceInstancesParaMasterConfigExtraArgsArgs

    Kubelets List<string>
    Kubelet custom parameter. The parameter format is ["k1=v1", "k1=v2"].
    Kubelets []string
    Kubelet custom parameter. The parameter format is ["k1=v1", "k1=v2"].
    kubelets List<String>
    Kubelet custom parameter. The parameter format is ["k1=v1", "k1=v2"].
    kubelets string[]
    Kubelet custom parameter. The parameter format is ["k1=v1", "k1=v2"].
    kubelets Sequence[str]
    Kubelet custom parameter. The parameter format is ["k1=v1", "k1=v2"].
    kubelets List<String>
    Kubelet custom parameter. The parameter format is ["k1=v1", "k1=v2"].

    KubernetesClusterExistInstanceInstancesParaMasterConfigGpuArgs, KubernetesClusterExistInstanceInstancesParaMasterConfigGpuArgsArgs

    Cuda Dictionary<string, string>
    CUDA version. Format like: { version: String, name: String }. version: Version of GPU driver or CUDA; name: Name of GPU driver or CUDA.
    Cudnn Dictionary<string, string>
    cuDNN version. Format like: { version: String, name: String, doc_name: String, dev_name: String }. version: cuDNN version; name: cuDNN name; doc_name: Doc name of cuDNN; dev_name: Dev name of cuDNN.
    CustomDriver Dictionary<string, string>
    Custom GPU driver. Format like: {address: String}. address: URL of custom GPU driver address.
    Driver Dictionary<string, string>
    GPU driver version. Format like: { version: String, name: String }. version: Version of GPU driver or CUDA; name: Name of GPU driver or CUDA.
    MigEnable bool
    Whether to enable MIG.
    Cuda map[string]string
    CUDA version. Format like: { version: String, name: String }. version: Version of GPU driver or CUDA; name: Name of GPU driver or CUDA.
    Cudnn map[string]string
    cuDNN version. Format like: { version: String, name: String, doc_name: String, dev_name: String }. version: cuDNN version; name: cuDNN name; doc_name: Doc name of cuDNN; dev_name: Dev name of cuDNN.
    CustomDriver map[string]string
    Custom GPU driver. Format like: {address: String}. address: URL of custom GPU driver address.
    Driver map[string]string
    GPU driver version. Format like: { version: String, name: String }. version: Version of GPU driver or CUDA; name: Name of GPU driver or CUDA.
    MigEnable bool
    Whether to enable MIG.
    cuda Map<String,String>
    CUDA version. Format like: { version: String, name: String }. version: Version of GPU driver or CUDA; name: Name of GPU driver or CUDA.
    cudnn Map<String,String>
    cuDNN version. Format like: { version: String, name: String, doc_name: String, dev_name: String }. version: cuDNN version; name: cuDNN name; doc_name: Doc name of cuDNN; dev_name: Dev name of cuDNN.
    customDriver Map<String,String>
    Custom GPU driver. Format like: {address: String}. address: URL of custom GPU driver address.
    driver Map<String,String>
    GPU driver version. Format like: { version: String, name: String }. version: Version of GPU driver or CUDA; name: Name of GPU driver or CUDA.
    migEnable Boolean
    Whether to enable MIG.
    cuda {[key: string]: string}
    CUDA version. Format like: { version: String, name: String }. version: Version of GPU driver or CUDA; name: Name of GPU driver or CUDA.
    cudnn {[key: string]: string}
    cuDNN version. Format like: { version: String, name: String, doc_name: String, dev_name: String }. version: cuDNN version; name: cuDNN name; doc_name: Doc name of cuDNN; dev_name: Dev name of cuDNN.
    customDriver {[key: string]: string}
    Custom GPU driver. Format like: {address: String}. address: URL of custom GPU driver address.
    driver {[key: string]: string}
    GPU driver version. Format like: { version: String, name: String }. version: Version of GPU driver or CUDA; name: Name of GPU driver or CUDA.
    migEnable boolean
    Whether to enable MIG.
    cuda Mapping[str, str]
    CUDA version. Format like: { version: String, name: String }. version: Version of GPU driver or CUDA; name: Name of GPU driver or CUDA.
    cudnn Mapping[str, str]
    cuDNN version. Format like: { version: String, name: String, doc_name: String, dev_name: String }. version: cuDNN version; name: cuDNN name; doc_name: Doc name of cuDNN; dev_name: Dev name of cuDNN.
    custom_driver Mapping[str, str]
    Custom GPU driver. Format like: {address: String}. address: URL of custom GPU driver address.
    driver Mapping[str, str]
    GPU driver version. Format like: { version: String, name: String }. version: Version of GPU driver or CUDA; name: Name of GPU driver or CUDA.
    mig_enable bool
    Whether to enable MIG.
    cuda Map<String>
    CUDA version. Format like: { version: String, name: String }. version: Version of GPU driver or CUDA; name: Name of GPU driver or CUDA.
    cudnn Map<String>
    cuDNN version. Format like: { version: String, name: String, doc_name: String, dev_name: String }. version: cuDNN version; name: cuDNN name; doc_name: Doc name of cuDNN; dev_name: Dev name of cuDNN.
    customDriver Map<String>
    Custom GPU driver. Format like: {address: String}. address: URL of custom GPU driver address.
    driver Map<String>
    GPU driver version. Format like: { version: String, name: String }. version: Version of GPU driver or CUDA; name: Name of GPU driver or CUDA.
    migEnable Boolean
    Whether to enable MIG.

    KubernetesClusterExistInstanceInstancesParaMasterConfigLabel, KubernetesClusterExistInstanceInstancesParaMasterConfigLabelArgs

    Name string
    Name of map.
    Value string
    Value of map.
    Name string
    Name of map.
    Value string
    Value of map.
    name String
    Name of map.
    value String
    Value of map.
    name string
    Name of map.
    value string
    Value of map.
    name str
    Name of map.
    value str
    Value of map.
    name String
    Name of map.
    value String
    Value of map.

    KubernetesClusterExistInstanceInstancesParaMasterConfigTaint, KubernetesClusterExistInstanceInstancesParaMasterConfigTaintArgs

    Effect string
    Effect of the taint.
    Key string
    Key of the taint.
    Value string
    Value of the taint.
    Effect string
    Effect of the taint.
    Key string
    Key of the taint.
    Value string
    Value of the taint.
    effect String
    Effect of the taint.
    key String
    Key of the taint.
    value String
    Value of the taint.
    effect string
    Effect of the taint.
    key string
    Key of the taint.
    value string
    Value of the taint.
    effect str
    Effect of the taint.
    key str
    Key of the taint.
    value str
    Value of the taint.
    effect String
    Effect of the taint.
    key String
    Key of the taint.
    value String
    Value of the taint.

    KubernetesClusterExtensionAddon, KubernetesClusterExtensionAddonArgs

    Name string
    Add-on name.
    Param string
    Parameter of the add-on resource object in JSON string format, please check the example at the top of page for reference.
    Name string
    Add-on name.
    Param string
    Parameter of the add-on resource object in JSON string format, please check the example at the top of page for reference.
    name String
    Add-on name.
    param String
    Parameter of the add-on resource object in JSON string format, please check the example at the top of page for reference.
    name string
    Add-on name.
    param string
    Parameter of the add-on resource object in JSON string format, please check the example at the top of page for reference.
    name str
    Add-on name.
    param str
    Parameter of the add-on resource object in JSON string format, please check the example at the top of page for reference.
    name String
    Add-on name.
    param String
    Parameter of the add-on resource object in JSON string format, please check the example at the top of page for reference.

    KubernetesClusterLogAgent, KubernetesClusterLogAgentArgs

    Enabled bool
    Whether the log agent enabled.
    KubeletRootDir string
    Kubelet root directory as the literal.
    Enabled bool
    Whether the log agent enabled.
    KubeletRootDir string
    Kubelet root directory as the literal.
    enabled Boolean
    Whether the log agent enabled.
    kubeletRootDir String
    Kubelet root directory as the literal.
    enabled boolean
    Whether the log agent enabled.
    kubeletRootDir string
    Kubelet root directory as the literal.
    enabled bool
    Whether the log agent enabled.
    kubelet_root_dir str
    Kubelet root directory as the literal.
    enabled Boolean
    Whether the log agent enabled.
    kubeletRootDir String
    Kubelet root directory as the literal.

    KubernetesClusterMasterConfig, KubernetesClusterMasterConfigArgs

    InstanceType string
    Specified types of CVM instance.
    SubnetId string
    Private network ID.
    AvailabilityZone string
    Indicates which availability zone will be used.
    BandwidthPackageId string
    bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    CamRoleName string
    CAM role name authorized to access.
    Count double
    Number of cvm.
    DataDisks List<KubernetesClusterMasterConfigDataDisk>
    Configurations of data disk.
    DesiredPodNum double
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_num for current node. Either all the fields desired_pod_num or none.
    DisasterRecoverGroupIds List<string>
    Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
    EnhancedMonitorService bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    EnhancedSecurityService bool
    To specify whether to enable cloud security service. Default is TRUE.
    Hostname string
    The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
    HpcClusterId string
    Id of cvm hpc cluster.
    ImgId string
    The valid image id, format of img-xxx. Note: img_id will be replaced with the image corresponding to TKE cluster_os.
    InstanceChargeType string
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. The default is POSTPAID_BY_HOUR. Note: TencentCloud International only supports POSTPAID_BY_HOUR, PREPAID instance will not terminated after cluster deleted, and may not allow to delete before expired.
    InstanceChargeTypePrepaidPeriod double
    The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    InstanceChargeTypePrepaidRenewFlag string
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    InstanceName string
    Name of the CVMs.
    InternetChargeType string
    Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
    InternetMaxBandwidthOut double
    Max bandwidth of Internet access in Mbps. Default is 0.
    KeyIds List<string>
    ID list of keys, should be set if password not set.
    Password string
    Password to access, should be set if key_ids not set.
    PublicIpAssigned bool
    Specify whether to assign an Internet IP address.
    SecurityGroupIds List<string>
    Security groups to which a CVM instance belongs.
    SystemDiskSize double
    Volume of system disk in GB. Default is 50.
    SystemDiskType string
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_SSD: SSD, CLOUD_PREMIUM: Premium Cloud Storage. NOTE: CLOUD_BASIC, LOCAL_BASIC and LOCAL_SSD are deprecated.
    UserData string
    ase64-encoded User Data text, the length limit is 16KB.
    InstanceType string
    Specified types of CVM instance.
    SubnetId string
    Private network ID.
    AvailabilityZone string
    Indicates which availability zone will be used.
    BandwidthPackageId string
    bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    CamRoleName string
    CAM role name authorized to access.
    Count float64
    Number of cvm.
    DataDisks []KubernetesClusterMasterConfigDataDisk
    Configurations of data disk.
    DesiredPodNum float64
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_num for current node. Either all the fields desired_pod_num or none.
    DisasterRecoverGroupIds []string
    Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
    EnhancedMonitorService bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    EnhancedSecurityService bool
    To specify whether to enable cloud security service. Default is TRUE.
    Hostname string
    The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
    HpcClusterId string
    Id of cvm hpc cluster.
    ImgId string
    The valid image id, format of img-xxx. Note: img_id will be replaced with the image corresponding to TKE cluster_os.
    InstanceChargeType string
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. The default is POSTPAID_BY_HOUR. Note: TencentCloud International only supports POSTPAID_BY_HOUR, PREPAID instance will not terminated after cluster deleted, and may not allow to delete before expired.
    InstanceChargeTypePrepaidPeriod float64
    The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    InstanceChargeTypePrepaidRenewFlag string
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    InstanceName string
    Name of the CVMs.
    InternetChargeType string
    Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
    InternetMaxBandwidthOut float64
    Max bandwidth of Internet access in Mbps. Default is 0.
    KeyIds []string
    ID list of keys, should be set if password not set.
    Password string
    Password to access, should be set if key_ids not set.
    PublicIpAssigned bool
    Specify whether to assign an Internet IP address.
    SecurityGroupIds []string
    Security groups to which a CVM instance belongs.
    SystemDiskSize float64
    Volume of system disk in GB. Default is 50.
    SystemDiskType string
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_SSD: SSD, CLOUD_PREMIUM: Premium Cloud Storage. NOTE: CLOUD_BASIC, LOCAL_BASIC and LOCAL_SSD are deprecated.
    UserData string
    ase64-encoded User Data text, the length limit is 16KB.
    instanceType String
    Specified types of CVM instance.
    subnetId String
    Private network ID.
    availabilityZone String
    Indicates which availability zone will be used.
    bandwidthPackageId String
    bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    camRoleName String
    CAM role name authorized to access.
    count Double
    Number of cvm.
    dataDisks List<KubernetesClusterMasterConfigDataDisk>
    Configurations of data disk.
    desiredPodNum Double
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_num for current node. Either all the fields desired_pod_num or none.
    disasterRecoverGroupIds List<String>
    Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
    enhancedMonitorService Boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService Boolean
    To specify whether to enable cloud security service. Default is TRUE.
    hostname String
    The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
    hpcClusterId String
    Id of cvm hpc cluster.
    imgId String
    The valid image id, format of img-xxx. Note: img_id will be replaced with the image corresponding to TKE cluster_os.
    instanceChargeType String
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. The default is POSTPAID_BY_HOUR. Note: TencentCloud International only supports POSTPAID_BY_HOUR, PREPAID instance will not terminated after cluster deleted, and may not allow to delete before expired.
    instanceChargeTypePrepaidPeriod Double
    The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instanceChargeTypePrepaidRenewFlag String
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    instanceName String
    Name of the CVMs.
    internetChargeType String
    Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut Double
    Max bandwidth of Internet access in Mbps. Default is 0.
    keyIds List<String>
    ID list of keys, should be set if password not set.
    password String
    Password to access, should be set if key_ids not set.
    publicIpAssigned Boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds List<String>
    Security groups to which a CVM instance belongs.
    systemDiskSize Double
    Volume of system disk in GB. Default is 50.
    systemDiskType String
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_SSD: SSD, CLOUD_PREMIUM: Premium Cloud Storage. NOTE: CLOUD_BASIC, LOCAL_BASIC and LOCAL_SSD are deprecated.
    userData String
    ase64-encoded User Data text, the length limit is 16KB.
    instanceType string
    Specified types of CVM instance.
    subnetId string
    Private network ID.
    availabilityZone string
    Indicates which availability zone will be used.
    bandwidthPackageId string
    bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    camRoleName string
    CAM role name authorized to access.
    count number
    Number of cvm.
    dataDisks KubernetesClusterMasterConfigDataDisk[]
    Configurations of data disk.
    desiredPodNum number
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_num for current node. Either all the fields desired_pod_num or none.
    disasterRecoverGroupIds string[]
    Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
    enhancedMonitorService boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService boolean
    To specify whether to enable cloud security service. Default is TRUE.
    hostname string
    The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
    hpcClusterId string
    Id of cvm hpc cluster.
    imgId string
    The valid image id, format of img-xxx. Note: img_id will be replaced with the image corresponding to TKE cluster_os.
    instanceChargeType string
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. The default is POSTPAID_BY_HOUR. Note: TencentCloud International only supports POSTPAID_BY_HOUR, PREPAID instance will not terminated after cluster deleted, and may not allow to delete before expired.
    instanceChargeTypePrepaidPeriod number
    The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instanceChargeTypePrepaidRenewFlag string
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    instanceName string
    Name of the CVMs.
    internetChargeType string
    Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut number
    Max bandwidth of Internet access in Mbps. Default is 0.
    keyIds string[]
    ID list of keys, should be set if password not set.
    password string
    Password to access, should be set if key_ids not set.
    publicIpAssigned boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds string[]
    Security groups to which a CVM instance belongs.
    systemDiskSize number
    Volume of system disk in GB. Default is 50.
    systemDiskType string
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_SSD: SSD, CLOUD_PREMIUM: Premium Cloud Storage. NOTE: CLOUD_BASIC, LOCAL_BASIC and LOCAL_SSD are deprecated.
    userData string
    ase64-encoded User Data text, the length limit is 16KB.
    instance_type str
    Specified types of CVM instance.
    subnet_id str
    Private network ID.
    availability_zone str
    Indicates which availability zone will be used.
    bandwidth_package_id str
    bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    cam_role_name str
    CAM role name authorized to access.
    count float
    Number of cvm.
    data_disks Sequence[KubernetesClusterMasterConfigDataDisk]
    Configurations of data disk.
    desired_pod_num float
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_num for current node. Either all the fields desired_pod_num or none.
    disaster_recover_group_ids Sequence[str]
    Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
    enhanced_monitor_service bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhanced_security_service bool
    To specify whether to enable cloud security service. Default is TRUE.
    hostname str
    The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
    hpc_cluster_id str
    Id of cvm hpc cluster.
    img_id str
    The valid image id, format of img-xxx. Note: img_id will be replaced with the image corresponding to TKE cluster_os.
    instance_charge_type str
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. The default is POSTPAID_BY_HOUR. Note: TencentCloud International only supports POSTPAID_BY_HOUR, PREPAID instance will not terminated after cluster deleted, and may not allow to delete before expired.
    instance_charge_type_prepaid_period float
    The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instance_charge_type_prepaid_renew_flag str
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    instance_name str
    Name of the CVMs.
    internet_charge_type str
    Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
    internet_max_bandwidth_out float
    Max bandwidth of Internet access in Mbps. Default is 0.
    key_ids Sequence[str]
    ID list of keys, should be set if password not set.
    password str
    Password to access, should be set if key_ids not set.
    public_ip_assigned bool
    Specify whether to assign an Internet IP address.
    security_group_ids Sequence[str]
    Security groups to which a CVM instance belongs.
    system_disk_size float
    Volume of system disk in GB. Default is 50.
    system_disk_type str
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_SSD: SSD, CLOUD_PREMIUM: Premium Cloud Storage. NOTE: CLOUD_BASIC, LOCAL_BASIC and LOCAL_SSD are deprecated.
    user_data str
    ase64-encoded User Data text, the length limit is 16KB.
    instanceType String
    Specified types of CVM instance.
    subnetId String
    Private network ID.
    availabilityZone String
    Indicates which availability zone will be used.
    bandwidthPackageId String
    bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    camRoleName String
    CAM role name authorized to access.
    count Number
    Number of cvm.
    dataDisks List<Property Map>
    Configurations of data disk.
    desiredPodNum Number
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_num for current node. Either all the fields desired_pod_num or none.
    disasterRecoverGroupIds List<String>
    Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
    enhancedMonitorService Boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService Boolean
    To specify whether to enable cloud security service. Default is TRUE.
    hostname String
    The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
    hpcClusterId String
    Id of cvm hpc cluster.
    imgId String
    The valid image id, format of img-xxx. Note: img_id will be replaced with the image corresponding to TKE cluster_os.
    instanceChargeType String
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. The default is POSTPAID_BY_HOUR. Note: TencentCloud International only supports POSTPAID_BY_HOUR, PREPAID instance will not terminated after cluster deleted, and may not allow to delete before expired.
    instanceChargeTypePrepaidPeriod Number
    The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instanceChargeTypePrepaidRenewFlag String
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    instanceName String
    Name of the CVMs.
    internetChargeType String
    Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut Number
    Max bandwidth of Internet access in Mbps. Default is 0.
    keyIds List<String>
    ID list of keys, should be set if password not set.
    password String
    Password to access, should be set if key_ids not set.
    publicIpAssigned Boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds List<String>
    Security groups to which a CVM instance belongs.
    systemDiskSize Number
    Volume of system disk in GB. Default is 50.
    systemDiskType String
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_SSD: SSD, CLOUD_PREMIUM: Premium Cloud Storage. NOTE: CLOUD_BASIC, LOCAL_BASIC and LOCAL_SSD are deprecated.
    userData String
    ase64-encoded User Data text, the length limit is 16KB.

    KubernetesClusterMasterConfigDataDisk, KubernetesClusterMasterConfigDataDiskArgs

    AutoFormatAndMount bool
    Indicate whether to auto format and mount or not. Default is false.
    DiskPartition string
    The name of the device or partition to mount.
    DiskSize double
    Volume of disk in GB. Default is 0.
    DiskType string
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    Encrypt bool
    Indicates whether to encrypt data disk, default false.
    FileSystem string
    File system, e.g. ext3/ext4/xfs.
    KmsKeyId string
    ID of the custom CMK in the format of UUID or kms-abcd1234. This parameter is used to encrypt cloud disks.
    MountTarget string
    Mount target.
    SnapshotId string
    Data disk snapshot ID.
    AutoFormatAndMount bool
    Indicate whether to auto format and mount or not. Default is false.
    DiskPartition string
    The name of the device or partition to mount.
    DiskSize float64
    Volume of disk in GB. Default is 0.
    DiskType string
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    Encrypt bool
    Indicates whether to encrypt data disk, default false.
    FileSystem string
    File system, e.g. ext3/ext4/xfs.
    KmsKeyId string
    ID of the custom CMK in the format of UUID or kms-abcd1234. This parameter is used to encrypt cloud disks.
    MountTarget string
    Mount target.
    SnapshotId string
    Data disk snapshot ID.
    autoFormatAndMount Boolean
    Indicate whether to auto format and mount or not. Default is false.
    diskPartition String
    The name of the device or partition to mount.
    diskSize Double
    Volume of disk in GB. Default is 0.
    diskType String
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    encrypt Boolean
    Indicates whether to encrypt data disk, default false.
    fileSystem String
    File system, e.g. ext3/ext4/xfs.
    kmsKeyId String
    ID of the custom CMK in the format of UUID or kms-abcd1234. This parameter is used to encrypt cloud disks.
    mountTarget String
    Mount target.
    snapshotId String
    Data disk snapshot ID.
    autoFormatAndMount boolean
    Indicate whether to auto format and mount or not. Default is false.
    diskPartition string
    The name of the device or partition to mount.
    diskSize number
    Volume of disk in GB. Default is 0.
    diskType string
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    encrypt boolean
    Indicates whether to encrypt data disk, default false.
    fileSystem string
    File system, e.g. ext3/ext4/xfs.
    kmsKeyId string
    ID of the custom CMK in the format of UUID or kms-abcd1234. This parameter is used to encrypt cloud disks.
    mountTarget string
    Mount target.
    snapshotId string
    Data disk snapshot ID.
    auto_format_and_mount bool
    Indicate whether to auto format and mount or not. Default is false.
    disk_partition str
    The name of the device or partition to mount.
    disk_size float
    Volume of disk in GB. Default is 0.
    disk_type str
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    encrypt bool
    Indicates whether to encrypt data disk, default false.
    file_system str
    File system, e.g. ext3/ext4/xfs.
    kms_key_id str
    ID of the custom CMK in the format of UUID or kms-abcd1234. This parameter is used to encrypt cloud disks.
    mount_target str
    Mount target.
    snapshot_id str
    Data disk snapshot ID.
    autoFormatAndMount Boolean
    Indicate whether to auto format and mount or not. Default is false.
    diskPartition String
    The name of the device or partition to mount.
    diskSize Number
    Volume of disk in GB. Default is 0.
    diskType String
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    encrypt Boolean
    Indicates whether to encrypt data disk, default false.
    fileSystem String
    File system, e.g. ext3/ext4/xfs.
    kmsKeyId String
    ID of the custom CMK in the format of UUID or kms-abcd1234. This parameter is used to encrypt cloud disks.
    mountTarget String
    Mount target.
    snapshotId String
    Data disk snapshot ID.

    KubernetesClusterNodePoolGlobalConfig, KubernetesClusterNodePoolGlobalConfigArgs

    Expander string
    Indicates which scale-out method will be used when there are multiple scaling groups. Valid values: random - select a random scaling group, most-pods - select the scaling group that can schedule the most pods, least-waste - select the scaling group that can ensure the fewest remaining resources after Pod scheduling.
    IgnoreDaemonSetsUtilization bool
    Whether to ignore DaemonSet pods by default when calculating resource usage.
    IsScaleInEnabled bool
    Indicates whether to enable scale-in.
    MaxConcurrentScaleIn double
    Max concurrent scale-in volume.
    ScaleInDelay double
    Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
    ScaleInUnneededTime double
    Number of consecutive minutes of idleness after which the node is subject to scale-in.
    ScaleInUtilizationThreshold double
    Percentage of node resource usage below which the node is considered to be idle.
    SkipNodesWithLocalStorage bool
    During scale-in, ignore nodes with local storage pods.
    SkipNodesWithSystemPods bool
    During scale-in, ignore nodes with pods in the kube-system namespace that are not managed by DaemonSet.
    Expander string
    Indicates which scale-out method will be used when there are multiple scaling groups. Valid values: random - select a random scaling group, most-pods - select the scaling group that can schedule the most pods, least-waste - select the scaling group that can ensure the fewest remaining resources after Pod scheduling.
    IgnoreDaemonSetsUtilization bool
    Whether to ignore DaemonSet pods by default when calculating resource usage.
    IsScaleInEnabled bool
    Indicates whether to enable scale-in.
    MaxConcurrentScaleIn float64
    Max concurrent scale-in volume.
    ScaleInDelay float64
    Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
    ScaleInUnneededTime float64
    Number of consecutive minutes of idleness after which the node is subject to scale-in.
    ScaleInUtilizationThreshold float64
    Percentage of node resource usage below which the node is considered to be idle.
    SkipNodesWithLocalStorage bool
    During scale-in, ignore nodes with local storage pods.
    SkipNodesWithSystemPods bool
    During scale-in, ignore nodes with pods in the kube-system namespace that are not managed by DaemonSet.
    expander String
    Indicates which scale-out method will be used when there are multiple scaling groups. Valid values: random - select a random scaling group, most-pods - select the scaling group that can schedule the most pods, least-waste - select the scaling group that can ensure the fewest remaining resources after Pod scheduling.
    ignoreDaemonSetsUtilization Boolean
    Whether to ignore DaemonSet pods by default when calculating resource usage.
    isScaleInEnabled Boolean
    Indicates whether to enable scale-in.
    maxConcurrentScaleIn Double
    Max concurrent scale-in volume.
    scaleInDelay Double
    Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
    scaleInUnneededTime Double
    Number of consecutive minutes of idleness after which the node is subject to scale-in.
    scaleInUtilizationThreshold Double
    Percentage of node resource usage below which the node is considered to be idle.
    skipNodesWithLocalStorage Boolean
    During scale-in, ignore nodes with local storage pods.
    skipNodesWithSystemPods Boolean
    During scale-in, ignore nodes with pods in the kube-system namespace that are not managed by DaemonSet.
    expander string
    Indicates which scale-out method will be used when there are multiple scaling groups. Valid values: random - select a random scaling group, most-pods - select the scaling group that can schedule the most pods, least-waste - select the scaling group that can ensure the fewest remaining resources after Pod scheduling.
    ignoreDaemonSetsUtilization boolean
    Whether to ignore DaemonSet pods by default when calculating resource usage.
    isScaleInEnabled boolean
    Indicates whether to enable scale-in.
    maxConcurrentScaleIn number
    Max concurrent scale-in volume.
    scaleInDelay number
    Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
    scaleInUnneededTime number
    Number of consecutive minutes of idleness after which the node is subject to scale-in.
    scaleInUtilizationThreshold number
    Percentage of node resource usage below which the node is considered to be idle.
    skipNodesWithLocalStorage boolean
    During scale-in, ignore nodes with local storage pods.
    skipNodesWithSystemPods boolean
    During scale-in, ignore nodes with pods in the kube-system namespace that are not managed by DaemonSet.
    expander str
    Indicates which scale-out method will be used when there are multiple scaling groups. Valid values: random - select a random scaling group, most-pods - select the scaling group that can schedule the most pods, least-waste - select the scaling group that can ensure the fewest remaining resources after Pod scheduling.
    ignore_daemon_sets_utilization bool
    Whether to ignore DaemonSet pods by default when calculating resource usage.
    is_scale_in_enabled bool
    Indicates whether to enable scale-in.
    max_concurrent_scale_in float
    Max concurrent scale-in volume.
    scale_in_delay float
    Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
    scale_in_unneeded_time float
    Number of consecutive minutes of idleness after which the node is subject to scale-in.
    scale_in_utilization_threshold float
    Percentage of node resource usage below which the node is considered to be idle.
    skip_nodes_with_local_storage bool
    During scale-in, ignore nodes with local storage pods.
    skip_nodes_with_system_pods bool
    During scale-in, ignore nodes with pods in the kube-system namespace that are not managed by DaemonSet.
    expander String
    Indicates which scale-out method will be used when there are multiple scaling groups. Valid values: random - select a random scaling group, most-pods - select the scaling group that can schedule the most pods, least-waste - select the scaling group that can ensure the fewest remaining resources after Pod scheduling.
    ignoreDaemonSetsUtilization Boolean
    Whether to ignore DaemonSet pods by default when calculating resource usage.
    isScaleInEnabled Boolean
    Indicates whether to enable scale-in.
    maxConcurrentScaleIn Number
    Max concurrent scale-in volume.
    scaleInDelay Number
    Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
    scaleInUnneededTime Number
    Number of consecutive minutes of idleness after which the node is subject to scale-in.
    scaleInUtilizationThreshold Number
    Percentage of node resource usage below which the node is considered to be idle.
    skipNodesWithLocalStorage Boolean
    During scale-in, ignore nodes with local storage pods.
    skipNodesWithSystemPods Boolean
    During scale-in, ignore nodes with pods in the kube-system namespace that are not managed by DaemonSet.

    KubernetesClusterResourceDeleteOption, KubernetesClusterResourceDeleteOptionArgs

    DeleteMode string
    The deletion mode of CBS resources when the cluster is deleted, terminate (destroy), retain (retain). Other resources are deleted by default.
    ResourceType string
    Resource type, valid values are CBS, CLB, and CVM.
    SkipDeletionProtection bool
    Whether to skip resources with deletion protection enabled, the default is false.
    DeleteMode string
    The deletion mode of CBS resources when the cluster is deleted, terminate (destroy), retain (retain). Other resources are deleted by default.
    ResourceType string
    Resource type, valid values are CBS, CLB, and CVM.
    SkipDeletionProtection bool
    Whether to skip resources with deletion protection enabled, the default is false.
    deleteMode String
    The deletion mode of CBS resources when the cluster is deleted, terminate (destroy), retain (retain). Other resources are deleted by default.
    resourceType String
    Resource type, valid values are CBS, CLB, and CVM.
    skipDeletionProtection Boolean
    Whether to skip resources with deletion protection enabled, the default is false.
    deleteMode string
    The deletion mode of CBS resources when the cluster is deleted, terminate (destroy), retain (retain). Other resources are deleted by default.
    resourceType string
    Resource type, valid values are CBS, CLB, and CVM.
    skipDeletionProtection boolean
    Whether to skip resources with deletion protection enabled, the default is false.
    delete_mode str
    The deletion mode of CBS resources when the cluster is deleted, terminate (destroy), retain (retain). Other resources are deleted by default.
    resource_type str
    Resource type, valid values are CBS, CLB, and CVM.
    skip_deletion_protection bool
    Whether to skip resources with deletion protection enabled, the default is false.
    deleteMode String
    The deletion mode of CBS resources when the cluster is deleted, terminate (destroy), retain (retain). Other resources are deleted by default.
    resourceType String
    Resource type, valid values are CBS, CLB, and CVM.
    skipDeletionProtection Boolean
    Whether to skip resources with deletion protection enabled, the default is false.

    KubernetesClusterWorkerConfig, KubernetesClusterWorkerConfigArgs

    InstanceType string
    Specified types of CVM instance.
    SubnetId string
    Private network ID.
    AvailabilityZone string
    Indicates which availability zone will be used.
    BandwidthPackageId string
    bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    CamRoleName string
    CAM role name authorized to access.
    Count double
    Number of cvm.
    DataDisks List<KubernetesClusterWorkerConfigDataDisk>
    Configurations of data disk.
    DesiredPodNum double
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_num for current node. Either all the fields desired_pod_num or none.
    DisasterRecoverGroupIds List<string>
    Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
    EnhancedMonitorService bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    EnhancedSecurityService bool
    To specify whether to enable cloud security service. Default is TRUE.
    Hostname string
    The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
    HpcClusterId string
    Id of cvm hpc cluster.
    ImgId string
    The valid image id, format of img-xxx. Note: img_id will be replaced with the image corresponding to TKE cluster_os.
    InstanceChargeType string
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. The default is POSTPAID_BY_HOUR. Note: TencentCloud International only supports POSTPAID_BY_HOUR, PREPAID instance will not terminated after cluster deleted, and may not allow to delete before expired.
    InstanceChargeTypePrepaidPeriod double
    The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    InstanceChargeTypePrepaidRenewFlag string
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    InstanceName string
    Name of the CVMs.
    InternetChargeType string
    Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
    InternetMaxBandwidthOut double
    Max bandwidth of Internet access in Mbps. Default is 0.
    KeyIds List<string>
    ID list of keys, should be set if password not set.
    Password string
    Password to access, should be set if key_ids not set.
    PublicIpAssigned bool
    Specify whether to assign an Internet IP address.
    SecurityGroupIds List<string>
    Security groups to which a CVM instance belongs.
    SystemDiskSize double
    Volume of system disk in GB. Default is 50.
    SystemDiskType string
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_SSD: SSD, CLOUD_PREMIUM: Premium Cloud Storage. NOTE: CLOUD_BASIC, LOCAL_BASIC and LOCAL_SSD are deprecated.
    UserData string
    ase64-encoded User Data text, the length limit is 16KB.
    InstanceType string
    Specified types of CVM instance.
    SubnetId string
    Private network ID.
    AvailabilityZone string
    Indicates which availability zone will be used.
    BandwidthPackageId string
    bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    CamRoleName string
    CAM role name authorized to access.
    Count float64
    Number of cvm.
    DataDisks []KubernetesClusterWorkerConfigDataDisk
    Configurations of data disk.
    DesiredPodNum float64
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_num for current node. Either all the fields desired_pod_num or none.
    DisasterRecoverGroupIds []string
    Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
    EnhancedMonitorService bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    EnhancedSecurityService bool
    To specify whether to enable cloud security service. Default is TRUE.
    Hostname string
    The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
    HpcClusterId string
    Id of cvm hpc cluster.
    ImgId string
    The valid image id, format of img-xxx. Note: img_id will be replaced with the image corresponding to TKE cluster_os.
    InstanceChargeType string
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. The default is POSTPAID_BY_HOUR. Note: TencentCloud International only supports POSTPAID_BY_HOUR, PREPAID instance will not terminated after cluster deleted, and may not allow to delete before expired.
    InstanceChargeTypePrepaidPeriod float64
    The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    InstanceChargeTypePrepaidRenewFlag string
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    InstanceName string
    Name of the CVMs.
    InternetChargeType string
    Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
    InternetMaxBandwidthOut float64
    Max bandwidth of Internet access in Mbps. Default is 0.
    KeyIds []string
    ID list of keys, should be set if password not set.
    Password string
    Password to access, should be set if key_ids not set.
    PublicIpAssigned bool
    Specify whether to assign an Internet IP address.
    SecurityGroupIds []string
    Security groups to which a CVM instance belongs.
    SystemDiskSize float64
    Volume of system disk in GB. Default is 50.
    SystemDiskType string
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_SSD: SSD, CLOUD_PREMIUM: Premium Cloud Storage. NOTE: CLOUD_BASIC, LOCAL_BASIC and LOCAL_SSD are deprecated.
    UserData string
    ase64-encoded User Data text, the length limit is 16KB.
    instanceType String
    Specified types of CVM instance.
    subnetId String
    Private network ID.
    availabilityZone String
    Indicates which availability zone will be used.
    bandwidthPackageId String
    bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    camRoleName String
    CAM role name authorized to access.
    count Double
    Number of cvm.
    dataDisks List<KubernetesClusterWorkerConfigDataDisk>
    Configurations of data disk.
    desiredPodNum Double
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_num for current node. Either all the fields desired_pod_num or none.
    disasterRecoverGroupIds List<String>
    Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
    enhancedMonitorService Boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService Boolean
    To specify whether to enable cloud security service. Default is TRUE.
    hostname String
    The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
    hpcClusterId String
    Id of cvm hpc cluster.
    imgId String
    The valid image id, format of img-xxx. Note: img_id will be replaced with the image corresponding to TKE cluster_os.
    instanceChargeType String
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. The default is POSTPAID_BY_HOUR. Note: TencentCloud International only supports POSTPAID_BY_HOUR, PREPAID instance will not terminated after cluster deleted, and may not allow to delete before expired.
    instanceChargeTypePrepaidPeriod Double
    The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instanceChargeTypePrepaidRenewFlag String
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    instanceName String
    Name of the CVMs.
    internetChargeType String
    Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut Double
    Max bandwidth of Internet access in Mbps. Default is 0.
    keyIds List<String>
    ID list of keys, should be set if password not set.
    password String
    Password to access, should be set if key_ids not set.
    publicIpAssigned Boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds List<String>
    Security groups to which a CVM instance belongs.
    systemDiskSize Double
    Volume of system disk in GB. Default is 50.
    systemDiskType String
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_SSD: SSD, CLOUD_PREMIUM: Premium Cloud Storage. NOTE: CLOUD_BASIC, LOCAL_BASIC and LOCAL_SSD are deprecated.
    userData String
    ase64-encoded User Data text, the length limit is 16KB.
    instanceType string
    Specified types of CVM instance.
    subnetId string
    Private network ID.
    availabilityZone string
    Indicates which availability zone will be used.
    bandwidthPackageId string
    bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    camRoleName string
    CAM role name authorized to access.
    count number
    Number of cvm.
    dataDisks KubernetesClusterWorkerConfigDataDisk[]
    Configurations of data disk.
    desiredPodNum number
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_num for current node. Either all the fields desired_pod_num or none.
    disasterRecoverGroupIds string[]
    Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
    enhancedMonitorService boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService boolean
    To specify whether to enable cloud security service. Default is TRUE.
    hostname string
    The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
    hpcClusterId string
    Id of cvm hpc cluster.
    imgId string
    The valid image id, format of img-xxx. Note: img_id will be replaced with the image corresponding to TKE cluster_os.
    instanceChargeType string
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. The default is POSTPAID_BY_HOUR. Note: TencentCloud International only supports POSTPAID_BY_HOUR, PREPAID instance will not terminated after cluster deleted, and may not allow to delete before expired.
    instanceChargeTypePrepaidPeriod number
    The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instanceChargeTypePrepaidRenewFlag string
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    instanceName string
    Name of the CVMs.
    internetChargeType string
    Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut number
    Max bandwidth of Internet access in Mbps. Default is 0.
    keyIds string[]
    ID list of keys, should be set if password not set.
    password string
    Password to access, should be set if key_ids not set.
    publicIpAssigned boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds string[]
    Security groups to which a CVM instance belongs.
    systemDiskSize number
    Volume of system disk in GB. Default is 50.
    systemDiskType string
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_SSD: SSD, CLOUD_PREMIUM: Premium Cloud Storage. NOTE: CLOUD_BASIC, LOCAL_BASIC and LOCAL_SSD are deprecated.
    userData string
    ase64-encoded User Data text, the length limit is 16KB.
    instance_type str
    Specified types of CVM instance.
    subnet_id str
    Private network ID.
    availability_zone str
    Indicates which availability zone will be used.
    bandwidth_package_id str
    bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    cam_role_name str
    CAM role name authorized to access.
    count float
    Number of cvm.
    data_disks Sequence[KubernetesClusterWorkerConfigDataDisk]
    Configurations of data disk.
    desired_pod_num float
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_num for current node. Either all the fields desired_pod_num or none.
    disaster_recover_group_ids Sequence[str]
    Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
    enhanced_monitor_service bool
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhanced_security_service bool
    To specify whether to enable cloud security service. Default is TRUE.
    hostname str
    The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
    hpc_cluster_id str
    Id of cvm hpc cluster.
    img_id str
    The valid image id, format of img-xxx. Note: img_id will be replaced with the image corresponding to TKE cluster_os.
    instance_charge_type str
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. The default is POSTPAID_BY_HOUR. Note: TencentCloud International only supports POSTPAID_BY_HOUR, PREPAID instance will not terminated after cluster deleted, and may not allow to delete before expired.
    instance_charge_type_prepaid_period float
    The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instance_charge_type_prepaid_renew_flag str
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    instance_name str
    Name of the CVMs.
    internet_charge_type str
    Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
    internet_max_bandwidth_out float
    Max bandwidth of Internet access in Mbps. Default is 0.
    key_ids Sequence[str]
    ID list of keys, should be set if password not set.
    password str
    Password to access, should be set if key_ids not set.
    public_ip_assigned bool
    Specify whether to assign an Internet IP address.
    security_group_ids Sequence[str]
    Security groups to which a CVM instance belongs.
    system_disk_size float
    Volume of system disk in GB. Default is 50.
    system_disk_type str
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_SSD: SSD, CLOUD_PREMIUM: Premium Cloud Storage. NOTE: CLOUD_BASIC, LOCAL_BASIC and LOCAL_SSD are deprecated.
    user_data str
    ase64-encoded User Data text, the length limit is 16KB.
    instanceType String
    Specified types of CVM instance.
    subnetId String
    Private network ID.
    availabilityZone String
    Indicates which availability zone will be used.
    bandwidthPackageId String
    bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
    camRoleName String
    CAM role name authorized to access.
    count Number
    Number of cvm.
    dataDisks List<Property Map>
    Configurations of data disk.
    desiredPodNum Number
    Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_num for current node. Either all the fields desired_pod_num or none.
    disasterRecoverGroupIds List<String>
    Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
    enhancedMonitorService Boolean
    To specify whether to enable cloud monitor service. Default is TRUE.
    enhancedSecurityService Boolean
    To specify whether to enable cloud security service. Default is TRUE.
    hostname String
    The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
    hpcClusterId String
    Id of cvm hpc cluster.
    imgId String
    The valid image id, format of img-xxx. Note: img_id will be replaced with the image corresponding to TKE cluster_os.
    instanceChargeType String
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR. The default is POSTPAID_BY_HOUR. Note: TencentCloud International only supports POSTPAID_BY_HOUR, PREPAID instance will not terminated after cluster deleted, and may not allow to delete before expired.
    instanceChargeTypePrepaidPeriod Number
    The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    instanceChargeTypePrepaidRenewFlag String
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to PREPAID.
    instanceName String
    Name of the CVMs.
    internetChargeType String
    Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut Number
    Max bandwidth of Internet access in Mbps. Default is 0.
    keyIds List<String>
    ID list of keys, should be set if password not set.
    password String
    Password to access, should be set if key_ids not set.
    publicIpAssigned Boolean
    Specify whether to assign an Internet IP address.
    securityGroupIds List<String>
    Security groups to which a CVM instance belongs.
    systemDiskSize Number
    Volume of system disk in GB. Default is 50.
    systemDiskType String
    System disk type. For more information on limits of system disk types, see Storage Overview. Valid values: LOCAL_BASIC: local disk, LOCAL_SSD: local SSD disk, CLOUD_SSD: SSD, CLOUD_PREMIUM: Premium Cloud Storage. NOTE: CLOUD_BASIC, LOCAL_BASIC and LOCAL_SSD are deprecated.
    userData String
    ase64-encoded User Data text, the length limit is 16KB.

    KubernetesClusterWorkerConfigDataDisk, KubernetesClusterWorkerConfigDataDiskArgs

    AutoFormatAndMount bool
    Indicate whether to auto format and mount or not. Default is false.
    DiskPartition string
    The name of the device or partition to mount.
    DiskSize double
    Volume of disk in GB. Default is 0.
    DiskType string
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    Encrypt bool
    Indicates whether to encrypt data disk, default false.
    FileSystem string
    File system, e.g. ext3/ext4/xfs.
    KmsKeyId string
    ID of the custom CMK in the format of UUID or kms-abcd1234. This parameter is used to encrypt cloud disks.
    MountTarget string
    Mount target.
    SnapshotId string
    Data disk snapshot ID.
    AutoFormatAndMount bool
    Indicate whether to auto format and mount or not. Default is false.
    DiskPartition string
    The name of the device or partition to mount.
    DiskSize float64
    Volume of disk in GB. Default is 0.
    DiskType string
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    Encrypt bool
    Indicates whether to encrypt data disk, default false.
    FileSystem string
    File system, e.g. ext3/ext4/xfs.
    KmsKeyId string
    ID of the custom CMK in the format of UUID or kms-abcd1234. This parameter is used to encrypt cloud disks.
    MountTarget string
    Mount target.
    SnapshotId string
    Data disk snapshot ID.
    autoFormatAndMount Boolean
    Indicate whether to auto format and mount or not. Default is false.
    diskPartition String
    The name of the device or partition to mount.
    diskSize Double
    Volume of disk in GB. Default is 0.
    diskType String
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    encrypt Boolean
    Indicates whether to encrypt data disk, default false.
    fileSystem String
    File system, e.g. ext3/ext4/xfs.
    kmsKeyId String
    ID of the custom CMK in the format of UUID or kms-abcd1234. This parameter is used to encrypt cloud disks.
    mountTarget String
    Mount target.
    snapshotId String
    Data disk snapshot ID.
    autoFormatAndMount boolean
    Indicate whether to auto format and mount or not. Default is false.
    diskPartition string
    The name of the device or partition to mount.
    diskSize number
    Volume of disk in GB. Default is 0.
    diskType string
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    encrypt boolean
    Indicates whether to encrypt data disk, default false.
    fileSystem string
    File system, e.g. ext3/ext4/xfs.
    kmsKeyId string
    ID of the custom CMK in the format of UUID or kms-abcd1234. This parameter is used to encrypt cloud disks.
    mountTarget string
    Mount target.
    snapshotId string
    Data disk snapshot ID.
    auto_format_and_mount bool
    Indicate whether to auto format and mount or not. Default is false.
    disk_partition str
    The name of the device or partition to mount.
    disk_size float
    Volume of disk in GB. Default is 0.
    disk_type str
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    encrypt bool
    Indicates whether to encrypt data disk, default false.
    file_system str
    File system, e.g. ext3/ext4/xfs.
    kms_key_id str
    ID of the custom CMK in the format of UUID or kms-abcd1234. This parameter is used to encrypt cloud disks.
    mount_target str
    Mount target.
    snapshot_id str
    Data disk snapshot ID.
    autoFormatAndMount Boolean
    Indicate whether to auto format and mount or not. Default is false.
    diskPartition String
    The name of the device or partition to mount.
    diskSize Number
    Volume of disk in GB. Default is 0.
    diskType String
    Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD and CLOUD_HSSD and CLOUD_TSSD.
    encrypt Boolean
    Indicates whether to encrypt data disk, default false.
    fileSystem String
    File system, e.g. ext3/ext4/xfs.
    kmsKeyId String
    ID of the custom CMK in the format of UUID or kms-abcd1234. This parameter is used to encrypt cloud disks.
    mountTarget String
    Mount target.
    snapshotId String
    Data disk snapshot ID.

    KubernetesClusterWorkerInstancesList, KubernetesClusterWorkerInstancesListArgs

    FailedReason string
    Information of the cvm when it is failed.
    InstanceId string
    ID of the cvm.
    InstanceRole string
    Role of the cvm.
    InstanceState string
    State of the cvm.
    LanIp string
    LAN IP of the cvm.
    FailedReason string
    Information of the cvm when it is failed.
    InstanceId string
    ID of the cvm.
    InstanceRole string
    Role of the cvm.
    InstanceState string
    State of the cvm.
    LanIp string
    LAN IP of the cvm.
    failedReason String
    Information of the cvm when it is failed.
    instanceId String
    ID of the cvm.
    instanceRole String
    Role of the cvm.
    instanceState String
    State of the cvm.
    lanIp String
    LAN IP of the cvm.
    failedReason string
    Information of the cvm when it is failed.
    instanceId string
    ID of the cvm.
    instanceRole string
    Role of the cvm.
    instanceState string
    State of the cvm.
    lanIp string
    LAN IP of the cvm.
    failed_reason str
    Information of the cvm when it is failed.
    instance_id str
    ID of the cvm.
    instance_role str
    Role of the cvm.
    instance_state str
    State of the cvm.
    lan_ip str
    LAN IP of the cvm.
    failedReason String
    Information of the cvm when it is failed.
    instanceId String
    ID of the cvm.
    instanceRole String
    Role of the cvm.
    instanceState String
    State of the cvm.
    lanIp String
    LAN IP of the cvm.

    Import

    tke cluster can be imported, e.g.

    $ pulumi import tencentcloud:index/kubernetesCluster:KubernetesCluster example cls-n2h4jbtk
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack