tencentcloud.KubernetesCluster
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",
    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",
    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
		_ := 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
		_ := 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"),
			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",
        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 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")
            .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
      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",
});
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")
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",
    });
    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());
        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",
});
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")
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",
    });
    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());
        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",
    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",
    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
		_ := 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
		_ := 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"),
			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",
        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 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")
            .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
      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
      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",
    dataPlaneV2: 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-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",
    data_plane_v2=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-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"),
			DataPlaneV2: 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-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",
        DataPlaneV2 = 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 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")
            .dataPlaneV2(true)
            .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
      dataPlaneV2: true
      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
Example coming soon!
Example coming soon!
Example coming soon!
Example 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
TKE cluster cloud subnet and CDC subnet are interconnected
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.KubernetesCluster("example", {
    cdcId: "cluster-262n63e8",
    clusterDeployType: "MANAGED_CLUSTER",
    clusterDesc: "cluster desc",
    clusterMaxPodNum: 64,
    clusterMaxServiceNum: 256,
    clusterName: "tf-example",
    clusterOs: "tlinux3.1x86_64",
    clusterSubnetId: "subnet-5rrirqyc",
    clusterVersion: "1.30.0",
    containerRuntime: "containerd",
    eniSubnetIds: ["subnet-5rrirqyc"],
    isDualStack: false,
    isNonStaticIpMode: true,
    networkType: "VPC-CNI",
    runtimeVersion: "1.6.9",
    serviceCidr: "192.168.0.0/24",
    vpcCniType: "tke-route-eni",
    vpcId: "vpc-i5yyodl9",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.KubernetesCluster("example",
    cdc_id="cluster-262n63e8",
    cluster_deploy_type="MANAGED_CLUSTER",
    cluster_desc="cluster desc",
    cluster_max_pod_num=64,
    cluster_max_service_num=256,
    cluster_name="tf-example",
    cluster_os="tlinux3.1x86_64",
    cluster_subnet_id="subnet-5rrirqyc",
    cluster_version="1.30.0",
    container_runtime="containerd",
    eni_subnet_ids=["subnet-5rrirqyc"],
    is_dual_stack=False,
    is_non_static_ip_mode=True,
    network_type="VPC-CNI",
    runtime_version="1.6.9",
    service_cidr="192.168.0.0/24",
    vpc_cni_type="tke-route-eni",
    vpc_id="vpc-i5yyodl9")
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{
			CdcId:                pulumi.String("cluster-262n63e8"),
			ClusterDeployType:    pulumi.String("MANAGED_CLUSTER"),
			ClusterDesc:          pulumi.String("cluster desc"),
			ClusterMaxPodNum:     pulumi.Float64(64),
			ClusterMaxServiceNum: pulumi.Float64(256),
			ClusterName:          pulumi.String("tf-example"),
			ClusterOs:            pulumi.String("tlinux3.1x86_64"),
			ClusterSubnetId:      pulumi.String("subnet-5rrirqyc"),
			ClusterVersion:       pulumi.String("1.30.0"),
			ContainerRuntime:     pulumi.String("containerd"),
			EniSubnetIds: pulumi.StringArray{
				pulumi.String("subnet-5rrirqyc"),
			},
			IsDualStack:       pulumi.Bool(false),
			IsNonStaticIpMode: pulumi.Bool(true),
			NetworkType:       pulumi.String("VPC-CNI"),
			RuntimeVersion:    pulumi.String("1.6.9"),
			ServiceCidr:       pulumi.String("192.168.0.0/24"),
			VpcCniType:        pulumi.String("tke-route-eni"),
			VpcId:             pulumi.String("vpc-i5yyodl9"),
		})
		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()
    {
        CdcId = "cluster-262n63e8",
        ClusterDeployType = "MANAGED_CLUSTER",
        ClusterDesc = "cluster desc",
        ClusterMaxPodNum = 64,
        ClusterMaxServiceNum = 256,
        ClusterName = "tf-example",
        ClusterOs = "tlinux3.1x86_64",
        ClusterSubnetId = "subnet-5rrirqyc",
        ClusterVersion = "1.30.0",
        ContainerRuntime = "containerd",
        EniSubnetIds = new[]
        {
            "subnet-5rrirqyc",
        },
        IsDualStack = false,
        IsNonStaticIpMode = true,
        NetworkType = "VPC-CNI",
        RuntimeVersion = "1.6.9",
        ServiceCidr = "192.168.0.0/24",
        VpcCniType = "tke-route-eni",
        VpcId = "vpc-i5yyodl9",
    });
});
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 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()
            .cdcId("cluster-262n63e8")
            .clusterDeployType("MANAGED_CLUSTER")
            .clusterDesc("cluster desc")
            .clusterMaxPodNum(64)
            .clusterMaxServiceNum(256)
            .clusterName("tf-example")
            .clusterOs("tlinux3.1x86_64")
            .clusterSubnetId("subnet-5rrirqyc")
            .clusterVersion("1.30.0")
            .containerRuntime("containerd")
            .eniSubnetIds("subnet-5rrirqyc")
            .isDualStack(false)
            .isNonStaticIpMode(true)
            .networkType("VPC-CNI")
            .runtimeVersion("1.6.9")
            .serviceCidr("192.168.0.0/24")
            .vpcCniType("tke-route-eni")
            .vpcId("vpc-i5yyodl9")
            .build());
    }
}
resources:
  example:
    type: tencentcloud:KubernetesCluster
    properties:
      cdcId: cluster-262n63e8
      clusterDeployType: MANAGED_CLUSTER
      clusterDesc: cluster desc
      clusterMaxPodNum: 64
      clusterMaxServiceNum: 256
      clusterName: tf-example
      clusterOs: tlinux3.1x86_64
      clusterSubnetId: subnet-5rrirqyc
      clusterVersion: 1.30.0
      containerRuntime: containerd
      eniSubnetIds:
        - subnet-5rrirqyc
      isDualStack: false
      isNonStaticIpMode: true
      networkType: VPC-CNI
      runtimeVersion: 1.6.9
      serviceCidr: 192.168.0.0/24
      vpcCniType: tke-route-eni
      vpcId: vpc-i5yyodl9
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",
    },
    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",
    },
    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"),
			},
			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" },
        },
        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.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"))
            .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
      tags:
        demo: test
      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,
                      data_plane_v2: Optional[bool] = 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_dual_stack: Optional[bool] = 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.
- AcquireCluster boolAdmin Role 
- If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to falseafter acquired.
- AuthOptions KubernetesCluster Auth Options 
- Specify cluster authentication configuration. Only available for managed cluster and cluster_version>= 1.20.
- AutoUpgrade boolCluster Level 
- Whether the cluster level auto upgraded, valid for managed cluster.
- BasePod doubleNum 
- The number of basic pods. valid when enable_customized_pod_cidr=true.
- CdcId string
- CDC ID.
- ClaimExpired doubleSeconds 
- Claim expired seconds to recycle ENI. This field can only set when field network_typeis 'VPC-CNI'.claim_expired_secondsmust greater or equal than 300 and less than 15768000.
- ClusterAudit KubernetesCluster Cluster Audit 
- 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.
- ClusterDeploy stringType 
- Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
- ClusterDesc string
- Description of the cluster.
- ClusterExtra KubernetesArgs Cluster Cluster Extra Args 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- ClusterInternet stringDomain 
- 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.
- ClusterInternet stringSecurity Group 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- ClusterIntranet stringDomain 
- 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.
- ClusterIntranet stringSubnet Id 
- Subnet id who can access this independent cluster, this field must and can only set when cluster_intranetis true.cluster_intranet_subnet_idcan not modify once be set.
- ClusterIpvs bool
- Indicates whether ipvsis enabled. Default is true. False meansiptablesis enabled.
- ClusterLevel string
- Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevelsto query available levels. Available value examplesL5,L20,L50,L100, etc.
- ClusterMax doublePod Num 
- 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.
- ClusterMax doubleService Num 
- 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.
- ClusterOs stringType 
- Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
- ClusterSubnet stringId 
- Subnet ID of the cluster, such as: subnet-b3p7d7q5.
- ClusterVersion string
- Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersionsto 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. The default value is dockerfor versions below v1.24 andcontainerdfor versions above v1.24.
- DataPlane boolV2 
- Whether to enable DataPlaneV2 (replace kube-proxy with cilium). data_plane_v2andcluster_ipvsshould not be set at the same time.
- DeletionProtection bool
- Indicates whether cluster deletion protection is enabled. Default is false.
- DockerGraph stringPath 
- Docker graph path. Default is /var/lib/docker.
- EnableCustomized boolPod Cidr 
- Whether to enable the custom mode of node podCIDR size. Default is false.
- EniSubnet List<string>Ids 
- Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_typeis 'VPC-CNI'.eni_subnet_idscan not empty once be set.
- EventPersistence KubernetesCluster Event Persistence 
- Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
- ExistInstances List<KubernetesCluster Exist Instance> 
- Create tke cluster by existed instances.
- ExtensionAddons List<KubernetesCluster Extension Addon> 
- Information of the add-on to be installed. It is recommended to use resource tencentcloud.KubernetesAddonmanagement cluster addon.
- ExtraArgs List<string>
- Custom parameter information related to the node.
- GlobeDesired doublePod Num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
- IgnoreCluster boolCidr Conflict 
- Indicates whether to ignore the cluster cidr conflict error. Default is false.
- IgnoreService boolCidr Conflict 
- Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNImode.
- InstanceDelete stringMode 
- 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.
- IsDual boolStack 
- In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
- IsNon boolStatic Ip Mode 
- Indicates whether non-static ip mode is enabled. Default is false.
- KubeProxy stringMode 
- 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.
- KubernetesCluster stringId 
- ID of the resource.
- Labels Dictionary<string, string>
- Labels of tke cluster nodes.
- LogAgent KubernetesCluster Log Agent 
- Specify cluster log agent config.
- ManagedCluster List<string>Internet Security Policies 
- this argument was deprecated, use cluster_internet_security_groupinstead. 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 fieldcluster_deploy_typeis 'MANAGED_CLUSTER' andcluster_internetis true.managed_cluster_internet_security_policiescan not delete or empty once be set.
- MasterConfigs List<KubernetesCluster Master Config> 
- 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.
- NodeName stringType 
- Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
- NodePool List<KubernetesGlobal Configs Cluster Node Pool Global Config> 
- Global config effective for all node pools.
- PreStart stringUser Script 
- Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- ProjectId double
- Project ID, default value is 0.
- ResourceDelete List<KubernetesOptions Cluster Resource Delete Option> 
- 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.
- 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.
- UpgradeInstances boolFollow Cluster 
- Indicates whether upgrade all instances when cluster_version change. Default is false.
- VpcCni stringType 
- Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-enifor shared network card multi-IP mode andtke-direct-enifor independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, botheni_subnet_idsandvpc_cni_typemust be set to empty.
- WorkerConfigs List<KubernetesCluster Worker Config> 
- 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.
- AcquireCluster boolAdmin Role 
- If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to falseafter acquired.
- AuthOptions KubernetesCluster Auth Options Args 
- Specify cluster authentication configuration. Only available for managed cluster and cluster_version>= 1.20.
- AutoUpgrade boolCluster Level 
- Whether the cluster level auto upgraded, valid for managed cluster.
- BasePod float64Num 
- The number of basic pods. valid when enable_customized_pod_cidr=true.
- CdcId string
- CDC ID.
- ClaimExpired float64Seconds 
- Claim expired seconds to recycle ENI. This field can only set when field network_typeis 'VPC-CNI'.claim_expired_secondsmust greater or equal than 300 and less than 15768000.
- ClusterAudit KubernetesCluster Cluster Audit Args 
- 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.
- ClusterDeploy stringType 
- Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
- ClusterDesc string
- Description of the cluster.
- ClusterExtra KubernetesArgs Cluster Cluster Extra Args Args 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- ClusterInternet stringDomain 
- 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.
- ClusterInternet stringSecurity Group 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- ClusterIntranet stringDomain 
- 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.
- ClusterIntranet stringSubnet Id 
- Subnet id who can access this independent cluster, this field must and can only set when cluster_intranetis true.cluster_intranet_subnet_idcan not modify once be set.
- ClusterIpvs bool
- Indicates whether ipvsis enabled. Default is true. False meansiptablesis enabled.
- ClusterLevel string
- Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevelsto query available levels. Available value examplesL5,L20,L50,L100, etc.
- ClusterMax float64Pod Num 
- 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.
- ClusterMax float64Service Num 
- 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.
- ClusterOs stringType 
- Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
- ClusterSubnet stringId 
- Subnet ID of the cluster, such as: subnet-b3p7d7q5.
- ClusterVersion string
- Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersionsto 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. The default value is dockerfor versions below v1.24 andcontainerdfor versions above v1.24.
- DataPlane boolV2 
- Whether to enable DataPlaneV2 (replace kube-proxy with cilium). data_plane_v2andcluster_ipvsshould not be set at the same time.
- DeletionProtection bool
- Indicates whether cluster deletion protection is enabled. Default is false.
- DockerGraph stringPath 
- Docker graph path. Default is /var/lib/docker.
- EnableCustomized boolPod Cidr 
- Whether to enable the custom mode of node podCIDR size. Default is false.
- EniSubnet []stringIds 
- Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_typeis 'VPC-CNI'.eni_subnet_idscan not empty once be set.
- EventPersistence KubernetesCluster Event Persistence Args 
- Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
- ExistInstances []KubernetesCluster Exist Instance Args 
- Create tke cluster by existed instances.
- ExtensionAddons []KubernetesCluster Extension Addon Args 
- Information of the add-on to be installed. It is recommended to use resource tencentcloud.KubernetesAddonmanagement cluster addon.
- ExtraArgs []string
- Custom parameter information related to the node.
- GlobeDesired float64Pod Num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
- IgnoreCluster boolCidr Conflict 
- Indicates whether to ignore the cluster cidr conflict error. Default is false.
- IgnoreService boolCidr Conflict 
- Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNImode.
- InstanceDelete stringMode 
- 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.
- IsDual boolStack 
- In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
- IsNon boolStatic Ip Mode 
- Indicates whether non-static ip mode is enabled. Default is false.
- KubeProxy stringMode 
- 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.
- KubernetesCluster stringId 
- ID of the resource.
- Labels map[string]string
- Labels of tke cluster nodes.
- LogAgent KubernetesCluster Log Agent Args 
- Specify cluster log agent config.
- ManagedCluster []stringInternet Security Policies 
- this argument was deprecated, use cluster_internet_security_groupinstead. 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 fieldcluster_deploy_typeis 'MANAGED_CLUSTER' andcluster_internetis true.managed_cluster_internet_security_policiescan not delete or empty once be set.
- MasterConfigs []KubernetesCluster Master Config Args 
- 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.
- NodeName stringType 
- Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
- NodePool []KubernetesGlobal Configs Cluster Node Pool Global Config Args 
- Global config effective for all node pools.
- PreStart stringUser Script 
- Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- ProjectId float64
- Project ID, default value is 0.
- ResourceDelete []KubernetesOptions Cluster Resource Delete Option Args 
- 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.
- 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.
- UpgradeInstances boolFollow Cluster 
- Indicates whether upgrade all instances when cluster_version change. Default is false.
- VpcCni stringType 
- Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-enifor shared network card multi-IP mode andtke-direct-enifor independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, botheni_subnet_idsandvpc_cni_typemust be set to empty.
- WorkerConfigs []KubernetesCluster Worker Config Args 
- 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.
- acquireCluster BooleanAdmin Role 
- If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to falseafter acquired.
- authOptions KubernetesCluster Auth Options 
- Specify cluster authentication configuration. Only available for managed cluster and cluster_version>= 1.20.
- autoUpgrade BooleanCluster Level 
- Whether the cluster level auto upgraded, valid for managed cluster.
- basePod DoubleNum 
- The number of basic pods. valid when enable_customized_pod_cidr=true.
- cdcId String
- CDC ID.
- claimExpired DoubleSeconds 
- Claim expired seconds to recycle ENI. This field can only set when field network_typeis 'VPC-CNI'.claim_expired_secondsmust greater or equal than 300 and less than 15768000.
- clusterAudit KubernetesCluster Cluster Audit 
- 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.
- clusterDeploy StringType 
- Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
- clusterDesc String
- Description of the cluster.
- clusterExtra KubernetesArgs Cluster Cluster Extra Args 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- clusterInternet StringDomain 
- 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.
- clusterInternet StringSecurity Group 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- clusterIntranet StringDomain 
- 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.
- clusterIntranet StringSubnet Id 
- Subnet id who can access this independent cluster, this field must and can only set when cluster_intranetis true.cluster_intranet_subnet_idcan not modify once be set.
- clusterIpvs Boolean
- Indicates whether ipvsis enabled. Default is true. False meansiptablesis enabled.
- clusterLevel String
- Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevelsto query available levels. Available value examplesL5,L20,L50,L100, etc.
- clusterMax DoublePod Num 
- 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.
- clusterMax DoubleService Num 
- 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.
- clusterOs StringType 
- Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
- clusterSubnet StringId 
- Subnet ID of the cluster, such as: subnet-b3p7d7q5.
- clusterVersion String
- Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersionsto 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. The default value is dockerfor versions below v1.24 andcontainerdfor versions above v1.24.
- dataPlane BooleanV2 
- Whether to enable DataPlaneV2 (replace kube-proxy with cilium). data_plane_v2andcluster_ipvsshould not be set at the same time.
- deletionProtection Boolean
- Indicates whether cluster deletion protection is enabled. Default is false.
- dockerGraph StringPath 
- Docker graph path. Default is /var/lib/docker.
- enableCustomized BooleanPod Cidr 
- Whether to enable the custom mode of node podCIDR size. Default is false.
- eniSubnet List<String>Ids 
- Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_typeis 'VPC-CNI'.eni_subnet_idscan not empty once be set.
- eventPersistence KubernetesCluster Event Persistence 
- Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
- existInstances List<KubernetesCluster Exist Instance> 
- Create tke cluster by existed instances.
- extensionAddons List<KubernetesCluster Extension Addon> 
- Information of the add-on to be installed. It is recommended to use resource tencentcloud.KubernetesAddonmanagement cluster addon.
- extraArgs List<String>
- Custom parameter information related to the node.
- globeDesired DoublePod Num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
- ignoreCluster BooleanCidr Conflict 
- Indicates whether to ignore the cluster cidr conflict error. Default is false.
- ignoreService BooleanCidr Conflict 
- Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNImode.
- instanceDelete StringMode 
- 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.
- isDual BooleanStack 
- In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
- isNon BooleanStatic Ip Mode 
- Indicates whether non-static ip mode is enabled. Default is false.
- kubeProxy StringMode 
- 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.
- kubernetesCluster StringId 
- ID of the resource.
- labels Map<String,String>
- Labels of tke cluster nodes.
- logAgent KubernetesCluster Log Agent 
- Specify cluster log agent config.
- managedCluster List<String>Internet Security Policies 
- this argument was deprecated, use cluster_internet_security_groupinstead. 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 fieldcluster_deploy_typeis 'MANAGED_CLUSTER' andcluster_internetis true.managed_cluster_internet_security_policiescan not delete or empty once be set.
- masterConfigs List<KubernetesCluster Master Config> 
- 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.
- nodeName StringType 
- Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
- nodePool List<KubernetesGlobal Configs Cluster Node Pool Global Config> 
- Global config effective for all node pools.
- preStart StringUser Script 
- Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- projectId Double
- Project ID, default value is 0.
- resourceDelete List<KubernetesOptions Cluster Resource Delete Option> 
- 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.
- 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.
- upgradeInstances BooleanFollow Cluster 
- Indicates whether upgrade all instances when cluster_version change. Default is false.
- vpcCni StringType 
- Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-enifor shared network card multi-IP mode andtke-direct-enifor independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, botheni_subnet_idsandvpc_cni_typemust be set to empty.
- workerConfigs List<KubernetesCluster Worker Config> 
- 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.
- acquireCluster booleanAdmin Role 
- If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to falseafter acquired.
- authOptions KubernetesCluster Auth Options 
- Specify cluster authentication configuration. Only available for managed cluster and cluster_version>= 1.20.
- autoUpgrade booleanCluster Level 
- Whether the cluster level auto upgraded, valid for managed cluster.
- basePod numberNum 
- The number of basic pods. valid when enable_customized_pod_cidr=true.
- cdcId string
- CDC ID.
- claimExpired numberSeconds 
- Claim expired seconds to recycle ENI. This field can only set when field network_typeis 'VPC-CNI'.claim_expired_secondsmust greater or equal than 300 and less than 15768000.
- clusterAudit KubernetesCluster Cluster Audit 
- 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.
- clusterDeploy stringType 
- Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
- clusterDesc string
- Description of the cluster.
- clusterExtra KubernetesArgs Cluster Cluster Extra Args 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- clusterInternet stringDomain 
- 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.
- clusterInternet stringSecurity Group 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- clusterIntranet stringDomain 
- 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.
- clusterIntranet stringSubnet Id 
- Subnet id who can access this independent cluster, this field must and can only set when cluster_intranetis true.cluster_intranet_subnet_idcan not modify once be set.
- clusterIpvs boolean
- Indicates whether ipvsis enabled. Default is true. False meansiptablesis enabled.
- clusterLevel string
- Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevelsto query available levels. Available value examplesL5,L20,L50,L100, etc.
- clusterMax numberPod Num 
- 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.
- clusterMax numberService Num 
- 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.
- clusterOs stringType 
- Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
- clusterSubnet stringId 
- Subnet ID of the cluster, such as: subnet-b3p7d7q5.
- clusterVersion string
- Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersionsto 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. The default value is dockerfor versions below v1.24 andcontainerdfor versions above v1.24.
- dataPlane booleanV2 
- Whether to enable DataPlaneV2 (replace kube-proxy with cilium). data_plane_v2andcluster_ipvsshould not be set at the same time.
- deletionProtection boolean
- Indicates whether cluster deletion protection is enabled. Default is false.
- dockerGraph stringPath 
- Docker graph path. Default is /var/lib/docker.
- enableCustomized booleanPod Cidr 
- Whether to enable the custom mode of node podCIDR size. Default is false.
- eniSubnet string[]Ids 
- Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_typeis 'VPC-CNI'.eni_subnet_idscan not empty once be set.
- eventPersistence KubernetesCluster Event Persistence 
- Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
- existInstances KubernetesCluster Exist Instance[] 
- Create tke cluster by existed instances.
- extensionAddons KubernetesCluster Extension Addon[] 
- Information of the add-on to be installed. It is recommended to use resource tencentcloud.KubernetesAddonmanagement cluster addon.
- extraArgs string[]
- Custom parameter information related to the node.
- globeDesired numberPod Num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
- ignoreCluster booleanCidr Conflict 
- Indicates whether to ignore the cluster cidr conflict error. Default is false.
- ignoreService booleanCidr Conflict 
- Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNImode.
- instanceDelete stringMode 
- 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.
- isDual booleanStack 
- In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
- isNon booleanStatic Ip Mode 
- Indicates whether non-static ip mode is enabled. Default is false.
- kubeProxy stringMode 
- 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.
- kubernetesCluster stringId 
- ID of the resource.
- labels {[key: string]: string}
- Labels of tke cluster nodes.
- logAgent KubernetesCluster Log Agent 
- Specify cluster log agent config.
- managedCluster string[]Internet Security Policies 
- this argument was deprecated, use cluster_internet_security_groupinstead. 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 fieldcluster_deploy_typeis 'MANAGED_CLUSTER' andcluster_internetis true.managed_cluster_internet_security_policiescan not delete or empty once be set.
- masterConfigs KubernetesCluster Master Config[] 
- 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.
- nodeName stringType 
- Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
- nodePool KubernetesGlobal Configs Cluster Node Pool Global Config[] 
- Global config effective for all node pools.
- preStart stringUser Script 
- Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- projectId number
- Project ID, default value is 0.
- resourceDelete KubernetesOptions Cluster Resource Delete Option[] 
- 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.
- {[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.
- upgradeInstances booleanFollow Cluster 
- Indicates whether upgrade all instances when cluster_version change. Default is false.
- vpcCni stringType 
- Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-enifor shared network card multi-IP mode andtke-direct-enifor independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, botheni_subnet_idsandvpc_cni_typemust be set to empty.
- workerConfigs KubernetesCluster Worker Config[] 
- 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_ booladmin_ role 
- If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to falseafter acquired.
- auth_options KubernetesCluster Auth Options Args 
- Specify cluster authentication configuration. Only available for managed cluster and cluster_version>= 1.20.
- auto_upgrade_ boolcluster_ level 
- Whether the cluster level auto upgraded, valid for managed cluster.
- base_pod_ floatnum 
- The number of basic pods. valid when enable_customized_pod_cidr=true.
- cdc_id str
- CDC ID.
- claim_expired_ floatseconds 
- Claim expired seconds to recycle ENI. This field can only set when field network_typeis 'VPC-CNI'.claim_expired_secondsmust greater or equal than 300 and less than 15768000.
- cluster_audit KubernetesCluster Cluster Audit Args 
- 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_ strtype 
- 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_ Kubernetesargs Cluster Cluster Extra Args Args 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- cluster_internet_ strdomain 
- 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_ strsecurity_ group 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- cluster_intranet_ strdomain 
- 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_ strsubnet_ id 
- Subnet id who can access this independent cluster, this field must and can only set when cluster_intranetis true.cluster_intranet_subnet_idcan not modify once be set.
- cluster_ipvs bool
- Indicates whether ipvsis enabled. Default is true. False meansiptablesis enabled.
- cluster_level str
- Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevelsto query available levels. Available value examplesL5,L20,L50,L100, etc.
- cluster_max_ floatpod_ num 
- 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_ floatservice_ num 
- 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_ strtype 
- Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
- cluster_subnet_ strid 
- Subnet ID of the cluster, such as: subnet-b3p7d7q5.
- cluster_version str
- Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersionsto 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. The default value is dockerfor versions below v1.24 andcontainerdfor versions above v1.24.
- data_plane_ boolv2 
- Whether to enable DataPlaneV2 (replace kube-proxy with cilium). data_plane_v2andcluster_ipvsshould not be set at the same time.
- deletion_protection bool
- Indicates whether cluster deletion protection is enabled. Default is false.
- docker_graph_ strpath 
- Docker graph path. Default is /var/lib/docker.
- enable_customized_ boolpod_ cidr 
- Whether to enable the custom mode of node podCIDR size. Default is false.
- eni_subnet_ Sequence[str]ids 
- Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_typeis 'VPC-CNI'.eni_subnet_idscan not empty once be set.
- event_persistence KubernetesCluster Event Persistence Args 
- Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
- exist_instances Sequence[KubernetesCluster Exist Instance Args] 
- Create tke cluster by existed instances.
- extension_addons Sequence[KubernetesCluster Extension Addon Args] 
- Information of the add-on to be installed. It is recommended to use resource tencentcloud.KubernetesAddonmanagement cluster addon.
- extra_args Sequence[str]
- Custom parameter information related to the node.
- globe_desired_ floatpod_ num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
- ignore_cluster_ boolcidr_ conflict 
- Indicates whether to ignore the cluster cidr conflict error. Default is false.
- ignore_service_ boolcidr_ conflict 
- Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNImode.
- instance_delete_ strmode 
- 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_dual_ boolstack 
- In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
- is_non_ boolstatic_ ip_ mode 
- Indicates whether non-static ip mode is enabled. Default is false.
- kube_proxy_ strmode 
- 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_ strid 
- ID of the resource.
- labels Mapping[str, str]
- Labels of tke cluster nodes.
- log_agent KubernetesCluster Log Agent Args 
- Specify cluster log agent config.
- managed_cluster_ Sequence[str]internet_ security_ policies 
- this argument was deprecated, use cluster_internet_security_groupinstead. 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 fieldcluster_deploy_typeis 'MANAGED_CLUSTER' andcluster_internetis true.managed_cluster_internet_security_policiescan not delete or empty once be set.
- master_configs Sequence[KubernetesCluster Master Config Args] 
- 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_ strtype 
- Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
- node_pool_ Sequence[Kubernetesglobal_ configs Cluster Node Pool Global Config Args] 
- Global config effective for all node pools.
- pre_start_ struser_ script 
- 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_ Sequence[Kubernetesoptions Cluster Resource Delete Option Args] 
- 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.
- 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_ boolfollow_ cluster 
- Indicates whether upgrade all instances when cluster_version change. Default is false.
- vpc_cni_ strtype 
- Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-enifor shared network card multi-IP mode andtke-direct-enifor independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, botheni_subnet_idsandvpc_cni_typemust be set to empty.
- worker_configs Sequence[KubernetesCluster Worker Config Args] 
- 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.
- acquireCluster BooleanAdmin Role 
- If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to falseafter acquired.
- authOptions Property Map
- Specify cluster authentication configuration. Only available for managed cluster and cluster_version>= 1.20.
- autoUpgrade BooleanCluster Level 
- Whether the cluster level auto upgraded, valid for managed cluster.
- basePod NumberNum 
- The number of basic pods. valid when enable_customized_pod_cidr=true.
- cdcId String
- CDC ID.
- claimExpired NumberSeconds 
- Claim expired seconds to recycle ENI. This field can only set when field network_typeis 'VPC-CNI'.claim_expired_secondsmust 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.
- clusterDeploy StringType 
- Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
- clusterDesc String
- Description of the cluster.
- clusterExtra Property MapArgs 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- clusterInternet StringDomain 
- 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.
- clusterInternet StringSecurity Group 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- clusterIntranet StringDomain 
- 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.
- clusterIntranet StringSubnet Id 
- Subnet id who can access this independent cluster, this field must and can only set when cluster_intranetis true.cluster_intranet_subnet_idcan not modify once be set.
- clusterIpvs Boolean
- Indicates whether ipvsis enabled. Default is true. False meansiptablesis enabled.
- clusterLevel String
- Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevelsto query available levels. Available value examplesL5,L20,L50,L100, etc.
- clusterMax NumberPod Num 
- 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.
- clusterMax NumberService Num 
- 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.
- clusterOs StringType 
- Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
- clusterSubnet StringId 
- Subnet ID of the cluster, such as: subnet-b3p7d7q5.
- clusterVersion String
- Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersionsto 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. The default value is dockerfor versions below v1.24 andcontainerdfor versions above v1.24.
- dataPlane BooleanV2 
- Whether to enable DataPlaneV2 (replace kube-proxy with cilium). data_plane_v2andcluster_ipvsshould not be set at the same time.
- deletionProtection Boolean
- Indicates whether cluster deletion protection is enabled. Default is false.
- dockerGraph StringPath 
- Docker graph path. Default is /var/lib/docker.
- enableCustomized BooleanPod Cidr 
- Whether to enable the custom mode of node podCIDR size. Default is false.
- eniSubnet List<String>Ids 
- Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_typeis 'VPC-CNI'.eni_subnet_idscan 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. It is recommended to use resource tencentcloud.KubernetesAddonmanagement cluster addon.
- extraArgs List<String>
- Custom parameter information related to the node.
- globeDesired NumberPod Num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
- ignoreCluster BooleanCidr Conflict 
- Indicates whether to ignore the cluster cidr conflict error. Default is false.
- ignoreService BooleanCidr Conflict 
- Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNImode.
- instanceDelete StringMode 
- 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.
- isDual BooleanStack 
- In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
- isNon BooleanStatic Ip Mode 
- Indicates whether non-static ip mode is enabled. Default is false.
- kubeProxy StringMode 
- 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.
- kubernetesCluster StringId 
- ID of the resource.
- labels Map<String>
- Labels of tke cluster nodes.
- logAgent Property Map
- Specify cluster log agent config.
- managedCluster List<String>Internet Security Policies 
- this argument was deprecated, use cluster_internet_security_groupinstead. 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 fieldcluster_deploy_typeis 'MANAGED_CLUSTER' andcluster_internetis true.managed_cluster_internet_security_policiescan not delete or empty once be set.
- 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.
- nodeName StringType 
- Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
- nodePool List<Property Map>Global Configs 
- Global config effective for all node pools.
- preStart StringUser Script 
- Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- projectId Number
- Project ID, default value is 0.
- resourceDelete List<Property Map>Options 
- 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.
- Map<String>
- The tags of the cluster.
- unschedulable Number
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- upgradeInstances BooleanFollow Cluster 
- Indicates whether upgrade all instances when cluster_version change. Default is false.
- vpcCni StringType 
- Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-enifor shared network card multi-IP mode andtke-direct-enifor independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, botheni_subnet_idsandvpc_cni_typemust 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:
- string
- The certificate used for access.
- ClusterAs boolEnabled 
- (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.
- ClusterExternal stringEndpoint 
- External network address to access.
- ClusterNode doubleNum 
- 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.
- KubeConfig stringIntranet 
- 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.
- WorkerInstances List<KubernetesLists Cluster Worker Instances List> 
- An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
- string
- The certificate used for access.
- ClusterAs boolEnabled 
- (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.
- ClusterExternal stringEndpoint 
- External network address to access.
- ClusterNode float64Num 
- 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.
- KubeConfig stringIntranet 
- 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.
- WorkerInstances []KubernetesLists Cluster Worker Instances List 
- An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
- String
- The certificate used for access.
- clusterAs BooleanEnabled 
- (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.
- clusterExternal StringEndpoint 
- External network address to access.
- clusterNode DoubleNum 
- 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.
- kubeConfig StringIntranet 
- 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.
- workerInstances List<KubernetesLists Cluster Worker Instances List> 
- An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
- string
- The certificate used for access.
- clusterAs booleanEnabled 
- (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.
- clusterExternal stringEndpoint 
- External network address to access.
- clusterNode numberNum 
- 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.
- kubeConfig stringIntranet 
- 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.
- workerInstances KubernetesLists Cluster Worker Instances List[] 
- An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
- str
- The certificate used for access.
- cluster_as_ boolenabled 
- (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.
- cluster_external_ strendpoint 
- External network address to access.
- cluster_node_ floatnum 
- 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_ strintranet 
- 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_ Sequence[Kuberneteslists Cluster Worker Instances List] 
- An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
- String
- The certificate used for access.
- clusterAs BooleanEnabled 
- (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.
- clusterExternal StringEndpoint 
- External network address to access.
- clusterNode NumberNum 
- 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.
- kubeConfig StringIntranet 
- 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.
- workerInstances List<Property Map>Lists 
- 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,
        data_plane_v2: Optional[bool] = 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_dual_stack: Optional[bool] = 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) -> KubernetesClusterfunc 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.
- AcquireCluster boolAdmin Role 
- If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to falseafter acquired.
- AuthOptions KubernetesCluster Auth Options 
- Specify cluster authentication configuration. Only available for managed cluster and cluster_version>= 1.20.
- AutoUpgrade boolCluster Level 
- Whether the cluster level auto upgraded, valid for managed cluster.
- BasePod doubleNum 
- The number of basic pods. valid when enable_customized_pod_cidr=true.
- CdcId string
- CDC ID.
- string
- The certificate used for access.
- ClaimExpired doubleSeconds 
- Claim expired seconds to recycle ENI. This field can only set when field network_typeis 'VPC-CNI'.claim_expired_secondsmust greater or equal than 300 and less than 15768000.
- ClusterAs boolEnabled 
- (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.
- ClusterAudit KubernetesCluster Cluster Audit 
- 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.
- ClusterDeploy stringType 
- Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
- ClusterDesc string
- Description of the cluster.
- ClusterExternal stringEndpoint 
- External network address to access.
- ClusterExtra KubernetesArgs Cluster Cluster Extra Args 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- ClusterInternet stringDomain 
- 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.
- ClusterInternet stringSecurity Group 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- ClusterIntranet stringDomain 
- 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.
- ClusterIntranet stringSubnet Id 
- Subnet id who can access this independent cluster, this field must and can only set when cluster_intranetis true.cluster_intranet_subnet_idcan not modify once be set.
- ClusterIpvs bool
- Indicates whether ipvsis enabled. Default is true. False meansiptablesis enabled.
- ClusterLevel string
- Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevelsto query available levels. Available value examplesL5,L20,L50,L100, etc.
- ClusterMax doublePod Num 
- 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.
- ClusterMax doubleService Num 
- 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.
- ClusterNode doubleNum 
- 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.
- ClusterOs stringType 
- Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
- ClusterSubnet stringId 
- Subnet ID of the cluster, such as: subnet-b3p7d7q5.
- ClusterVersion string
- Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersionsto 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. The default value is dockerfor versions below v1.24 andcontainerdfor versions above v1.24.
- DataPlane boolV2 
- Whether to enable DataPlaneV2 (replace kube-proxy with cilium). data_plane_v2andcluster_ipvsshould not be set at the same time.
- DeletionProtection bool
- Indicates whether cluster deletion protection is enabled. Default is false.
- DockerGraph stringPath 
- Docker graph path. Default is /var/lib/docker.
- Domain string
- Domain name for access.
- EnableCustomized boolPod Cidr 
- Whether to enable the custom mode of node podCIDR size. Default is false.
- EniSubnet List<string>Ids 
- Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_typeis 'VPC-CNI'.eni_subnet_idscan not empty once be set.
- EventPersistence KubernetesCluster Event Persistence 
- Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
- ExistInstances List<KubernetesCluster Exist Instance> 
- Create tke cluster by existed instances.
- ExtensionAddons List<KubernetesCluster Extension Addon> 
- Information of the add-on to be installed. It is recommended to use resource tencentcloud.KubernetesAddonmanagement cluster addon.
- ExtraArgs List<string>
- Custom parameter information related to the node.
- GlobeDesired doublePod Num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
- IgnoreCluster boolCidr Conflict 
- Indicates whether to ignore the cluster cidr conflict error. Default is false.
- IgnoreService boolCidr Conflict 
- Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNImode.
- InstanceDelete stringMode 
- 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.
- IsDual boolStack 
- In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
- IsNon boolStatic Ip Mode 
- Indicates whether non-static ip mode is enabled. Default is false.
- KubeConfig string
- Kubernetes config.
- KubeConfig stringIntranet 
- Kubernetes config of private network.
- KubeProxy stringMode 
- 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.
- KubernetesCluster stringId 
- ID of the resource.
- Labels Dictionary<string, string>
- Labels of tke cluster nodes.
- LogAgent KubernetesCluster Log Agent 
- Specify cluster log agent config.
- ManagedCluster List<string>Internet Security Policies 
- this argument was deprecated, use cluster_internet_security_groupinstead. 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 fieldcluster_deploy_typeis 'MANAGED_CLUSTER' andcluster_internetis true.managed_cluster_internet_security_policiescan not delete or empty once be set.
- MasterConfigs List<KubernetesCluster Master Config> 
- 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.
- NodeName stringType 
- Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
- NodePool List<KubernetesGlobal Configs Cluster Node Pool Global Config> 
- Global config effective for all node pools.
- Password string
- Password of account.
- PgwEndpoint string
- The Intranet address used for access.
- PreStart stringUser Script 
- Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- ProjectId double
- Project ID, default value is 0.
- ResourceDelete List<KubernetesOptions Cluster Resource Delete Option> 
- 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.
- 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.
- UpgradeInstances boolFollow Cluster 
- Indicates whether upgrade all instances when cluster_version change. Default is false.
- UserName string
- User name of account.
- VpcCni stringType 
- Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-enifor shared network card multi-IP mode andtke-direct-enifor independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, botheni_subnet_idsandvpc_cni_typemust be set to empty.
- VpcId string
- Vpc Id of the cluster.
- WorkerConfigs List<KubernetesCluster Worker Config> 
- 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'.
- WorkerInstances List<KubernetesLists Cluster Worker Instances List> 
- An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
- AcquireCluster boolAdmin Role 
- If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to falseafter acquired.
- AuthOptions KubernetesCluster Auth Options Args 
- Specify cluster authentication configuration. Only available for managed cluster and cluster_version>= 1.20.
- AutoUpgrade boolCluster Level 
- Whether the cluster level auto upgraded, valid for managed cluster.
- BasePod float64Num 
- The number of basic pods. valid when enable_customized_pod_cidr=true.
- CdcId string
- CDC ID.
- string
- The certificate used for access.
- ClaimExpired float64Seconds 
- Claim expired seconds to recycle ENI. This field can only set when field network_typeis 'VPC-CNI'.claim_expired_secondsmust greater or equal than 300 and less than 15768000.
- ClusterAs boolEnabled 
- (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.
- ClusterAudit KubernetesCluster Cluster Audit Args 
- 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.
- ClusterDeploy stringType 
- Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
- ClusterDesc string
- Description of the cluster.
- ClusterExternal stringEndpoint 
- External network address to access.
- ClusterExtra KubernetesArgs Cluster Cluster Extra Args Args 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- ClusterInternet stringDomain 
- 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.
- ClusterInternet stringSecurity Group 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- ClusterIntranet stringDomain 
- 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.
- ClusterIntranet stringSubnet Id 
- Subnet id who can access this independent cluster, this field must and can only set when cluster_intranetis true.cluster_intranet_subnet_idcan not modify once be set.
- ClusterIpvs bool
- Indicates whether ipvsis enabled. Default is true. False meansiptablesis enabled.
- ClusterLevel string
- Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevelsto query available levels. Available value examplesL5,L20,L50,L100, etc.
- ClusterMax float64Pod Num 
- 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.
- ClusterMax float64Service Num 
- 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.
- ClusterNode float64Num 
- 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.
- ClusterOs stringType 
- Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
- ClusterSubnet stringId 
- Subnet ID of the cluster, such as: subnet-b3p7d7q5.
- ClusterVersion string
- Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersionsto 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. The default value is dockerfor versions below v1.24 andcontainerdfor versions above v1.24.
- DataPlane boolV2 
- Whether to enable DataPlaneV2 (replace kube-proxy with cilium). data_plane_v2andcluster_ipvsshould not be set at the same time.
- DeletionProtection bool
- Indicates whether cluster deletion protection is enabled. Default is false.
- DockerGraph stringPath 
- Docker graph path. Default is /var/lib/docker.
- Domain string
- Domain name for access.
- EnableCustomized boolPod Cidr 
- Whether to enable the custom mode of node podCIDR size. Default is false.
- EniSubnet []stringIds 
- Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_typeis 'VPC-CNI'.eni_subnet_idscan not empty once be set.
- EventPersistence KubernetesCluster Event Persistence Args 
- Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
- ExistInstances []KubernetesCluster Exist Instance Args 
- Create tke cluster by existed instances.
- ExtensionAddons []KubernetesCluster Extension Addon Args 
- Information of the add-on to be installed. It is recommended to use resource tencentcloud.KubernetesAddonmanagement cluster addon.
- ExtraArgs []string
- Custom parameter information related to the node.
- GlobeDesired float64Pod Num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
- IgnoreCluster boolCidr Conflict 
- Indicates whether to ignore the cluster cidr conflict error. Default is false.
- IgnoreService boolCidr Conflict 
- Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNImode.
- InstanceDelete stringMode 
- 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.
- IsDual boolStack 
- In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
- IsNon boolStatic Ip Mode 
- Indicates whether non-static ip mode is enabled. Default is false.
- KubeConfig string
- Kubernetes config.
- KubeConfig stringIntranet 
- Kubernetes config of private network.
- KubeProxy stringMode 
- 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.
- KubernetesCluster stringId 
- ID of the resource.
- Labels map[string]string
- Labels of tke cluster nodes.
- LogAgent KubernetesCluster Log Agent Args 
- Specify cluster log agent config.
- ManagedCluster []stringInternet Security Policies 
- this argument was deprecated, use cluster_internet_security_groupinstead. 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 fieldcluster_deploy_typeis 'MANAGED_CLUSTER' andcluster_internetis true.managed_cluster_internet_security_policiescan not delete or empty once be set.
- MasterConfigs []KubernetesCluster Master Config Args 
- 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.
- NodeName stringType 
- Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
- NodePool []KubernetesGlobal Configs Cluster Node Pool Global Config Args 
- Global config effective for all node pools.
- Password string
- Password of account.
- PgwEndpoint string
- The Intranet address used for access.
- PreStart stringUser Script 
- Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- ProjectId float64
- Project ID, default value is 0.
- ResourceDelete []KubernetesOptions Cluster Resource Delete Option Args 
- 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.
- 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.
- UpgradeInstances boolFollow Cluster 
- Indicates whether upgrade all instances when cluster_version change. Default is false.
- UserName string
- User name of account.
- VpcCni stringType 
- Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-enifor shared network card multi-IP mode andtke-direct-enifor independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, botheni_subnet_idsandvpc_cni_typemust be set to empty.
- VpcId string
- Vpc Id of the cluster.
- WorkerConfigs []KubernetesCluster Worker Config Args 
- 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'.
- WorkerInstances []KubernetesLists Cluster Worker Instances List Args 
- An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
- acquireCluster BooleanAdmin Role 
- If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to falseafter acquired.
- authOptions KubernetesCluster Auth Options 
- Specify cluster authentication configuration. Only available for managed cluster and cluster_version>= 1.20.
- autoUpgrade BooleanCluster Level 
- Whether the cluster level auto upgraded, valid for managed cluster.
- basePod DoubleNum 
- The number of basic pods. valid when enable_customized_pod_cidr=true.
- cdcId String
- CDC ID.
- String
- The certificate used for access.
- claimExpired DoubleSeconds 
- Claim expired seconds to recycle ENI. This field can only set when field network_typeis 'VPC-CNI'.claim_expired_secondsmust greater or equal than 300 and less than 15768000.
- clusterAs BooleanEnabled 
- (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.
- clusterAudit KubernetesCluster Cluster Audit 
- 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.
- clusterDeploy StringType 
- Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
- clusterDesc String
- Description of the cluster.
- clusterExternal StringEndpoint 
- External network address to access.
- clusterExtra KubernetesArgs Cluster Cluster Extra Args 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- clusterInternet StringDomain 
- 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.
- clusterInternet StringSecurity Group 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- clusterIntranet StringDomain 
- 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.
- clusterIntranet StringSubnet Id 
- Subnet id who can access this independent cluster, this field must and can only set when cluster_intranetis true.cluster_intranet_subnet_idcan not modify once be set.
- clusterIpvs Boolean
- Indicates whether ipvsis enabled. Default is true. False meansiptablesis enabled.
- clusterLevel String
- Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevelsto query available levels. Available value examplesL5,L20,L50,L100, etc.
- clusterMax DoublePod Num 
- 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.
- clusterMax DoubleService Num 
- 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.
- clusterNode DoubleNum 
- 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.
- clusterOs StringType 
- Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
- clusterSubnet StringId 
- Subnet ID of the cluster, such as: subnet-b3p7d7q5.
- clusterVersion String
- Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersionsto 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. The default value is dockerfor versions below v1.24 andcontainerdfor versions above v1.24.
- dataPlane BooleanV2 
- Whether to enable DataPlaneV2 (replace kube-proxy with cilium). data_plane_v2andcluster_ipvsshould not be set at the same time.
- deletionProtection Boolean
- Indicates whether cluster deletion protection is enabled. Default is false.
- dockerGraph StringPath 
- Docker graph path. Default is /var/lib/docker.
- domain String
- Domain name for access.
- enableCustomized BooleanPod Cidr 
- Whether to enable the custom mode of node podCIDR size. Default is false.
- eniSubnet List<String>Ids 
- Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_typeis 'VPC-CNI'.eni_subnet_idscan not empty once be set.
- eventPersistence KubernetesCluster Event Persistence 
- Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
- existInstances List<KubernetesCluster Exist Instance> 
- Create tke cluster by existed instances.
- extensionAddons List<KubernetesCluster Extension Addon> 
- Information of the add-on to be installed. It is recommended to use resource tencentcloud.KubernetesAddonmanagement cluster addon.
- extraArgs List<String>
- Custom parameter information related to the node.
- globeDesired DoublePod Num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
- ignoreCluster BooleanCidr Conflict 
- Indicates whether to ignore the cluster cidr conflict error. Default is false.
- ignoreService BooleanCidr Conflict 
- Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNImode.
- instanceDelete StringMode 
- 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.
- isDual BooleanStack 
- In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
- isNon BooleanStatic Ip Mode 
- Indicates whether non-static ip mode is enabled. Default is false.
- kubeConfig String
- Kubernetes config.
- kubeConfig StringIntranet 
- Kubernetes config of private network.
- kubeProxy StringMode 
- 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.
- kubernetesCluster StringId 
- ID of the resource.
- labels Map<String,String>
- Labels of tke cluster nodes.
- logAgent KubernetesCluster Log Agent 
- Specify cluster log agent config.
- managedCluster List<String>Internet Security Policies 
- this argument was deprecated, use cluster_internet_security_groupinstead. 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 fieldcluster_deploy_typeis 'MANAGED_CLUSTER' andcluster_internetis true.managed_cluster_internet_security_policiescan not delete or empty once be set.
- masterConfigs List<KubernetesCluster Master Config> 
- 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.
- nodeName StringType 
- Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
- nodePool List<KubernetesGlobal Configs Cluster Node Pool Global Config> 
- Global config effective for all node pools.
- password String
- Password of account.
- pgwEndpoint String
- The Intranet address used for access.
- preStart StringUser Script 
- Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- projectId Double
- Project ID, default value is 0.
- resourceDelete List<KubernetesOptions Cluster Resource Delete Option> 
- 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.
- 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.
- upgradeInstances BooleanFollow Cluster 
- Indicates whether upgrade all instances when cluster_version change. Default is false.
- userName String
- User name of account.
- vpcCni StringType 
- Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-enifor shared network card multi-IP mode andtke-direct-enifor independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, botheni_subnet_idsandvpc_cni_typemust be set to empty.
- vpcId String
- Vpc Id of the cluster.
- workerConfigs List<KubernetesCluster Worker Config> 
- 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'.
- workerInstances List<KubernetesLists Cluster Worker Instances List> 
- An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
- acquireCluster booleanAdmin Role 
- If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to falseafter acquired.
- authOptions KubernetesCluster Auth Options 
- Specify cluster authentication configuration. Only available for managed cluster and cluster_version>= 1.20.
- autoUpgrade booleanCluster Level 
- Whether the cluster level auto upgraded, valid for managed cluster.
- basePod numberNum 
- The number of basic pods. valid when enable_customized_pod_cidr=true.
- cdcId string
- CDC ID.
- string
- The certificate used for access.
- claimExpired numberSeconds 
- Claim expired seconds to recycle ENI. This field can only set when field network_typeis 'VPC-CNI'.claim_expired_secondsmust greater or equal than 300 and less than 15768000.
- clusterAs booleanEnabled 
- (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.
- clusterAudit KubernetesCluster Cluster Audit 
- 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.
- clusterDeploy stringType 
- Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
- clusterDesc string
- Description of the cluster.
- clusterExternal stringEndpoint 
- External network address to access.
- clusterExtra KubernetesArgs Cluster Cluster Extra Args 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- clusterInternet stringDomain 
- 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.
- clusterInternet stringSecurity Group 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- clusterIntranet stringDomain 
- 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.
- clusterIntranet stringSubnet Id 
- Subnet id who can access this independent cluster, this field must and can only set when cluster_intranetis true.cluster_intranet_subnet_idcan not modify once be set.
- clusterIpvs boolean
- Indicates whether ipvsis enabled. Default is true. False meansiptablesis enabled.
- clusterLevel string
- Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevelsto query available levels. Available value examplesL5,L20,L50,L100, etc.
- clusterMax numberPod Num 
- 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.
- clusterMax numberService Num 
- 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.
- clusterNode numberNum 
- 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.
- clusterOs stringType 
- Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
- clusterSubnet stringId 
- Subnet ID of the cluster, such as: subnet-b3p7d7q5.
- clusterVersion string
- Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersionsto 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. The default value is dockerfor versions below v1.24 andcontainerdfor versions above v1.24.
- dataPlane booleanV2 
- Whether to enable DataPlaneV2 (replace kube-proxy with cilium). data_plane_v2andcluster_ipvsshould not be set at the same time.
- deletionProtection boolean
- Indicates whether cluster deletion protection is enabled. Default is false.
- dockerGraph stringPath 
- Docker graph path. Default is /var/lib/docker.
- domain string
- Domain name for access.
- enableCustomized booleanPod Cidr 
- Whether to enable the custom mode of node podCIDR size. Default is false.
- eniSubnet string[]Ids 
- Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_typeis 'VPC-CNI'.eni_subnet_idscan not empty once be set.
- eventPersistence KubernetesCluster Event Persistence 
- Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
- existInstances KubernetesCluster Exist Instance[] 
- Create tke cluster by existed instances.
- extensionAddons KubernetesCluster Extension Addon[] 
- Information of the add-on to be installed. It is recommended to use resource tencentcloud.KubernetesAddonmanagement cluster addon.
- extraArgs string[]
- Custom parameter information related to the node.
- globeDesired numberPod Num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
- ignoreCluster booleanCidr Conflict 
- Indicates whether to ignore the cluster cidr conflict error. Default is false.
- ignoreService booleanCidr Conflict 
- Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNImode.
- instanceDelete stringMode 
- 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.
- isDual booleanStack 
- In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
- isNon booleanStatic Ip Mode 
- Indicates whether non-static ip mode is enabled. Default is false.
- kubeConfig string
- Kubernetes config.
- kubeConfig stringIntranet 
- Kubernetes config of private network.
- kubeProxy stringMode 
- 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.
- kubernetesCluster stringId 
- ID of the resource.
- labels {[key: string]: string}
- Labels of tke cluster nodes.
- logAgent KubernetesCluster Log Agent 
- Specify cluster log agent config.
- managedCluster string[]Internet Security Policies 
- this argument was deprecated, use cluster_internet_security_groupinstead. 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 fieldcluster_deploy_typeis 'MANAGED_CLUSTER' andcluster_internetis true.managed_cluster_internet_security_policiescan not delete or empty once be set.
- masterConfigs KubernetesCluster Master Config[] 
- 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.
- nodeName stringType 
- Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
- nodePool KubernetesGlobal Configs Cluster Node Pool Global Config[] 
- Global config effective for all node pools.
- password string
- Password of account.
- pgwEndpoint string
- The Intranet address used for access.
- preStart stringUser Script 
- Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- projectId number
- Project ID, default value is 0.
- resourceDelete KubernetesOptions Cluster Resource Delete Option[] 
- 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.
- {[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.
- upgradeInstances booleanFollow Cluster 
- Indicates whether upgrade all instances when cluster_version change. Default is false.
- userName string
- User name of account.
- vpcCni stringType 
- Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-enifor shared network card multi-IP mode andtke-direct-enifor independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, botheni_subnet_idsandvpc_cni_typemust be set to empty.
- vpcId string
- Vpc Id of the cluster.
- workerConfigs KubernetesCluster Worker Config[] 
- 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'.
- workerInstances KubernetesLists Cluster Worker Instances List[] 
- An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
- acquire_cluster_ booladmin_ role 
- If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to falseafter acquired.
- auth_options KubernetesCluster Auth Options Args 
- Specify cluster authentication configuration. Only available for managed cluster and cluster_version>= 1.20.
- auto_upgrade_ boolcluster_ level 
- Whether the cluster level auto upgraded, valid for managed cluster.
- base_pod_ floatnum 
- The number of basic pods. valid when enable_customized_pod_cidr=true.
- cdc_id str
- CDC ID.
- str
- The certificate used for access.
- claim_expired_ floatseconds 
- Claim expired seconds to recycle ENI. This field can only set when field network_typeis 'VPC-CNI'.claim_expired_secondsmust greater or equal than 300 and less than 15768000.
- cluster_as_ boolenabled 
- (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.
- cluster_audit KubernetesCluster Cluster Audit Args 
- 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_ strtype 
- 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_ strendpoint 
- External network address to access.
- cluster_extra_ Kubernetesargs Cluster Cluster Extra Args Args 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- cluster_internet_ strdomain 
- 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_ strsecurity_ group 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- cluster_intranet_ strdomain 
- 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_ strsubnet_ id 
- Subnet id who can access this independent cluster, this field must and can only set when cluster_intranetis true.cluster_intranet_subnet_idcan not modify once be set.
- cluster_ipvs bool
- Indicates whether ipvsis enabled. Default is true. False meansiptablesis enabled.
- cluster_level str
- Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevelsto query available levels. Available value examplesL5,L20,L50,L100, etc.
- cluster_max_ floatpod_ num 
- 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_ floatservice_ num 
- 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_ floatnum 
- 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_ strtype 
- Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
- cluster_subnet_ strid 
- Subnet ID of the cluster, such as: subnet-b3p7d7q5.
- cluster_version str
- Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersionsto 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. The default value is dockerfor versions below v1.24 andcontainerdfor versions above v1.24.
- data_plane_ boolv2 
- Whether to enable DataPlaneV2 (replace kube-proxy with cilium). data_plane_v2andcluster_ipvsshould not be set at the same time.
- deletion_protection bool
- Indicates whether cluster deletion protection is enabled. Default is false.
- docker_graph_ strpath 
- Docker graph path. Default is /var/lib/docker.
- domain str
- Domain name for access.
- enable_customized_ boolpod_ cidr 
- Whether to enable the custom mode of node podCIDR size. Default is false.
- eni_subnet_ Sequence[str]ids 
- Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_typeis 'VPC-CNI'.eni_subnet_idscan not empty once be set.
- event_persistence KubernetesCluster Event Persistence Args 
- Specify cluster Event Persistence config. NOTE: Please make sure your TKE CamRole have permission to access CLS service.
- exist_instances Sequence[KubernetesCluster Exist Instance Args] 
- Create tke cluster by existed instances.
- extension_addons Sequence[KubernetesCluster Extension Addon Args] 
- Information of the add-on to be installed. It is recommended to use resource tencentcloud.KubernetesAddonmanagement cluster addon.
- extra_args Sequence[str]
- Custom parameter information related to the node.
- globe_desired_ floatpod_ num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
- ignore_cluster_ boolcidr_ conflict 
- Indicates whether to ignore the cluster cidr conflict error. Default is false.
- ignore_service_ boolcidr_ conflict 
- Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNImode.
- instance_delete_ strmode 
- 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_dual_ boolstack 
- In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
- is_non_ boolstatic_ ip_ mode 
- Indicates whether non-static ip mode is enabled. Default is false.
- kube_config str
- Kubernetes config.
- kube_config_ strintranet 
- Kubernetes config of private network.
- kube_proxy_ strmode 
- 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_ strid 
- ID of the resource.
- labels Mapping[str, str]
- Labels of tke cluster nodes.
- log_agent KubernetesCluster Log Agent Args 
- Specify cluster log agent config.
- managed_cluster_ Sequence[str]internet_ security_ policies 
- this argument was deprecated, use cluster_internet_security_groupinstead. 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 fieldcluster_deploy_typeis 'MANAGED_CLUSTER' andcluster_internetis true.managed_cluster_internet_security_policiescan not delete or empty once be set.
- master_configs Sequence[KubernetesCluster Master Config Args] 
- 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_ strtype 
- Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
- node_pool_ Sequence[Kubernetesglobal_ configs Cluster Node Pool Global Config Args] 
- Global config effective for all node pools.
- password str
- Password of account.
- pgw_endpoint str
- The Intranet address used for access.
- pre_start_ struser_ script 
- 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_ Sequence[Kubernetesoptions Cluster Resource Delete Option Args] 
- 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.
- 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_ boolfollow_ cluster 
- Indicates whether upgrade all instances when cluster_version change. Default is false.
- user_name str
- User name of account.
- vpc_cni_ strtype 
- Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-enifor shared network card multi-IP mode andtke-direct-enifor independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, botheni_subnet_idsandvpc_cni_typemust be set to empty.
- vpc_id str
- Vpc Id of the cluster.
- worker_configs Sequence[KubernetesCluster Worker Config Args] 
- 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_ Sequence[Kuberneteslists Cluster Worker Instances List Args] 
- An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
- acquireCluster BooleanAdmin Role 
- If set to true, it will acquire the ClusterRole tke:admin. NOTE: this arguments cannot revoke to falseafter acquired.
- authOptions Property Map
- Specify cluster authentication configuration. Only available for managed cluster and cluster_version>= 1.20.
- autoUpgrade BooleanCluster Level 
- Whether the cluster level auto upgraded, valid for managed cluster.
- basePod NumberNum 
- The number of basic pods. valid when enable_customized_pod_cidr=true.
- cdcId String
- CDC ID.
- String
- The certificate used for access.
- claimExpired NumberSeconds 
- Claim expired seconds to recycle ENI. This field can only set when field network_typeis 'VPC-CNI'.claim_expired_secondsmust greater or equal than 300 and less than 15768000.
- clusterAs BooleanEnabled 
- (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.
- 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.
- clusterDeploy StringType 
- Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.
- clusterDesc String
- Description of the cluster.
- clusterExternal StringEndpoint 
- External network address to access.
- clusterExtra Property MapArgs 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- clusterInternet StringDomain 
- 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.
- clusterInternet StringSecurity Group 
- 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_configmust be set. Because only cluster with node is allowed enable access endpoint. You may open it throughtencentcloud.KubernetesClusterEndpoint.
- clusterIntranet StringDomain 
- 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.
- clusterIntranet StringSubnet Id 
- Subnet id who can access this independent cluster, this field must and can only set when cluster_intranetis true.cluster_intranet_subnet_idcan not modify once be set.
- clusterIpvs Boolean
- Indicates whether ipvsis enabled. Default is true. False meansiptablesis enabled.
- clusterLevel String
- Specify cluster level, valid for managed cluster, use data source tencentcloud.getKubernetesClusterLevelsto query available levels. Available value examplesL5,L20,L50,L100, etc.
- clusterMax NumberPod Num 
- 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.
- clusterMax NumberService Num 
- 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.
- clusterNode NumberNum 
- 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.
- clusterOs StringType 
- Image type of the cluster os, the available values include: 'GENERAL'. Default is 'GENERAL'.
- clusterSubnet StringId 
- Subnet ID of the cluster, such as: subnet-b3p7d7q5.
- clusterVersion String
- Version of the cluster. Use tencentcloud.getKubernetesAvailableClusterVersionsto 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. The default value is dockerfor versions below v1.24 andcontainerdfor versions above v1.24.
- dataPlane BooleanV2 
- Whether to enable DataPlaneV2 (replace kube-proxy with cilium). data_plane_v2andcluster_ipvsshould not be set at the same time.
- deletionProtection Boolean
- Indicates whether cluster deletion protection is enabled. Default is false.
- dockerGraph StringPath 
- Docker graph path. Default is /var/lib/docker.
- domain String
- Domain name for access.
- enableCustomized BooleanPod Cidr 
- Whether to enable the custom mode of node podCIDR size. Default is false.
- eniSubnet List<String>Ids 
- Subnet Ids for cluster with VPC-CNI network mode. This field can only set when field network_typeis 'VPC-CNI'.eni_subnet_idscan 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. It is recommended to use resource tencentcloud.KubernetesAddonmanagement cluster addon.
- extraArgs List<String>
- Custom parameter information related to the node.
- globeDesired NumberPod Num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it takes effect for all nodes.
- ignoreCluster BooleanCidr Conflict 
- Indicates whether to ignore the cluster cidr conflict error. Default is false.
- ignoreService BooleanCidr Conflict 
- Indicates whether to ignore the service cidr conflict error. Only valid in VPC-CNImode.
- instanceDelete StringMode 
- 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.
- isDual BooleanStack 
- In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
- isNon BooleanStatic Ip Mode 
- Indicates whether non-static ip mode is enabled. Default is false.
- kubeConfig String
- Kubernetes config.
- kubeConfig StringIntranet 
- Kubernetes config of private network.
- kubeProxy StringMode 
- 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.
- kubernetesCluster StringId 
- ID of the resource.
- labels Map<String>
- Labels of tke cluster nodes.
- logAgent Property Map
- Specify cluster log agent config.
- managedCluster List<String>Internet Security Policies 
- this argument was deprecated, use cluster_internet_security_groupinstead. 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 fieldcluster_deploy_typeis 'MANAGED_CLUSTER' andcluster_internetis true.managed_cluster_internet_security_policiescan not delete or empty once be set.
- 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.
- nodeName StringType 
- Node name type of Cluster, the available values include: 'lan-ip' and 'hostname', Default is 'lan-ip'.
- nodePool List<Property Map>Global Configs 
- Global config effective for all node pools.
- password String
- Password of account.
- pgwEndpoint String
- The Intranet address used for access.
- preStart StringUser Script 
- Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- projectId Number
- Project ID, default value is 0.
- resourceDelete List<Property Map>Options 
- 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.
- Map<String>
- The tags of the cluster.
- unschedulable Number
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- upgradeInstances BooleanFollow Cluster 
- Indicates whether upgrade all instances when cluster_version change. Default is false.
- userName String
- User name of account.
- vpcCni StringType 
- Distinguish between shared network card multi-IP mode and independent network card mode. Fill in tke-route-enifor shared network card multi-IP mode andtke-direct-enifor independent network card mode. The default is shared network card mode. When it is necessary to turn off the vpc-cni container network capability, botheni_subnet_idsandvpc_cni_typemust 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'.
- workerInstances List<Property Map>Lists 
- An information list of cvm within the 'WORKER' clusters. Each element contains the following attributes:
Supporting Types
KubernetesClusterAuthOptions, KubernetesClusterAuthOptionsArgs        
- AutoCreate boolDiscovery Anonymous Auth 
- 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.
- UseTke boolDefault 
- 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.
- AutoCreate boolDiscovery Anonymous Auth 
- 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.
- UseTke boolDefault 
- 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.
- autoCreate BooleanDiscovery Anonymous Auth 
- 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.
- useTke BooleanDefault 
- 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.
- autoCreate booleanDiscovery Anonymous Auth 
- 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.
- useTke booleanDefault 
- 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_ booldiscovery_ anonymous_ auth 
- 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_ booldefault 
- 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.
- autoCreate BooleanDiscovery Anonymous Auth 
- 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.
- useTke BooleanDefault 
- 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.
- DeleteAudit boolLog And Topic 
- 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.
- LogSet stringId 
- 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.
- DeleteAudit boolLog And Topic 
- 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.
- LogSet stringId 
- 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.
- deleteAudit BooleanLog And Topic 
- 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.
- logSet StringId 
- 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.
- deleteAudit booleanLog And Topic 
- 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.
- logSet stringId 
- 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_ boollog_ and_ topic 
- 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_ strid 
- 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.
- deleteAudit BooleanLog And Topic 
- 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.
- logSet StringId 
- 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.
- KubeController List<string>Managers 
- The customized parameters for kube-controller-manager.
- KubeSchedulers List<string>
- The customized parameters for kube-scheduler.
- KubeApiservers []string
- The customized parameters for kube-apiserver.
- KubeController []stringManagers 
- The customized parameters for kube-controller-manager.
- KubeSchedulers []string
- The customized parameters for kube-scheduler.
- kubeApiservers List<String>
- The customized parameters for kube-apiserver.
- kubeController List<String>Managers 
- The customized parameters for kube-controller-manager.
- kubeSchedulers List<String>
- The customized parameters for kube-scheduler.
- kubeApiservers string[]
- The customized parameters for kube-apiserver.
- kubeController string[]Managers 
- 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_ Sequence[str]managers 
- 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.
- kubeController List<String>Managers 
- 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.
- DeleteEvent boolLog And Topic 
- 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.
- LogSet stringId 
- 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.
- DeleteEvent boolLog And Topic 
- 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.
- LogSet stringId 
- 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.
- deleteEvent BooleanLog And Topic 
- 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.
- logSet StringId 
- 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.
- deleteEvent booleanLog And Topic 
- 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.
- logSet stringId 
- 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_ boollog_ and_ topic 
- 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_ strid 
- 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.
- deleteEvent BooleanLog And Topic 
- 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.
- logSet StringId 
- 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        
- DesiredPod List<double>Numbers 
- Custom mode cluster, you can specify the number of pods for each node. corresponding to the existed_instances_para.instance_ids parameter.
- InstancesPara KubernetesCluster Exist Instance Instances Para 
- Reinstallation parameters of an existing instance.
- NodeRole string
- Role of existed node. Value: MASTER_ETCD or WORKER.
- DesiredPod []float64Numbers 
- Custom mode cluster, you can specify the number of pods for each node. corresponding to the existed_instances_para.instance_ids parameter.
- InstancesPara KubernetesCluster Exist Instance Instances Para 
- Reinstallation parameters of an existing instance.
- NodeRole string
- Role of existed node. Value: MASTER_ETCD or WORKER.
- desiredPod List<Double>Numbers 
- Custom mode cluster, you can specify the number of pods for each node. corresponding to the existed_instances_para.instance_ids parameter.
- instancesPara KubernetesCluster Exist Instance Instances Para 
- Reinstallation parameters of an existing instance.
- nodeRole String
- Role of existed node. Value: MASTER_ETCD or WORKER.
- desiredPod number[]Numbers 
- Custom mode cluster, you can specify the number of pods for each node. corresponding to the existed_instances_para.instance_ids parameter.
- instancesPara KubernetesCluster Exist Instance Instances Para 
- Reinstallation parameters of an existing instance.
- nodeRole string
- Role of existed node. Value: MASTER_ETCD or WORKER.
- desired_pod_ Sequence[float]numbers 
- Custom mode cluster, you can specify the number of pods for each node. corresponding to the existed_instances_para.instance_ids parameter.
- instances_para KubernetesCluster Exist Instance Instances Para 
- Reinstallation parameters of an existing instance.
- node_role str
- Role of existed node. Value: MASTER_ETCD or WORKER.
- desiredPod List<Number>Numbers 
- 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.
- EnhancedMonitor boolService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- EnhancedSecurity boolService 
- To specify whether to enable cloud security service. Default is TRUE.
- KeyIds List<string>
- ID list of keys, should be set if passwordnot set.
- MasterConfig KubernetesCluster Exist Instance Instances Para Master Config 
- Advanced Node Settings. commonly used to attach existing instances.
- Password string
- Password to access, should be set if key_idsnot set.
- SecurityGroup List<string>Ids 
- Security groups to which a CVM instance belongs.
- InstanceIds []string
- Cluster IDs.
- EnhancedMonitor boolService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- EnhancedSecurity boolService 
- To specify whether to enable cloud security service. Default is TRUE.
- KeyIds []string
- ID list of keys, should be set if passwordnot set.
- MasterConfig KubernetesCluster Exist Instance Instances Para Master Config 
- Advanced Node Settings. commonly used to attach existing instances.
- Password string
- Password to access, should be set if key_idsnot set.
- SecurityGroup []stringIds 
- Security groups to which a CVM instance belongs.
- instanceIds List<String>
- Cluster IDs.
- enhancedMonitor BooleanService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- enhancedSecurity BooleanService 
- To specify whether to enable cloud security service. Default is TRUE.
- keyIds List<String>
- ID list of keys, should be set if passwordnot set.
- masterConfig KubernetesCluster Exist Instance Instances Para Master Config 
- Advanced Node Settings. commonly used to attach existing instances.
- password String
- Password to access, should be set if key_idsnot set.
- securityGroup List<String>Ids 
- Security groups to which a CVM instance belongs.
- instanceIds string[]
- Cluster IDs.
- enhancedMonitor booleanService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- enhancedSecurity booleanService 
- To specify whether to enable cloud security service. Default is TRUE.
- keyIds string[]
- ID list of keys, should be set if passwordnot set.
- masterConfig KubernetesCluster Exist Instance Instances Para Master Config 
- Advanced Node Settings. commonly used to attach existing instances.
- password string
- Password to access, should be set if key_idsnot set.
- securityGroup string[]Ids 
- Security groups to which a CVM instance belongs.
- instance_ids Sequence[str]
- Cluster IDs.
- enhanced_monitor_ boolservice 
- To specify whether to enable cloud monitor service. Default is TRUE.
- enhanced_security_ boolservice 
- To specify whether to enable cloud security service. Default is TRUE.
- key_ids Sequence[str]
- ID list of keys, should be set if passwordnot set.
- master_config KubernetesCluster Exist Instance Instances Para Master Config 
- Advanced Node Settings. commonly used to attach existing instances.
- password str
- Password to access, should be set if key_idsnot set.
- security_group_ Sequence[str]ids 
- Security groups to which a CVM instance belongs.
- instanceIds List<String>
- Cluster IDs.
- enhancedMonitor BooleanService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- enhancedSecurity BooleanService 
- To specify whether to enable cloud security service. Default is TRUE.
- keyIds List<String>
- ID list of keys, should be set if passwordnot set.
- masterConfig Property Map
- Advanced Node Settings. commonly used to attach existing instances.
- password String
- Password to access, should be set if key_idsnot set.
- securityGroup List<String>Ids 
- Security groups to which a CVM instance belongs.
KubernetesClusterExistInstanceInstancesParaMasterConfig, KubernetesClusterExistInstanceInstancesParaMasterConfigArgs                
- DataDisk KubernetesCluster Exist Instance Instances Para Master Config Data Disk 
- Configurations of data disk.
- DesiredPod doubleNumber 
- Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- DockerGraph stringPath 
- Docker graph path. Default is /var/lib/docker.
- ExtraArgs KubernetesCluster Exist Instance Instances Para Master Config Extra Args 
- Custom parameter information related to the node. This is a white-list parameter.
- GpuArgs KubernetesCluster Exist Instance Instances Para Master Config Gpu Args 
- GPU driver parameters.
- Labels
List<KubernetesCluster Exist Instance Instances Para Master Config Label> 
- Node label list.
- MountTarget string
- Mount target. Default is not mounting.
- Taints
List<KubernetesCluster Exist Instance Instances Para Master Config Taint> 
- 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 unschedulableparameter. 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 KubernetesCluster Exist Instance Instances Para Master Config Data Disk 
- Configurations of data disk.
- DesiredPod float64Number 
- Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- DockerGraph stringPath 
- Docker graph path. Default is /var/lib/docker.
- ExtraArgs KubernetesCluster Exist Instance Instances Para Master Config Extra Args 
- Custom parameter information related to the node. This is a white-list parameter.
- GpuArgs KubernetesCluster Exist Instance Instances Para Master Config Gpu Args 
- GPU driver parameters.
- Labels
[]KubernetesCluster Exist Instance Instances Para Master Config Label 
- Node label list.
- MountTarget string
- Mount target. Default is not mounting.
- Taints
[]KubernetesCluster Exist Instance Instances Para Master Config Taint 
- 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 unschedulableparameter. 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 KubernetesCluster Exist Instance Instances Para Master Config Data Disk 
- Configurations of data disk.
- desiredPod DoubleNumber 
- Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- dockerGraph StringPath 
- Docker graph path. Default is /var/lib/docker.
- extraArgs KubernetesCluster Exist Instance Instances Para Master Config Extra Args 
- Custom parameter information related to the node. This is a white-list parameter.
- gpuArgs KubernetesCluster Exist Instance Instances Para Master Config Gpu Args 
- GPU driver parameters.
- labels
List<KubernetesCluster Exist Instance Instances Para Master Config Label> 
- Node label list.
- mountTarget String
- Mount target. Default is not mounting.
- taints
List<KubernetesCluster Exist Instance Instances Para Master Config Taint> 
- 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 unschedulableparameter. 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 KubernetesCluster Exist Instance Instances Para Master Config Data Disk 
- Configurations of data disk.
- desiredPod numberNumber 
- Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- dockerGraph stringPath 
- Docker graph path. Default is /var/lib/docker.
- extraArgs KubernetesCluster Exist Instance Instances Para Master Config Extra Args 
- Custom parameter information related to the node. This is a white-list parameter.
- gpuArgs KubernetesCluster Exist Instance Instances Para Master Config Gpu Args 
- GPU driver parameters.
- labels
KubernetesCluster Exist Instance Instances Para Master Config Label[] 
- Node label list.
- mountTarget string
- Mount target. Default is not mounting.
- taints
KubernetesCluster Exist Instance Instances Para Master Config Taint[] 
- 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 unschedulableparameter. 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 KubernetesCluster Exist Instance Instances Para Master Config Data Disk 
- Configurations of data disk.
- desired_pod_ floatnumber 
- Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- docker_graph_ strpath 
- Docker graph path. Default is /var/lib/docker.
- extra_args KubernetesCluster Exist Instance Instances Para Master Config Extra Args 
- Custom parameter information related to the node. This is a white-list parameter.
- gpu_args KubernetesCluster Exist Instance Instances Para Master Config Gpu Args 
- GPU driver parameters.
- labels
Sequence[KubernetesCluster Exist Instance Instances Para Master Config Label] 
- Node label list.
- mount_target str
- Mount target. Default is not mounting.
- taints
Sequence[KubernetesCluster Exist Instance Instances Para Master Config Taint] 
- 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 unschedulableparameter. 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.
- desiredPod NumberNumber 
- Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- dockerGraph StringPath 
- 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 unschedulableparameter. 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                    
- AutoFormat boolAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- FileSystem string
- File system, e.g. ext3/ext4/xfs.
- MountTarget string
- Mount target.
- AutoFormat boolAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- FileSystem string
- File system, e.g. ext3/ext4/xfs.
- MountTarget string
- Mount target.
- autoFormat BooleanAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- fileSystem String
- File system, e.g. ext3/ext4/xfs.
- mountTarget String
- Mount target.
- autoFormat booleanAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- fileSystem string
- File system, e.g. ext3/ext4/xfs.
- mountTarget string
- Mount target.
- auto_format_ booland_ mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- file_system str
- File system, e.g. ext3/ext4/xfs.
- mount_target str
- Mount target.
- autoFormat BooleanAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_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                  
KubernetesClusterExistInstanceInstancesParaMasterConfigTaint, KubernetesClusterExistInstanceInstancesParaMasterConfigTaintArgs                  
KubernetesClusterExtensionAddon, KubernetesClusterExtensionAddonArgs        
KubernetesClusterLogAgent, KubernetesClusterLogAgentArgs        
- Enabled bool
- Whether the log agent enabled.
- KubeletRoot stringDir 
- Kubelet root directory as the literal.
- Enabled bool
- Whether the log agent enabled.
- KubeletRoot stringDir 
- Kubelet root directory as the literal.
- enabled Boolean
- Whether the log agent enabled.
- kubeletRoot StringDir 
- Kubelet root directory as the literal.
- enabled boolean
- Whether the log agent enabled.
- kubeletRoot stringDir 
- Kubelet root directory as the literal.
- enabled bool
- Whether the log agent enabled.
- kubelet_root_ strdir 
- Kubelet root directory as the literal.
- enabled Boolean
- Whether the log agent enabled.
- kubeletRoot StringDir 
- 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.
- BandwidthPackage stringId 
- bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- CamRole stringName 
- CAM role name authorized to access.
- Count double
- Number of cvm.
- DataDisks List<KubernetesCluster Master Config Data Disk> 
- Configurations of data disk.
- DesiredPod doubleNum 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_numfor current node. Either all the fieldsdesired_pod_numor none.
- DisasterRecover List<string>Group Ids 
- Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- EnhancedMonitor boolService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- EnhancedSecurity boolService 
- 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 (-).
- HpcCluster stringId 
- Id of cvm hpc cluster.
- ImgId string
- The valid image id, format of img-xxx. Note: img_idwill be replaced with the image corresponding to TKEcluster_os.
- InstanceCharge stringType 
- The charge type of instance. Valid values are PREPAIDandPOSTPAID_BY_HOUR. The default isPOSTPAID_BY_HOUR. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR,PREPAIDinstance will not terminated after cluster deleted, and may not allow to delete before expired.
- InstanceCharge doubleType Prepaid Period 
- The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are1,2,3,4,5,6,7,8,9,10,11,12,24,36.
- InstanceCharge stringType Prepaid Renew Flag 
- 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 asNOTIFY_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 toPREPAID.
- InstanceName string
- Name of the CVMs.
- InternetCharge stringType 
- Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
- InternetMax doubleBandwidth Out 
- Max bandwidth of Internet access in Mbps. Default is 0.
- KeyIds List<string>
- ID list of keys, should be set if passwordnot set.
- Password string
- Password to access, should be set if key_idsnot set.
- PublicIp boolAssigned 
- Specify whether to assign an Internet IP address.
- SecurityGroup List<string>Ids 
- Security groups to which a CVM instance belongs.
- SystemDisk doubleSize 
- Volume of system disk in GB. Default is 50.
- SystemDisk stringType 
- 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_BASICandLOCAL_SSDare 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.
- BandwidthPackage stringId 
- bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- CamRole stringName 
- CAM role name authorized to access.
- Count float64
- Number of cvm.
- DataDisks []KubernetesCluster Master Config Data Disk 
- Configurations of data disk.
- DesiredPod float64Num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_numfor current node. Either all the fieldsdesired_pod_numor none.
- DisasterRecover []stringGroup Ids 
- Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- EnhancedMonitor boolService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- EnhancedSecurity boolService 
- 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 (-).
- HpcCluster stringId 
- Id of cvm hpc cluster.
- ImgId string
- The valid image id, format of img-xxx. Note: img_idwill be replaced with the image corresponding to TKEcluster_os.
- InstanceCharge stringType 
- The charge type of instance. Valid values are PREPAIDandPOSTPAID_BY_HOUR. The default isPOSTPAID_BY_HOUR. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR,PREPAIDinstance will not terminated after cluster deleted, and may not allow to delete before expired.
- InstanceCharge float64Type Prepaid Period 
- The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are1,2,3,4,5,6,7,8,9,10,11,12,24,36.
- InstanceCharge stringType Prepaid Renew Flag 
- 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 asNOTIFY_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 toPREPAID.
- InstanceName string
- Name of the CVMs.
- InternetCharge stringType 
- Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
- InternetMax float64Bandwidth Out 
- Max bandwidth of Internet access in Mbps. Default is 0.
- KeyIds []string
- ID list of keys, should be set if passwordnot set.
- Password string
- Password to access, should be set if key_idsnot set.
- PublicIp boolAssigned 
- Specify whether to assign an Internet IP address.
- SecurityGroup []stringIds 
- Security groups to which a CVM instance belongs.
- SystemDisk float64Size 
- Volume of system disk in GB. Default is 50.
- SystemDisk stringType 
- 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_BASICandLOCAL_SSDare 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.
- bandwidthPackage StringId 
- bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- camRole StringName 
- CAM role name authorized to access.
- count Double
- Number of cvm.
- dataDisks List<KubernetesCluster Master Config Data Disk> 
- Configurations of data disk.
- desiredPod DoubleNum 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_numfor current node. Either all the fieldsdesired_pod_numor none.
- disasterRecover List<String>Group Ids 
- Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- enhancedMonitor BooleanService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- enhancedSecurity BooleanService 
- 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 (-).
- hpcCluster StringId 
- Id of cvm hpc cluster.
- imgId String
- The valid image id, format of img-xxx. Note: img_idwill be replaced with the image corresponding to TKEcluster_os.
- instanceCharge StringType 
- The charge type of instance. Valid values are PREPAIDandPOSTPAID_BY_HOUR. The default isPOSTPAID_BY_HOUR. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR,PREPAIDinstance will not terminated after cluster deleted, and may not allow to delete before expired.
- instanceCharge DoubleType Prepaid Period 
- The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are1,2,3,4,5,6,7,8,9,10,11,12,24,36.
- instanceCharge StringType Prepaid Renew Flag 
- 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 asNOTIFY_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 toPREPAID.
- instanceName String
- Name of the CVMs.
- internetCharge StringType 
- Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
- internetMax DoubleBandwidth Out 
- Max bandwidth of Internet access in Mbps. Default is 0.
- keyIds List<String>
- ID list of keys, should be set if passwordnot set.
- password String
- Password to access, should be set if key_idsnot set.
- publicIp BooleanAssigned 
- Specify whether to assign an Internet IP address.
- securityGroup List<String>Ids 
- Security groups to which a CVM instance belongs.
- systemDisk DoubleSize 
- Volume of system disk in GB. Default is 50.
- systemDisk StringType 
- 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_BASICandLOCAL_SSDare 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.
- bandwidthPackage stringId 
- bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- camRole stringName 
- CAM role name authorized to access.
- count number
- Number of cvm.
- dataDisks KubernetesCluster Master Config Data Disk[] 
- Configurations of data disk.
- desiredPod numberNum 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_numfor current node. Either all the fieldsdesired_pod_numor none.
- disasterRecover string[]Group Ids 
- Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- enhancedMonitor booleanService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- enhancedSecurity booleanService 
- 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 (-).
- hpcCluster stringId 
- Id of cvm hpc cluster.
- imgId string
- The valid image id, format of img-xxx. Note: img_idwill be replaced with the image corresponding to TKEcluster_os.
- instanceCharge stringType 
- The charge type of instance. Valid values are PREPAIDandPOSTPAID_BY_HOUR. The default isPOSTPAID_BY_HOUR. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR,PREPAIDinstance will not terminated after cluster deleted, and may not allow to delete before expired.
- instanceCharge numberType Prepaid Period 
- The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are1,2,3,4,5,6,7,8,9,10,11,12,24,36.
- instanceCharge stringType Prepaid Renew Flag 
- 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 asNOTIFY_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 toPREPAID.
- instanceName string
- Name of the CVMs.
- internetCharge stringType 
- Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
- internetMax numberBandwidth Out 
- Max bandwidth of Internet access in Mbps. Default is 0.
- keyIds string[]
- ID list of keys, should be set if passwordnot set.
- password string
- Password to access, should be set if key_idsnot set.
- publicIp booleanAssigned 
- Specify whether to assign an Internet IP address.
- securityGroup string[]Ids 
- Security groups to which a CVM instance belongs.
- systemDisk numberSize 
- Volume of system disk in GB. Default is 50.
- systemDisk stringType 
- 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_BASICandLOCAL_SSDare 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_ strid 
- bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam_role_ strname 
- CAM role name authorized to access.
- count float
- Number of cvm.
- data_disks Sequence[KubernetesCluster Master Config Data Disk] 
- Configurations of data disk.
- desired_pod_ floatnum 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_numfor current node. Either all the fieldsdesired_pod_numor none.
- disaster_recover_ Sequence[str]group_ ids 
- Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- enhanced_monitor_ boolservice 
- To specify whether to enable cloud monitor service. Default is TRUE.
- enhanced_security_ boolservice 
- 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_ strid 
- Id of cvm hpc cluster.
- img_id str
- The valid image id, format of img-xxx. Note: img_idwill be replaced with the image corresponding to TKEcluster_os.
- instance_charge_ strtype 
- The charge type of instance. Valid values are PREPAIDandPOSTPAID_BY_HOUR. The default isPOSTPAID_BY_HOUR. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR,PREPAIDinstance will not terminated after cluster deleted, and may not allow to delete before expired.
- instance_charge_ floattype_ prepaid_ period 
- The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are1,2,3,4,5,6,7,8,9,10,11,12,24,36.
- instance_charge_ strtype_ prepaid_ renew_ flag 
- 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 asNOTIFY_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 toPREPAID.
- instance_name str
- Name of the CVMs.
- internet_charge_ strtype 
- Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
- internet_max_ floatbandwidth_ out 
- Max bandwidth of Internet access in Mbps. Default is 0.
- key_ids Sequence[str]
- ID list of keys, should be set if passwordnot set.
- password str
- Password to access, should be set if key_idsnot set.
- public_ip_ boolassigned 
- Specify whether to assign an Internet IP address.
- security_group_ Sequence[str]ids 
- Security groups to which a CVM instance belongs.
- system_disk_ floatsize 
- Volume of system disk in GB. Default is 50.
- system_disk_ strtype 
- 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_BASICandLOCAL_SSDare 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.
- bandwidthPackage StringId 
- bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- camRole StringName 
- CAM role name authorized to access.
- count Number
- Number of cvm.
- dataDisks List<Property Map>
- Configurations of data disk.
- desiredPod NumberNum 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_numfor current node. Either all the fieldsdesired_pod_numor none.
- disasterRecover List<String>Group Ids 
- Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- enhancedMonitor BooleanService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- enhancedSecurity BooleanService 
- 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 (-).
- hpcCluster StringId 
- Id of cvm hpc cluster.
- imgId String
- The valid image id, format of img-xxx. Note: img_idwill be replaced with the image corresponding to TKEcluster_os.
- instanceCharge StringType 
- The charge type of instance. Valid values are PREPAIDandPOSTPAID_BY_HOUR. The default isPOSTPAID_BY_HOUR. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR,PREPAIDinstance will not terminated after cluster deleted, and may not allow to delete before expired.
- instanceCharge NumberType Prepaid Period 
- The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are1,2,3,4,5,6,7,8,9,10,11,12,24,36.
- instanceCharge StringType Prepaid Renew Flag 
- 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 asNOTIFY_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 toPREPAID.
- instanceName String
- Name of the CVMs.
- internetCharge StringType 
- Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
- internetMax NumberBandwidth Out 
- Max bandwidth of Internet access in Mbps. Default is 0.
- keyIds List<String>
- ID list of keys, should be set if passwordnot set.
- password String
- Password to access, should be set if key_idsnot set.
- publicIp BooleanAssigned 
- Specify whether to assign an Internet IP address.
- securityGroup List<String>Ids 
- Security groups to which a CVM instance belongs.
- systemDisk NumberSize 
- Volume of system disk in GB. Default is 50.
- systemDisk StringType 
- 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_BASICandLOCAL_SSDare deprecated.
- userData String
- ase64-encoded User Data text, the length limit is 16KB.
KubernetesClusterMasterConfigDataDisk, KubernetesClusterMasterConfigDataDiskArgs            
- AutoFormat boolAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- Encrypt bool
- Indicates whether to encrypt data disk, default false.
- FileSystem string
- File system, e.g. ext3/ext4/xfs.
- KmsKey stringId 
- 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.
- AutoFormat boolAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- Encrypt bool
- Indicates whether to encrypt data disk, default false.
- FileSystem string
- File system, e.g. ext3/ext4/xfs.
- KmsKey stringId 
- 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.
- autoFormat BooleanAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- encrypt Boolean
- Indicates whether to encrypt data disk, default false.
- fileSystem String
- File system, e.g. ext3/ext4/xfs.
- kmsKey StringId 
- 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.
- autoFormat booleanAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- encrypt boolean
- Indicates whether to encrypt data disk, default false.
- fileSystem string
- File system, e.g. ext3/ext4/xfs.
- kmsKey stringId 
- 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_ booland_ mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- encrypt bool
- Indicates whether to encrypt data disk, default false.
- file_system str
- File system, e.g. ext3/ext4/xfs.
- kms_key_ strid 
- 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.
- autoFormat BooleanAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- encrypt Boolean
- Indicates whether to encrypt data disk, default false.
- fileSystem String
- File system, e.g. ext3/ext4/xfs.
- kmsKey StringId 
- 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.
- IgnoreDaemon boolSets Utilization 
- Whether to ignore DaemonSet pods by default when calculating resource usage.
- IsScale boolIn Enabled 
- Indicates whether to enable scale-in.
- MaxConcurrent doubleScale In 
- Max concurrent scale-in volume.
- ScaleIn doubleDelay 
- Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
- ScaleIn doubleUnneeded Time 
- Number of consecutive minutes of idleness after which the node is subject to scale-in.
- ScaleIn doubleUtilization Threshold 
- Percentage of node resource usage below which the node is considered to be idle.
- SkipNodes boolWith Local Storage 
- During scale-in, ignore nodes with local storage pods.
- SkipNodes boolWith System Pods 
- 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.
- IgnoreDaemon boolSets Utilization 
- Whether to ignore DaemonSet pods by default when calculating resource usage.
- IsScale boolIn Enabled 
- Indicates whether to enable scale-in.
- MaxConcurrent float64Scale In 
- Max concurrent scale-in volume.
- ScaleIn float64Delay 
- Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
- ScaleIn float64Unneeded Time 
- Number of consecutive minutes of idleness after which the node is subject to scale-in.
- ScaleIn float64Utilization Threshold 
- Percentage of node resource usage below which the node is considered to be idle.
- SkipNodes boolWith Local Storage 
- During scale-in, ignore nodes with local storage pods.
- SkipNodes boolWith System Pods 
- 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.
- ignoreDaemon BooleanSets Utilization 
- Whether to ignore DaemonSet pods by default when calculating resource usage.
- isScale BooleanIn Enabled 
- Indicates whether to enable scale-in.
- maxConcurrent DoubleScale In 
- Max concurrent scale-in volume.
- scaleIn DoubleDelay 
- Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
- scaleIn DoubleUnneeded Time 
- Number of consecutive minutes of idleness after which the node is subject to scale-in.
- scaleIn DoubleUtilization Threshold 
- Percentage of node resource usage below which the node is considered to be idle.
- skipNodes BooleanWith Local Storage 
- During scale-in, ignore nodes with local storage pods.
- skipNodes BooleanWith System Pods 
- 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.
- ignoreDaemon booleanSets Utilization 
- Whether to ignore DaemonSet pods by default when calculating resource usage.
- isScale booleanIn Enabled 
- Indicates whether to enable scale-in.
- maxConcurrent numberScale In 
- Max concurrent scale-in volume.
- scaleIn numberDelay 
- Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
- scaleIn numberUnneeded Time 
- Number of consecutive minutes of idleness after which the node is subject to scale-in.
- scaleIn numberUtilization Threshold 
- Percentage of node resource usage below which the node is considered to be idle.
- skipNodes booleanWith Local Storage 
- During scale-in, ignore nodes with local storage pods.
- skipNodes booleanWith System Pods 
- 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_ boolsets_ utilization 
- Whether to ignore DaemonSet pods by default when calculating resource usage.
- is_scale_ boolin_ enabled 
- Indicates whether to enable scale-in.
- max_concurrent_ floatscale_ in 
- Max concurrent scale-in volume.
- scale_in_ floatdelay 
- Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
- scale_in_ floatunneeded_ time 
- Number of consecutive minutes of idleness after which the node is subject to scale-in.
- scale_in_ floatutilization_ threshold 
- Percentage of node resource usage below which the node is considered to be idle.
- skip_nodes_ boolwith_ local_ storage 
- During scale-in, ignore nodes with local storage pods.
- skip_nodes_ boolwith_ system_ pods 
- 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.
- ignoreDaemon BooleanSets Utilization 
- Whether to ignore DaemonSet pods by default when calculating resource usage.
- isScale BooleanIn Enabled 
- Indicates whether to enable scale-in.
- maxConcurrent NumberScale In 
- Max concurrent scale-in volume.
- scaleIn NumberDelay 
- Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in.
- scaleIn NumberUnneeded Time 
- Number of consecutive minutes of idleness after which the node is subject to scale-in.
- scaleIn NumberUtilization Threshold 
- Percentage of node resource usage below which the node is considered to be idle.
- skipNodes BooleanWith Local Storage 
- During scale-in, ignore nodes with local storage pods.
- skipNodes BooleanWith System Pods 
- 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, andCVM.
- SkipDeletion boolProtection 
- 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, andCVM.
- SkipDeletion boolProtection 
- 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, andCVM.
- skipDeletion BooleanProtection 
- 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, andCVM.
- skipDeletion booleanProtection 
- 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, andCVM.
- skip_deletion_ boolprotection 
- 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, andCVM.
- skipDeletion BooleanProtection 
- 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.
- BandwidthPackage stringId 
- bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- CamRole stringName 
- CAM role name authorized to access.
- Count double
- Number of cvm.
- DataDisks List<KubernetesCluster Worker Config Data Disk> 
- Configurations of data disk.
- DesiredPod doubleNum 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_numfor current node. Either all the fieldsdesired_pod_numor none.
- DisasterRecover List<string>Group Ids 
- Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- EnhancedMonitor boolService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- EnhancedSecurity boolService 
- 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 (-).
- HpcCluster stringId 
- Id of cvm hpc cluster.
- ImgId string
- The valid image id, format of img-xxx. Note: img_idwill be replaced with the image corresponding to TKEcluster_os.
- InstanceCharge stringType 
- The charge type of instance. Valid values are PREPAIDandPOSTPAID_BY_HOUR. The default isPOSTPAID_BY_HOUR. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR,PREPAIDinstance will not terminated after cluster deleted, and may not allow to delete before expired.
- InstanceCharge doubleType Prepaid Period 
- The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are1,2,3,4,5,6,7,8,9,10,11,12,24,36.
- InstanceCharge stringType Prepaid Renew Flag 
- 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 asNOTIFY_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 toPREPAID.
- InstanceName string
- Name of the CVMs.
- InternetCharge stringType 
- Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
- InternetMax doubleBandwidth Out 
- Max bandwidth of Internet access in Mbps. Default is 0.
- KeyIds List<string>
- ID list of keys, should be set if passwordnot set.
- Password string
- Password to access, should be set if key_idsnot set.
- PublicIp boolAssigned 
- Specify whether to assign an Internet IP address.
- SecurityGroup List<string>Ids 
- Security groups to which a CVM instance belongs.
- SystemDisk doubleSize 
- Volume of system disk in GB. Default is 50.
- SystemDisk stringType 
- 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_BASICandLOCAL_SSDare 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.
- BandwidthPackage stringId 
- bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- CamRole stringName 
- CAM role name authorized to access.
- Count float64
- Number of cvm.
- DataDisks []KubernetesCluster Worker Config Data Disk 
- Configurations of data disk.
- DesiredPod float64Num 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_numfor current node. Either all the fieldsdesired_pod_numor none.
- DisasterRecover []stringGroup Ids 
- Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- EnhancedMonitor boolService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- EnhancedSecurity boolService 
- 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 (-).
- HpcCluster stringId 
- Id of cvm hpc cluster.
- ImgId string
- The valid image id, format of img-xxx. Note: img_idwill be replaced with the image corresponding to TKEcluster_os.
- InstanceCharge stringType 
- The charge type of instance. Valid values are PREPAIDandPOSTPAID_BY_HOUR. The default isPOSTPAID_BY_HOUR. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR,PREPAIDinstance will not terminated after cluster deleted, and may not allow to delete before expired.
- InstanceCharge float64Type Prepaid Period 
- The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are1,2,3,4,5,6,7,8,9,10,11,12,24,36.
- InstanceCharge stringType Prepaid Renew Flag 
- 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 asNOTIFY_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 toPREPAID.
- InstanceName string
- Name of the CVMs.
- InternetCharge stringType 
- Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
- InternetMax float64Bandwidth Out 
- Max bandwidth of Internet access in Mbps. Default is 0.
- KeyIds []string
- ID list of keys, should be set if passwordnot set.
- Password string
- Password to access, should be set if key_idsnot set.
- PublicIp boolAssigned 
- Specify whether to assign an Internet IP address.
- SecurityGroup []stringIds 
- Security groups to which a CVM instance belongs.
- SystemDisk float64Size 
- Volume of system disk in GB. Default is 50.
- SystemDisk stringType 
- 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_BASICandLOCAL_SSDare 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.
- bandwidthPackage StringId 
- bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- camRole StringName 
- CAM role name authorized to access.
- count Double
- Number of cvm.
- dataDisks List<KubernetesCluster Worker Config Data Disk> 
- Configurations of data disk.
- desiredPod DoubleNum 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_numfor current node. Either all the fieldsdesired_pod_numor none.
- disasterRecover List<String>Group Ids 
- Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- enhancedMonitor BooleanService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- enhancedSecurity BooleanService 
- 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 (-).
- hpcCluster StringId 
- Id of cvm hpc cluster.
- imgId String
- The valid image id, format of img-xxx. Note: img_idwill be replaced with the image corresponding to TKEcluster_os.
- instanceCharge StringType 
- The charge type of instance. Valid values are PREPAIDandPOSTPAID_BY_HOUR. The default isPOSTPAID_BY_HOUR. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR,PREPAIDinstance will not terminated after cluster deleted, and may not allow to delete before expired.
- instanceCharge DoubleType Prepaid Period 
- The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are1,2,3,4,5,6,7,8,9,10,11,12,24,36.
- instanceCharge StringType Prepaid Renew Flag 
- 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 asNOTIFY_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 toPREPAID.
- instanceName String
- Name of the CVMs.
- internetCharge StringType 
- Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
- internetMax DoubleBandwidth Out 
- Max bandwidth of Internet access in Mbps. Default is 0.
- keyIds List<String>
- ID list of keys, should be set if passwordnot set.
- password String
- Password to access, should be set if key_idsnot set.
- publicIp BooleanAssigned 
- Specify whether to assign an Internet IP address.
- securityGroup List<String>Ids 
- Security groups to which a CVM instance belongs.
- systemDisk DoubleSize 
- Volume of system disk in GB. Default is 50.
- systemDisk StringType 
- 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_BASICandLOCAL_SSDare 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.
- bandwidthPackage stringId 
- bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- camRole stringName 
- CAM role name authorized to access.
- count number
- Number of cvm.
- dataDisks KubernetesCluster Worker Config Data Disk[] 
- Configurations of data disk.
- desiredPod numberNum 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_numfor current node. Either all the fieldsdesired_pod_numor none.
- disasterRecover string[]Group Ids 
- Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- enhancedMonitor booleanService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- enhancedSecurity booleanService 
- 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 (-).
- hpcCluster stringId 
- Id of cvm hpc cluster.
- imgId string
- The valid image id, format of img-xxx. Note: img_idwill be replaced with the image corresponding to TKEcluster_os.
- instanceCharge stringType 
- The charge type of instance. Valid values are PREPAIDandPOSTPAID_BY_HOUR. The default isPOSTPAID_BY_HOUR. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR,PREPAIDinstance will not terminated after cluster deleted, and may not allow to delete before expired.
- instanceCharge numberType Prepaid Period 
- The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are1,2,3,4,5,6,7,8,9,10,11,12,24,36.
- instanceCharge stringType Prepaid Renew Flag 
- 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 asNOTIFY_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 toPREPAID.
- instanceName string
- Name of the CVMs.
- internetCharge stringType 
- Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
- internetMax numberBandwidth Out 
- Max bandwidth of Internet access in Mbps. Default is 0.
- keyIds string[]
- ID list of keys, should be set if passwordnot set.
- password string
- Password to access, should be set if key_idsnot set.
- publicIp booleanAssigned 
- Specify whether to assign an Internet IP address.
- securityGroup string[]Ids 
- Security groups to which a CVM instance belongs.
- systemDisk numberSize 
- Volume of system disk in GB. Default is 50.
- systemDisk stringType 
- 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_BASICandLOCAL_SSDare 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_ strid 
- bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam_role_ strname 
- CAM role name authorized to access.
- count float
- Number of cvm.
- data_disks Sequence[KubernetesCluster Worker Config Data Disk] 
- Configurations of data disk.
- desired_pod_ floatnum 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_numfor current node. Either all the fieldsdesired_pod_numor none.
- disaster_recover_ Sequence[str]group_ ids 
- Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- enhanced_monitor_ boolservice 
- To specify whether to enable cloud monitor service. Default is TRUE.
- enhanced_security_ boolservice 
- 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_ strid 
- Id of cvm hpc cluster.
- img_id str
- The valid image id, format of img-xxx. Note: img_idwill be replaced with the image corresponding to TKEcluster_os.
- instance_charge_ strtype 
- The charge type of instance. Valid values are PREPAIDandPOSTPAID_BY_HOUR. The default isPOSTPAID_BY_HOUR. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR,PREPAIDinstance will not terminated after cluster deleted, and may not allow to delete before expired.
- instance_charge_ floattype_ prepaid_ period 
- The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are1,2,3,4,5,6,7,8,9,10,11,12,24,36.
- instance_charge_ strtype_ prepaid_ renew_ flag 
- 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 asNOTIFY_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 toPREPAID.
- instance_name str
- Name of the CVMs.
- internet_charge_ strtype 
- Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
- internet_max_ floatbandwidth_ out 
- Max bandwidth of Internet access in Mbps. Default is 0.
- key_ids Sequence[str]
- ID list of keys, should be set if passwordnot set.
- password str
- Password to access, should be set if key_idsnot set.
- public_ip_ boolassigned 
- Specify whether to assign an Internet IP address.
- security_group_ Sequence[str]ids 
- Security groups to which a CVM instance belongs.
- system_disk_ floatsize 
- Volume of system disk in GB. Default is 50.
- system_disk_ strtype 
- 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_BASICandLOCAL_SSDare 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.
- bandwidthPackage StringId 
- bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- camRole StringName 
- CAM role name authorized to access.
- count Number
- Number of cvm.
- dataDisks List<Property Map>
- Configurations of data disk.
- desiredPod NumberNum 
- Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override [globe_]desired_pod_numfor current node. Either all the fieldsdesired_pod_numor none.
- disasterRecover List<String>Group Ids 
- Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- enhancedMonitor BooleanService 
- To specify whether to enable cloud monitor service. Default is TRUE.
- enhancedSecurity BooleanService 
- 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 (-).
- hpcCluster StringId 
- Id of cvm hpc cluster.
- imgId String
- The valid image id, format of img-xxx. Note: img_idwill be replaced with the image corresponding to TKEcluster_os.
- instanceCharge StringType 
- The charge type of instance. Valid values are PREPAIDandPOSTPAID_BY_HOUR. The default isPOSTPAID_BY_HOUR. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR,PREPAIDinstance will not terminated after cluster deleted, and may not allow to delete before expired.
- instanceCharge NumberType Prepaid Period 
- The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to PREPAID. Valid values are1,2,3,4,5,6,7,8,9,10,11,12,24,36.
- instanceCharge StringType Prepaid Renew Flag 
- 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 asNOTIFY_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 toPREPAID.
- instanceName String
- Name of the CVMs.
- internetCharge StringType 
- Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
- internetMax NumberBandwidth Out 
- Max bandwidth of Internet access in Mbps. Default is 0.
- keyIds List<String>
- ID list of keys, should be set if passwordnot set.
- password String
- Password to access, should be set if key_idsnot set.
- publicIp BooleanAssigned 
- Specify whether to assign an Internet IP address.
- securityGroup List<String>Ids 
- Security groups to which a CVM instance belongs.
- systemDisk NumberSize 
- Volume of system disk in GB. Default is 50.
- systemDisk StringType 
- 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_BASICandLOCAL_SSDare deprecated.
- userData String
- ase64-encoded User Data text, the length limit is 16KB.
KubernetesClusterWorkerConfigDataDisk, KubernetesClusterWorkerConfigDataDiskArgs            
- AutoFormat boolAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- Encrypt bool
- Indicates whether to encrypt data disk, default false.
- FileSystem string
- File system, e.g. ext3/ext4/xfs.
- KmsKey stringId 
- 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.
- AutoFormat boolAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- Encrypt bool
- Indicates whether to encrypt data disk, default false.
- FileSystem string
- File system, e.g. ext3/ext4/xfs.
- KmsKey stringId 
- 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.
- autoFormat BooleanAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- encrypt Boolean
- Indicates whether to encrypt data disk, default false.
- fileSystem String
- File system, e.g. ext3/ext4/xfs.
- kmsKey StringId 
- 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.
- autoFormat booleanAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- encrypt boolean
- Indicates whether to encrypt data disk, default false.
- fileSystem string
- File system, e.g. ext3/ext4/xfs.
- kmsKey stringId 
- 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_ booland_ mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- encrypt bool
- Indicates whether to encrypt data disk, default false.
- file_system str
- File system, e.g. ext3/ext4/xfs.
- kms_key_ strid 
- 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.
- autoFormat BooleanAnd Mount 
- 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_PREMIUMandCLOUD_SSDandCLOUD_HSSDandCLOUD_TSSD.
- encrypt Boolean
- Indicates whether to encrypt data disk, default false.
- fileSystem String
- File system, e.g. ext3/ext4/xfs.
- kmsKey StringId 
- 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 tencentcloudTerraform Provider.
