1. Packages
  2. Volcengine
  3. API Docs
  4. vke
  5. Cluster
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.vke.Cluster

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Provides a resource to manage vke cluster

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
        {
            VpcName = "acc-test-project1",
            CidrBlock = "172.16.0.0/16",
        });
    
        var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
        {
            SubnetName = "acc-subnet-test-2",
            CidrBlock = "172.16.0.0/24",
            ZoneId = "cn-beijing-a",
            VpcId = fooVpc.Id,
        });
    
        var fooSecurityGroup = new Volcengine.Vpc.SecurityGroup("fooSecurityGroup", new()
        {
            VpcId = fooVpc.Id,
            SecurityGroupName = "acc-test-security-group2",
        });
    
        var fooCluster = new Volcengine.Vke.Cluster("fooCluster", new()
        {
            Description = "created by terraform",
            DeleteProtectionEnabled = false,
            ClusterConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigArgs
            {
                SubnetIds = new[]
                {
                    fooSubnet.Id,
                },
                ApiServerPublicAccessEnabled = true,
                ApiServerPublicAccessConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigApiServerPublicAccessConfigArgs
                {
                    PublicAccessNetworkConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs
                    {
                        BillingType = "PostPaidByBandwidth",
                        Bandwidth = 1,
                    },
                },
                ResourcePublicAccessDefaultEnabled = true,
            },
            PodsConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigArgs
            {
                PodNetworkMode = "VpcCniShared",
                VpcCniConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigVpcCniConfigArgs
                {
                    SubnetIds = new[]
                    {
                        fooSubnet.Id,
                    },
                },
            },
            ServicesConfig = new Volcengine.Vke.Inputs.ClusterServicesConfigArgs
            {
                ServiceCidrsv4s = new[]
                {
                    "172.30.0.0/18",
                },
            },
            Tags = new[]
            {
                new Volcengine.Vke.Inputs.ClusterTagArgs
                {
                    Key = "tf-k1",
                    Value = "tf-v1",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vke"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
    			VpcName:   pulumi.String("acc-test-project1"),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
    			SubnetName: pulumi.String("acc-subnet-test-2"),
    			CidrBlock:  pulumi.String("172.16.0.0/24"),
    			ZoneId:     pulumi.String("cn-beijing-a"),
    			VpcId:      fooVpc.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vpc.NewSecurityGroup(ctx, "fooSecurityGroup", &vpc.SecurityGroupArgs{
    			VpcId:             fooVpc.ID(),
    			SecurityGroupName: pulumi.String("acc-test-security-group2"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vke.NewCluster(ctx, "fooCluster", &vke.ClusterArgs{
    			Description:             pulumi.String("created by terraform"),
    			DeleteProtectionEnabled: pulumi.Bool(false),
    			ClusterConfig: &vke.ClusterClusterConfigArgs{
    				SubnetIds: pulumi.StringArray{
    					fooSubnet.ID(),
    				},
    				ApiServerPublicAccessEnabled: pulumi.Bool(true),
    				ApiServerPublicAccessConfig: &vke.ClusterClusterConfigApiServerPublicAccessConfigArgs{
    					PublicAccessNetworkConfig: &vke.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs{
    						BillingType: pulumi.String("PostPaidByBandwidth"),
    						Bandwidth:   pulumi.Int(1),
    					},
    				},
    				ResourcePublicAccessDefaultEnabled: pulumi.Bool(true),
    			},
    			PodsConfig: &vke.ClusterPodsConfigArgs{
    				PodNetworkMode: pulumi.String("VpcCniShared"),
    				VpcCniConfig: &vke.ClusterPodsConfigVpcCniConfigArgs{
    					SubnetIds: pulumi.StringArray{
    						fooSubnet.ID(),
    					},
    				},
    			},
    			ServicesConfig: &vke.ClusterServicesConfigArgs{
    				ServiceCidrsv4s: pulumi.StringArray{
    					pulumi.String("172.30.0.0/18"),
    				},
    			},
    			Tags: vke.ClusterTagArray{
    				&vke.ClusterTagArgs{
    					Key:   pulumi.String("tf-k1"),
    					Value: pulumi.String("tf-v1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.vpc.Vpc;
    import com.pulumi.volcengine.vpc.VpcArgs;
    import com.pulumi.volcengine.vpc.Subnet;
    import com.pulumi.volcengine.vpc.SubnetArgs;
    import com.pulumi.volcengine.vpc.SecurityGroup;
    import com.pulumi.volcengine.vpc.SecurityGroupArgs;
    import com.pulumi.volcengine.vke.Cluster;
    import com.pulumi.volcengine.vke.ClusterArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterClusterConfigArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterClusterConfigApiServerPublicAccessConfigArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterPodsConfigArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterPodsConfigVpcCniConfigArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterServicesConfigArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterTagArgs;
    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 fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
                .vpcName("acc-test-project1")
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
                .subnetName("acc-subnet-test-2")
                .cidrBlock("172.16.0.0/24")
                .zoneId("cn-beijing-a")
                .vpcId(fooVpc.id())
                .build());
    
            var fooSecurityGroup = new SecurityGroup("fooSecurityGroup", SecurityGroupArgs.builder()        
                .vpcId(fooVpc.id())
                .securityGroupName("acc-test-security-group2")
                .build());
    
            var fooCluster = new Cluster("fooCluster", ClusterArgs.builder()        
                .description("created by terraform")
                .deleteProtectionEnabled(false)
                .clusterConfig(ClusterClusterConfigArgs.builder()
                    .subnetIds(fooSubnet.id())
                    .apiServerPublicAccessEnabled(true)
                    .apiServerPublicAccessConfig(ClusterClusterConfigApiServerPublicAccessConfigArgs.builder()
                        .publicAccessNetworkConfig(ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs.builder()
                            .billingType("PostPaidByBandwidth")
                            .bandwidth(1)
                            .build())
                        .build())
                    .resourcePublicAccessDefaultEnabled(true)
                    .build())
                .podsConfig(ClusterPodsConfigArgs.builder()
                    .podNetworkMode("VpcCniShared")
                    .vpcCniConfig(ClusterPodsConfigVpcCniConfigArgs.builder()
                        .subnetIds(fooSubnet.id())
                        .build())
                    .build())
                .servicesConfig(ClusterServicesConfigArgs.builder()
                    .serviceCidrsv4s("172.30.0.0/18")
                    .build())
                .tags(ClusterTagArgs.builder()
                    .key("tf-k1")
                    .value("tf-v1")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_vpc = volcengine.vpc.Vpc("fooVpc",
        vpc_name="acc-test-project1",
        cidr_block="172.16.0.0/16")
    foo_subnet = volcengine.vpc.Subnet("fooSubnet",
        subnet_name="acc-subnet-test-2",
        cidr_block="172.16.0.0/24",
        zone_id="cn-beijing-a",
        vpc_id=foo_vpc.id)
    foo_security_group = volcengine.vpc.SecurityGroup("fooSecurityGroup",
        vpc_id=foo_vpc.id,
        security_group_name="acc-test-security-group2")
    foo_cluster = volcengine.vke.Cluster("fooCluster",
        description="created by terraform",
        delete_protection_enabled=False,
        cluster_config=volcengine.vke.ClusterClusterConfigArgs(
            subnet_ids=[foo_subnet.id],
            api_server_public_access_enabled=True,
            api_server_public_access_config=volcengine.vke.ClusterClusterConfigApiServerPublicAccessConfigArgs(
                public_access_network_config=volcengine.vke.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs(
                    billing_type="PostPaidByBandwidth",
                    bandwidth=1,
                ),
            ),
            resource_public_access_default_enabled=True,
        ),
        pods_config=volcengine.vke.ClusterPodsConfigArgs(
            pod_network_mode="VpcCniShared",
            vpc_cni_config=volcengine.vke.ClusterPodsConfigVpcCniConfigArgs(
                subnet_ids=[foo_subnet.id],
            ),
        ),
        services_config=volcengine.vke.ClusterServicesConfigArgs(
            service_cidrsv4s=["172.30.0.0/18"],
        ),
        tags=[volcengine.vke.ClusterTagArgs(
            key="tf-k1",
            value="tf-v1",
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
        vpcName: "acc-test-project1",
        cidrBlock: "172.16.0.0/16",
    });
    const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
        subnetName: "acc-subnet-test-2",
        cidrBlock: "172.16.0.0/24",
        zoneId: "cn-beijing-a",
        vpcId: fooVpc.id,
    });
    const fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
        vpcId: fooVpc.id,
        securityGroupName: "acc-test-security-group2",
    });
    const fooCluster = new volcengine.vke.Cluster("fooCluster", {
        description: "created by terraform",
        deleteProtectionEnabled: false,
        clusterConfig: {
            subnetIds: [fooSubnet.id],
            apiServerPublicAccessEnabled: true,
            apiServerPublicAccessConfig: {
                publicAccessNetworkConfig: {
                    billingType: "PostPaidByBandwidth",
                    bandwidth: 1,
                },
            },
            resourcePublicAccessDefaultEnabled: true,
        },
        podsConfig: {
            podNetworkMode: "VpcCniShared",
            vpcCniConfig: {
                subnetIds: [fooSubnet.id],
            },
        },
        servicesConfig: {
            serviceCidrsv4s: ["172.30.0.0/18"],
        },
        tags: [{
            key: "tf-k1",
            value: "tf-v1",
        }],
    });
    
    resources:
      fooVpc:
        type: volcengine:vpc:Vpc
        properties:
          vpcName: acc-test-project1
          cidrBlock: 172.16.0.0/16
      fooSubnet:
        type: volcengine:vpc:Subnet
        properties:
          subnetName: acc-subnet-test-2
          cidrBlock: 172.16.0.0/24
          zoneId: cn-beijing-a
          vpcId: ${fooVpc.id}
      fooSecurityGroup:
        type: volcengine:vpc:SecurityGroup
        properties:
          vpcId: ${fooVpc.id}
          securityGroupName: acc-test-security-group2
      fooCluster:
        type: volcengine:vke:Cluster
        properties:
          description: created by terraform
          deleteProtectionEnabled: false
          clusterConfig:
            subnetIds:
              - ${fooSubnet.id}
            apiServerPublicAccessEnabled: true
            apiServerPublicAccessConfig:
              publicAccessNetworkConfig:
                billingType: PostPaidByBandwidth
                bandwidth: 1
            resourcePublicAccessDefaultEnabled: true
          podsConfig:
            podNetworkMode: VpcCniShared
            vpcCniConfig:
              subnetIds:
                - ${fooSubnet.id}
          servicesConfig:
            serviceCidrsv4s:
              - 172.30.0.0/18
          tags:
            - key: tf-k1
              value: tf-v1
    

    Create Cluster Resource

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

    Constructor syntax

    new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
    @overload
    def Cluster(resource_name: str,
                args: ClusterArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Cluster(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                cluster_config: Optional[ClusterClusterConfigArgs] = None,
                pods_config: Optional[ClusterPodsConfigArgs] = None,
                services_config: Optional[ClusterServicesConfigArgs] = None,
                client_token: Optional[str] = None,
                delete_protection_enabled: Optional[bool] = None,
                description: Optional[str] = None,
                kubernetes_version: Optional[str] = None,
                logging_config: Optional[ClusterLoggingConfigArgs] = None,
                name: Optional[str] = None,
                tags: Optional[Sequence[ClusterTagArgs]] = None)
    func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
    public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
    public Cluster(String name, ClusterArgs args)
    public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
    
    type: volcengine:vke:Cluster
    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 ClusterArgs
    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 ClusterArgs
    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 ClusterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var volcengineClusterResource = new Volcengine.Vke.Cluster("volcengineClusterResource", new()
    {
        ClusterConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigArgs
        {
            SubnetIds = new[]
            {
                "string",
            },
            ApiServerPublicAccessConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigApiServerPublicAccessConfigArgs
            {
                PublicAccessNetworkConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs
                {
                    Bandwidth = 0,
                    BillingType = "string",
                },
            },
            ApiServerPublicAccessEnabled = false,
            IpFamily = "string",
            ResourcePublicAccessDefaultEnabled = false,
        },
        PodsConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigArgs
        {
            PodNetworkMode = "string",
            FlannelConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigFlannelConfigArgs
            {
                MaxPodsPerNode = 0,
                PodCidrs = new[]
                {
                    "string",
                },
            },
            VpcCniConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigVpcCniConfigArgs
            {
                SubnetIds = new[]
                {
                    "string",
                },
                VpcId = "string",
            },
        },
        ServicesConfig = new Volcengine.Vke.Inputs.ClusterServicesConfigArgs
        {
            ServiceCidrsv4s = new[]
            {
                "string",
            },
        },
        ClientToken = "string",
        DeleteProtectionEnabled = false,
        Description = "string",
        KubernetesVersion = "string",
        LoggingConfig = new Volcengine.Vke.Inputs.ClusterLoggingConfigArgs
        {
            LogProjectId = "string",
            LogSetups = new[]
            {
                new Volcengine.Vke.Inputs.ClusterLoggingConfigLogSetupArgs
                {
                    LogType = "string",
                    Enabled = false,
                    LogTtl = 0,
                },
            },
        },
        Name = "string",
        Tags = new[]
        {
            new Volcengine.Vke.Inputs.ClusterTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := vke.NewCluster(ctx, "volcengineClusterResource", &vke.ClusterArgs{
    	ClusterConfig: &vke.ClusterClusterConfigArgs{
    		SubnetIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ApiServerPublicAccessConfig: &vke.ClusterClusterConfigApiServerPublicAccessConfigArgs{
    			PublicAccessNetworkConfig: &vke.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs{
    				Bandwidth:   pulumi.Int(0),
    				BillingType: pulumi.String("string"),
    			},
    		},
    		ApiServerPublicAccessEnabled:       pulumi.Bool(false),
    		IpFamily:                           pulumi.String("string"),
    		ResourcePublicAccessDefaultEnabled: pulumi.Bool(false),
    	},
    	PodsConfig: &vke.ClusterPodsConfigArgs{
    		PodNetworkMode: pulumi.String("string"),
    		FlannelConfig: &vke.ClusterPodsConfigFlannelConfigArgs{
    			MaxPodsPerNode: pulumi.Int(0),
    			PodCidrs: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		VpcCniConfig: &vke.ClusterPodsConfigVpcCniConfigArgs{
    			SubnetIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			VpcId: pulumi.String("string"),
    		},
    	},
    	ServicesConfig: &vke.ClusterServicesConfigArgs{
    		ServiceCidrsv4s: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	ClientToken:             pulumi.String("string"),
    	DeleteProtectionEnabled: pulumi.Bool(false),
    	Description:             pulumi.String("string"),
    	KubernetesVersion:       pulumi.String("string"),
    	LoggingConfig: &vke.ClusterLoggingConfigArgs{
    		LogProjectId: pulumi.String("string"),
    		LogSetups: vke.ClusterLoggingConfigLogSetupArray{
    			&vke.ClusterLoggingConfigLogSetupArgs{
    				LogType: pulumi.String("string"),
    				Enabled: pulumi.Bool(false),
    				LogTtl:  pulumi.Int(0),
    			},
    		},
    	},
    	Name: pulumi.String("string"),
    	Tags: vke.ClusterTagArray{
    		&vke.ClusterTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var volcengineClusterResource = new Cluster("volcengineClusterResource", ClusterArgs.builder()
        .clusterConfig(ClusterClusterConfigArgs.builder()
            .subnetIds("string")
            .apiServerPublicAccessConfig(ClusterClusterConfigApiServerPublicAccessConfigArgs.builder()
                .publicAccessNetworkConfig(ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs.builder()
                    .bandwidth(0)
                    .billingType("string")
                    .build())
                .build())
            .apiServerPublicAccessEnabled(false)
            .ipFamily("string")
            .resourcePublicAccessDefaultEnabled(false)
            .build())
        .podsConfig(ClusterPodsConfigArgs.builder()
            .podNetworkMode("string")
            .flannelConfig(ClusterPodsConfigFlannelConfigArgs.builder()
                .maxPodsPerNode(0)
                .podCidrs("string")
                .build())
            .vpcCniConfig(ClusterPodsConfigVpcCniConfigArgs.builder()
                .subnetIds("string")
                .vpcId("string")
                .build())
            .build())
        .servicesConfig(ClusterServicesConfigArgs.builder()
            .serviceCidrsv4s("string")
            .build())
        .clientToken("string")
        .deleteProtectionEnabled(false)
        .description("string")
        .kubernetesVersion("string")
        .loggingConfig(ClusterLoggingConfigArgs.builder()
            .logProjectId("string")
            .logSetups(ClusterLoggingConfigLogSetupArgs.builder()
                .logType("string")
                .enabled(false)
                .logTtl(0)
                .build())
            .build())
        .name("string")
        .tags(ClusterTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    volcengine_cluster_resource = volcengine.vke.Cluster("volcengineClusterResource",
        cluster_config=volcengine.vke.ClusterClusterConfigArgs(
            subnet_ids=["string"],
            api_server_public_access_config=volcengine.vke.ClusterClusterConfigApiServerPublicAccessConfigArgs(
                public_access_network_config=volcengine.vke.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs(
                    bandwidth=0,
                    billing_type="string",
                ),
            ),
            api_server_public_access_enabled=False,
            ip_family="string",
            resource_public_access_default_enabled=False,
        ),
        pods_config=volcengine.vke.ClusterPodsConfigArgs(
            pod_network_mode="string",
            flannel_config=volcengine.vke.ClusterPodsConfigFlannelConfigArgs(
                max_pods_per_node=0,
                pod_cidrs=["string"],
            ),
            vpc_cni_config=volcengine.vke.ClusterPodsConfigVpcCniConfigArgs(
                subnet_ids=["string"],
                vpc_id="string",
            ),
        ),
        services_config=volcengine.vke.ClusterServicesConfigArgs(
            service_cidrsv4s=["string"],
        ),
        client_token="string",
        delete_protection_enabled=False,
        description="string",
        kubernetes_version="string",
        logging_config=volcengine.vke.ClusterLoggingConfigArgs(
            log_project_id="string",
            log_setups=[volcengine.vke.ClusterLoggingConfigLogSetupArgs(
                log_type="string",
                enabled=False,
                log_ttl=0,
            )],
        ),
        name="string",
        tags=[volcengine.vke.ClusterTagArgs(
            key="string",
            value="string",
        )])
    
    const volcengineClusterResource = new volcengine.vke.Cluster("volcengineClusterResource", {
        clusterConfig: {
            subnetIds: ["string"],
            apiServerPublicAccessConfig: {
                publicAccessNetworkConfig: {
                    bandwidth: 0,
                    billingType: "string",
                },
            },
            apiServerPublicAccessEnabled: false,
            ipFamily: "string",
            resourcePublicAccessDefaultEnabled: false,
        },
        podsConfig: {
            podNetworkMode: "string",
            flannelConfig: {
                maxPodsPerNode: 0,
                podCidrs: ["string"],
            },
            vpcCniConfig: {
                subnetIds: ["string"],
                vpcId: "string",
            },
        },
        servicesConfig: {
            serviceCidrsv4s: ["string"],
        },
        clientToken: "string",
        deleteProtectionEnabled: false,
        description: "string",
        kubernetesVersion: "string",
        loggingConfig: {
            logProjectId: "string",
            logSetups: [{
                logType: "string",
                enabled: false,
                logTtl: 0,
            }],
        },
        name: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: volcengine:vke:Cluster
    properties:
        clientToken: string
        clusterConfig:
            apiServerPublicAccessConfig:
                publicAccessNetworkConfig:
                    bandwidth: 0
                    billingType: string
            apiServerPublicAccessEnabled: false
            ipFamily: string
            resourcePublicAccessDefaultEnabled: false
            subnetIds:
                - string
        deleteProtectionEnabled: false
        description: string
        kubernetesVersion: string
        loggingConfig:
            logProjectId: string
            logSetups:
                - enabled: false
                  logTtl: 0
                  logType: string
        name: string
        podsConfig:
            flannelConfig:
                maxPodsPerNode: 0
                podCidrs:
                    - string
            podNetworkMode: string
            vpcCniConfig:
                subnetIds:
                    - string
                vpcId: string
        servicesConfig:
            serviceCidrsv4s:
                - string
        tags:
            - key: string
              value: string
    

    Cluster Resource Properties

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

    Inputs

    The Cluster resource accepts the following input properties:

    ClusterConfig ClusterClusterConfig
    The config of the cluster.
    PodsConfig ClusterPodsConfig
    The config of the pods.
    ServicesConfig ClusterServicesConfig
    The config of the services.
    ClientToken string
    ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
    DeleteProtectionEnabled bool
    The delete protection of the cluster, the value is true or false.
    Description string
    The description of the cluster.
    KubernetesVersion string
    The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of v1.24. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
    LoggingConfig ClusterLoggingConfig
    Cluster log configuration information.
    Name string
    The name of the cluster.
    Tags List<ClusterTag>
    Tags.
    ClusterConfig ClusterClusterConfigArgs
    The config of the cluster.
    PodsConfig ClusterPodsConfigArgs
    The config of the pods.
    ServicesConfig ClusterServicesConfigArgs
    The config of the services.
    ClientToken string
    ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
    DeleteProtectionEnabled bool
    The delete protection of the cluster, the value is true or false.
    Description string
    The description of the cluster.
    KubernetesVersion string
    The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of v1.24. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
    LoggingConfig ClusterLoggingConfigArgs
    Cluster log configuration information.
    Name string
    The name of the cluster.
    Tags []ClusterTagArgs
    Tags.
    clusterConfig ClusterClusterConfig
    The config of the cluster.
    podsConfig ClusterPodsConfig
    The config of the pods.
    servicesConfig ClusterServicesConfig
    The config of the services.
    clientToken String
    ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
    deleteProtectionEnabled Boolean
    The delete protection of the cluster, the value is true or false.
    description String
    The description of the cluster.
    kubernetesVersion String
    The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of v1.24. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
    loggingConfig ClusterLoggingConfig
    Cluster log configuration information.
    name String
    The name of the cluster.
    tags List<ClusterTag>
    Tags.
    clusterConfig ClusterClusterConfig
    The config of the cluster.
    podsConfig ClusterPodsConfig
    The config of the pods.
    servicesConfig ClusterServicesConfig
    The config of the services.
    clientToken string
    ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
    deleteProtectionEnabled boolean
    The delete protection of the cluster, the value is true or false.
    description string
    The description of the cluster.
    kubernetesVersion string
    The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of v1.24. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
    loggingConfig ClusterLoggingConfig
    Cluster log configuration information.
    name string
    The name of the cluster.
    tags ClusterTag[]
    Tags.
    cluster_config ClusterClusterConfigArgs
    The config of the cluster.
    pods_config ClusterPodsConfigArgs
    The config of the pods.
    services_config ClusterServicesConfigArgs
    The config of the services.
    client_token str
    ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
    delete_protection_enabled bool
    The delete protection of the cluster, the value is true or false.
    description str
    The description of the cluster.
    kubernetes_version str
    The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of v1.24. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
    logging_config ClusterLoggingConfigArgs
    Cluster log configuration information.
    name str
    The name of the cluster.
    tags Sequence[ClusterTagArgs]
    Tags.
    clusterConfig Property Map
    The config of the cluster.
    podsConfig Property Map
    The config of the pods.
    servicesConfig Property Map
    The config of the services.
    clientToken String
    ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
    deleteProtectionEnabled Boolean
    The delete protection of the cluster, the value is true or false.
    description String
    The description of the cluster.
    kubernetesVersion String
    The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of v1.24. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
    loggingConfig Property Map
    Cluster log configuration information.
    name String
    The name of the cluster.
    tags List<Property Map>
    Tags.

    Outputs

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

    EipAllocationId string
    Eip allocation Id.
    Id string
    The provider-assigned unique ID for this managed resource.
    KubeconfigPrivate string
    Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    KubeconfigPublic string
    Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    EipAllocationId string
    Eip allocation Id.
    Id string
    The provider-assigned unique ID for this managed resource.
    KubeconfigPrivate string
    Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    KubeconfigPublic string
    Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    eipAllocationId String
    Eip allocation Id.
    id String
    The provider-assigned unique ID for this managed resource.
    kubeconfigPrivate String
    Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    kubeconfigPublic String
    Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    eipAllocationId string
    Eip allocation Id.
    id string
    The provider-assigned unique ID for this managed resource.
    kubeconfigPrivate string
    Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    kubeconfigPublic string
    Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    eip_allocation_id str
    Eip allocation Id.
    id str
    The provider-assigned unique ID for this managed resource.
    kubeconfig_private str
    Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    kubeconfig_public str
    Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    eipAllocationId String
    Eip allocation Id.
    id String
    The provider-assigned unique ID for this managed resource.
    kubeconfigPrivate String
    Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    kubeconfigPublic String
    Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.

    Look up Existing Cluster Resource

    Get an existing Cluster 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?: ClusterState, opts?: CustomResourceOptions): Cluster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            client_token: Optional[str] = None,
            cluster_config: Optional[ClusterClusterConfigArgs] = None,
            delete_protection_enabled: Optional[bool] = None,
            description: Optional[str] = None,
            eip_allocation_id: Optional[str] = None,
            kubeconfig_private: Optional[str] = None,
            kubeconfig_public: Optional[str] = None,
            kubernetes_version: Optional[str] = None,
            logging_config: Optional[ClusterLoggingConfigArgs] = None,
            name: Optional[str] = None,
            pods_config: Optional[ClusterPodsConfigArgs] = None,
            services_config: Optional[ClusterServicesConfigArgs] = None,
            tags: Optional[Sequence[ClusterTagArgs]] = None) -> Cluster
    func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
    public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
    public static Cluster get(String name, Output<String> id, ClusterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ClientToken string
    ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
    ClusterConfig ClusterClusterConfig
    The config of the cluster.
    DeleteProtectionEnabled bool
    The delete protection of the cluster, the value is true or false.
    Description string
    The description of the cluster.
    EipAllocationId string
    Eip allocation Id.
    KubeconfigPrivate string
    Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    KubeconfigPublic string
    Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    KubernetesVersion string
    The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of v1.24. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
    LoggingConfig ClusterLoggingConfig
    Cluster log configuration information.
    Name string
    The name of the cluster.
    PodsConfig ClusterPodsConfig
    The config of the pods.
    ServicesConfig ClusterServicesConfig
    The config of the services.
    Tags List<ClusterTag>
    Tags.
    ClientToken string
    ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
    ClusterConfig ClusterClusterConfigArgs
    The config of the cluster.
    DeleteProtectionEnabled bool
    The delete protection of the cluster, the value is true or false.
    Description string
    The description of the cluster.
    EipAllocationId string
    Eip allocation Id.
    KubeconfigPrivate string
    Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    KubeconfigPublic string
    Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    KubernetesVersion string
    The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of v1.24. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
    LoggingConfig ClusterLoggingConfigArgs
    Cluster log configuration information.
    Name string
    The name of the cluster.
    PodsConfig ClusterPodsConfigArgs
    The config of the pods.
    ServicesConfig ClusterServicesConfigArgs
    The config of the services.
    Tags []ClusterTagArgs
    Tags.
    clientToken String
    ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
    clusterConfig ClusterClusterConfig
    The config of the cluster.
    deleteProtectionEnabled Boolean
    The delete protection of the cluster, the value is true or false.
    description String
    The description of the cluster.
    eipAllocationId String
    Eip allocation Id.
    kubeconfigPrivate String
    Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    kubeconfigPublic String
    Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    kubernetesVersion String
    The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of v1.24. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
    loggingConfig ClusterLoggingConfig
    Cluster log configuration information.
    name String
    The name of the cluster.
    podsConfig ClusterPodsConfig
    The config of the pods.
    servicesConfig ClusterServicesConfig
    The config of the services.
    tags List<ClusterTag>
    Tags.
    clientToken string
    ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
    clusterConfig ClusterClusterConfig
    The config of the cluster.
    deleteProtectionEnabled boolean
    The delete protection of the cluster, the value is true or false.
    description string
    The description of the cluster.
    eipAllocationId string
    Eip allocation Id.
    kubeconfigPrivate string
    Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    kubeconfigPublic string
    Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    kubernetesVersion string
    The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of v1.24. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
    loggingConfig ClusterLoggingConfig
    Cluster log configuration information.
    name string
    The name of the cluster.
    podsConfig ClusterPodsConfig
    The config of the pods.
    servicesConfig ClusterServicesConfig
    The config of the services.
    tags ClusterTag[]
    Tags.
    client_token str
    ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
    cluster_config ClusterClusterConfigArgs
    The config of the cluster.
    delete_protection_enabled bool
    The delete protection of the cluster, the value is true or false.
    description str
    The description of the cluster.
    eip_allocation_id str
    Eip allocation Id.
    kubeconfig_private str
    Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    kubeconfig_public str
    Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    kubernetes_version str
    The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of v1.24. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
    logging_config ClusterLoggingConfigArgs
    Cluster log configuration information.
    name str
    The name of the cluster.
    pods_config ClusterPodsConfigArgs
    The config of the pods.
    services_config ClusterServicesConfigArgs
    The config of the services.
    tags Sequence[ClusterTagArgs]
    Tags.
    clientToken String
    ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
    clusterConfig Property Map
    The config of the cluster.
    deleteProtectionEnabled Boolean
    The delete protection of the cluster, the value is true or false.
    description String
    The description of the cluster.
    eipAllocationId String
    Eip allocation Id.
    kubeconfigPrivate String
    Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    kubeconfigPublic String
    Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
    kubernetesVersion String
    The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of v1.24. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
    loggingConfig Property Map
    Cluster log configuration information.
    name String
    The name of the cluster.
    podsConfig Property Map
    The config of the pods.
    servicesConfig Property Map
    The config of the services.
    tags List<Property Map>
    Tags.

    Supporting Types

    ClusterClusterConfig, ClusterClusterConfigArgs

    SubnetIds List<string>
    The subnet ID for the cluster control plane to communicate within the private network.
    ApiServerPublicAccessConfig ClusterClusterConfigApiServerPublicAccessConfig
    Cluster API Server public network access configuration.
    ApiServerPublicAccessEnabled bool
    Cluster API Server public network access configuration, the value is true or false.
    IpFamily string
    ResourcePublicAccessDefaultEnabled bool
    Node public network access configuration, the value is true or false.
    SubnetIds []string
    The subnet ID for the cluster control plane to communicate within the private network.
    ApiServerPublicAccessConfig ClusterClusterConfigApiServerPublicAccessConfig
    Cluster API Server public network access configuration.
    ApiServerPublicAccessEnabled bool
    Cluster API Server public network access configuration, the value is true or false.
    IpFamily string
    ResourcePublicAccessDefaultEnabled bool
    Node public network access configuration, the value is true or false.
    subnetIds List<String>
    The subnet ID for the cluster control plane to communicate within the private network.
    apiServerPublicAccessConfig ClusterClusterConfigApiServerPublicAccessConfig
    Cluster API Server public network access configuration.
    apiServerPublicAccessEnabled Boolean
    Cluster API Server public network access configuration, the value is true or false.
    ipFamily String
    resourcePublicAccessDefaultEnabled Boolean
    Node public network access configuration, the value is true or false.
    subnetIds string[]
    The subnet ID for the cluster control plane to communicate within the private network.
    apiServerPublicAccessConfig ClusterClusterConfigApiServerPublicAccessConfig
    Cluster API Server public network access configuration.
    apiServerPublicAccessEnabled boolean
    Cluster API Server public network access configuration, the value is true or false.
    ipFamily string
    resourcePublicAccessDefaultEnabled boolean
    Node public network access configuration, the value is true or false.
    subnet_ids Sequence[str]
    The subnet ID for the cluster control plane to communicate within the private network.
    api_server_public_access_config ClusterClusterConfigApiServerPublicAccessConfig
    Cluster API Server public network access configuration.
    api_server_public_access_enabled bool
    Cluster API Server public network access configuration, the value is true or false.
    ip_family str
    resource_public_access_default_enabled bool
    Node public network access configuration, the value is true or false.
    subnetIds List<String>
    The subnet ID for the cluster control plane to communicate within the private network.
    apiServerPublicAccessConfig Property Map
    Cluster API Server public network access configuration.
    apiServerPublicAccessEnabled Boolean
    Cluster API Server public network access configuration, the value is true or false.
    ipFamily String
    resourcePublicAccessDefaultEnabled Boolean
    Node public network access configuration, the value is true or false.

    ClusterClusterConfigApiServerPublicAccessConfig, ClusterClusterConfigApiServerPublicAccessConfigArgs

    publicAccessNetworkConfig Property Map
    Public network access network configuration.

    ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfig, ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs

    Bandwidth int
    The peak bandwidth of the public IP, unit: Mbps.
    BillingType string
    Billing type of public IP, the value is PostPaidByBandwidth or PostPaidByTraffic.
    Bandwidth int
    The peak bandwidth of the public IP, unit: Mbps.
    BillingType string
    Billing type of public IP, the value is PostPaidByBandwidth or PostPaidByTraffic.
    bandwidth Integer
    The peak bandwidth of the public IP, unit: Mbps.
    billingType String
    Billing type of public IP, the value is PostPaidByBandwidth or PostPaidByTraffic.
    bandwidth number
    The peak bandwidth of the public IP, unit: Mbps.
    billingType string
    Billing type of public IP, the value is PostPaidByBandwidth or PostPaidByTraffic.
    bandwidth int
    The peak bandwidth of the public IP, unit: Mbps.
    billing_type str
    Billing type of public IP, the value is PostPaidByBandwidth or PostPaidByTraffic.
    bandwidth Number
    The peak bandwidth of the public IP, unit: Mbps.
    billingType String
    Billing type of public IP, the value is PostPaidByBandwidth or PostPaidByTraffic.

    ClusterLoggingConfig, ClusterLoggingConfigArgs

    LogProjectId string
    The TLS log item ID of the collection target.
    LogSetups List<ClusterLoggingConfigLogSetup>
    Cluster logging options. This structure can only be modified and added, and cannot be deleted. When encountering a cannot be deleted error, please query the log setups of the current cluster and fill in the current tf file.
    LogProjectId string
    The TLS log item ID of the collection target.
    LogSetups []ClusterLoggingConfigLogSetup
    Cluster logging options. This structure can only be modified and added, and cannot be deleted. When encountering a cannot be deleted error, please query the log setups of the current cluster and fill in the current tf file.
    logProjectId String
    The TLS log item ID of the collection target.
    logSetups List<ClusterLoggingConfigLogSetup>
    Cluster logging options. This structure can only be modified and added, and cannot be deleted. When encountering a cannot be deleted error, please query the log setups of the current cluster and fill in the current tf file.
    logProjectId string
    The TLS log item ID of the collection target.
    logSetups ClusterLoggingConfigLogSetup[]
    Cluster logging options. This structure can only be modified and added, and cannot be deleted. When encountering a cannot be deleted error, please query the log setups of the current cluster and fill in the current tf file.
    log_project_id str
    The TLS log item ID of the collection target.
    log_setups Sequence[ClusterLoggingConfigLogSetup]
    Cluster logging options. This structure can only be modified and added, and cannot be deleted. When encountering a cannot be deleted error, please query the log setups of the current cluster and fill in the current tf file.
    logProjectId String
    The TLS log item ID of the collection target.
    logSetups List<Property Map>
    Cluster logging options. This structure can only be modified and added, and cannot be deleted. When encountering a cannot be deleted error, please query the log setups of the current cluster and fill in the current tf file.

    ClusterLoggingConfigLogSetup, ClusterLoggingConfigLogSetupArgs

    LogType string
    The current types of logs that can be enabled are: Audit: Cluster audit logs. KubeApiServer: kube-apiserver component logs. KubeScheduler: kube-scheduler component logs. KubeControllerManager: kube-controller-manager component logs.
    Enabled bool
    Whether to enable the log option, true means enable, false means not enable, the default is false. When Enabled is changed from false to true, a new Topic will be created.
    LogTtl int
    The storage time of logs in Log Service. After the specified log storage time is exceeded, the expired logs in this log topic will be automatically cleared. The unit is days, and the default is 30 days. The value range is 1 to 3650, specifying 3650 days means permanent storage.
    LogType string
    The current types of logs that can be enabled are: Audit: Cluster audit logs. KubeApiServer: kube-apiserver component logs. KubeScheduler: kube-scheduler component logs. KubeControllerManager: kube-controller-manager component logs.
    Enabled bool
    Whether to enable the log option, true means enable, false means not enable, the default is false. When Enabled is changed from false to true, a new Topic will be created.
    LogTtl int
    The storage time of logs in Log Service. After the specified log storage time is exceeded, the expired logs in this log topic will be automatically cleared. The unit is days, and the default is 30 days. The value range is 1 to 3650, specifying 3650 days means permanent storage.
    logType String
    The current types of logs that can be enabled are: Audit: Cluster audit logs. KubeApiServer: kube-apiserver component logs. KubeScheduler: kube-scheduler component logs. KubeControllerManager: kube-controller-manager component logs.
    enabled Boolean
    Whether to enable the log option, true means enable, false means not enable, the default is false. When Enabled is changed from false to true, a new Topic will be created.
    logTtl Integer
    The storage time of logs in Log Service. After the specified log storage time is exceeded, the expired logs in this log topic will be automatically cleared. The unit is days, and the default is 30 days. The value range is 1 to 3650, specifying 3650 days means permanent storage.
    logType string
    The current types of logs that can be enabled are: Audit: Cluster audit logs. KubeApiServer: kube-apiserver component logs. KubeScheduler: kube-scheduler component logs. KubeControllerManager: kube-controller-manager component logs.
    enabled boolean
    Whether to enable the log option, true means enable, false means not enable, the default is false. When Enabled is changed from false to true, a new Topic will be created.
    logTtl number
    The storage time of logs in Log Service. After the specified log storage time is exceeded, the expired logs in this log topic will be automatically cleared. The unit is days, and the default is 30 days. The value range is 1 to 3650, specifying 3650 days means permanent storage.
    log_type str
    The current types of logs that can be enabled are: Audit: Cluster audit logs. KubeApiServer: kube-apiserver component logs. KubeScheduler: kube-scheduler component logs. KubeControllerManager: kube-controller-manager component logs.
    enabled bool
    Whether to enable the log option, true means enable, false means not enable, the default is false. When Enabled is changed from false to true, a new Topic will be created.
    log_ttl int
    The storage time of logs in Log Service. After the specified log storage time is exceeded, the expired logs in this log topic will be automatically cleared. The unit is days, and the default is 30 days. The value range is 1 to 3650, specifying 3650 days means permanent storage.
    logType String
    The current types of logs that can be enabled are: Audit: Cluster audit logs. KubeApiServer: kube-apiserver component logs. KubeScheduler: kube-scheduler component logs. KubeControllerManager: kube-controller-manager component logs.
    enabled Boolean
    Whether to enable the log option, true means enable, false means not enable, the default is false. When Enabled is changed from false to true, a new Topic will be created.
    logTtl Number
    The storage time of logs in Log Service. After the specified log storage time is exceeded, the expired logs in this log topic will be automatically cleared. The unit is days, and the default is 30 days. The value range is 1 to 3650, specifying 3650 days means permanent storage.

    ClusterPodsConfig, ClusterPodsConfigArgs

    PodNetworkMode string
    The container network model of the cluster, the value is Flannel or VpcCniShared. Flannel: Flannel network model, an independent Underlay container network solution, combined with the global routing capability of VPC, to achieve a high-performance network experience for the cluster. VpcCniShared: VPC-CNI network model, an Underlay container network solution based on the ENI of the private network elastic network card, with high network communication performance.
    FlannelConfig ClusterPodsConfigFlannelConfig
    Flannel network configuration.
    VpcCniConfig ClusterPodsConfigVpcCniConfig
    VPC-CNI network configuration.
    PodNetworkMode string
    The container network model of the cluster, the value is Flannel or VpcCniShared. Flannel: Flannel network model, an independent Underlay container network solution, combined with the global routing capability of VPC, to achieve a high-performance network experience for the cluster. VpcCniShared: VPC-CNI network model, an Underlay container network solution based on the ENI of the private network elastic network card, with high network communication performance.
    FlannelConfig ClusterPodsConfigFlannelConfig
    Flannel network configuration.
    VpcCniConfig ClusterPodsConfigVpcCniConfig
    VPC-CNI network configuration.
    podNetworkMode String
    The container network model of the cluster, the value is Flannel or VpcCniShared. Flannel: Flannel network model, an independent Underlay container network solution, combined with the global routing capability of VPC, to achieve a high-performance network experience for the cluster. VpcCniShared: VPC-CNI network model, an Underlay container network solution based on the ENI of the private network elastic network card, with high network communication performance.
    flannelConfig ClusterPodsConfigFlannelConfig
    Flannel network configuration.
    vpcCniConfig ClusterPodsConfigVpcCniConfig
    VPC-CNI network configuration.
    podNetworkMode string
    The container network model of the cluster, the value is Flannel or VpcCniShared. Flannel: Flannel network model, an independent Underlay container network solution, combined with the global routing capability of VPC, to achieve a high-performance network experience for the cluster. VpcCniShared: VPC-CNI network model, an Underlay container network solution based on the ENI of the private network elastic network card, with high network communication performance.
    flannelConfig ClusterPodsConfigFlannelConfig
    Flannel network configuration.
    vpcCniConfig ClusterPodsConfigVpcCniConfig
    VPC-CNI network configuration.
    pod_network_mode str
    The container network model of the cluster, the value is Flannel or VpcCniShared. Flannel: Flannel network model, an independent Underlay container network solution, combined with the global routing capability of VPC, to achieve a high-performance network experience for the cluster. VpcCniShared: VPC-CNI network model, an Underlay container network solution based on the ENI of the private network elastic network card, with high network communication performance.
    flannel_config ClusterPodsConfigFlannelConfig
    Flannel network configuration.
    vpc_cni_config ClusterPodsConfigVpcCniConfig
    VPC-CNI network configuration.
    podNetworkMode String
    The container network model of the cluster, the value is Flannel or VpcCniShared. Flannel: Flannel network model, an independent Underlay container network solution, combined with the global routing capability of VPC, to achieve a high-performance network experience for the cluster. VpcCniShared: VPC-CNI network model, an Underlay container network solution based on the ENI of the private network elastic network card, with high network communication performance.
    flannelConfig Property Map
    Flannel network configuration.
    vpcCniConfig Property Map
    VPC-CNI network configuration.

    ClusterPodsConfigFlannelConfig, ClusterPodsConfigFlannelConfigArgs

    MaxPodsPerNode int
    The maximum number of single-node Pod instances for a Flannel container network, the value can be 16 or 32 or 64 or 128 or 256.
    PodCidrs List<string>
    Pod CIDR for the Flannel container network.
    MaxPodsPerNode int
    The maximum number of single-node Pod instances for a Flannel container network, the value can be 16 or 32 or 64 or 128 or 256.
    PodCidrs []string
    Pod CIDR for the Flannel container network.
    maxPodsPerNode Integer
    The maximum number of single-node Pod instances for a Flannel container network, the value can be 16 or 32 or 64 or 128 or 256.
    podCidrs List<String>
    Pod CIDR for the Flannel container network.
    maxPodsPerNode number
    The maximum number of single-node Pod instances for a Flannel container network, the value can be 16 or 32 or 64 or 128 or 256.
    podCidrs string[]
    Pod CIDR for the Flannel container network.
    max_pods_per_node int
    The maximum number of single-node Pod instances for a Flannel container network, the value can be 16 or 32 or 64 or 128 or 256.
    pod_cidrs Sequence[str]
    Pod CIDR for the Flannel container network.
    maxPodsPerNode Number
    The maximum number of single-node Pod instances for a Flannel container network, the value can be 16 or 32 or 64 or 128 or 256.
    podCidrs List<String>
    Pod CIDR for the Flannel container network.

    ClusterPodsConfigVpcCniConfig, ClusterPodsConfigVpcCniConfigArgs

    SubnetIds List<string>
    A list of Pod subnet IDs for the VPC-CNI container network.
    VpcId string
    The private network where the cluster control plane network resides.
    SubnetIds []string
    A list of Pod subnet IDs for the VPC-CNI container network.
    VpcId string
    The private network where the cluster control plane network resides.
    subnetIds List<String>
    A list of Pod subnet IDs for the VPC-CNI container network.
    vpcId String
    The private network where the cluster control plane network resides.
    subnetIds string[]
    A list of Pod subnet IDs for the VPC-CNI container network.
    vpcId string
    The private network where the cluster control plane network resides.
    subnet_ids Sequence[str]
    A list of Pod subnet IDs for the VPC-CNI container network.
    vpc_id str
    The private network where the cluster control plane network resides.
    subnetIds List<String>
    A list of Pod subnet IDs for the VPC-CNI container network.
    vpcId String
    The private network where the cluster control plane network resides.

    ClusterServicesConfig, ClusterServicesConfigArgs

    ServiceCidrsv4s List<string>
    The IPv4 private network address exposed by the service.
    ServiceCidrsv4s []string
    The IPv4 private network address exposed by the service.
    serviceCidrsv4s List<String>
    The IPv4 private network address exposed by the service.
    serviceCidrsv4s string[]
    The IPv4 private network address exposed by the service.
    service_cidrsv4s Sequence[str]
    The IPv4 private network address exposed by the service.
    serviceCidrsv4s List<String>
    The IPv4 private network address exposed by the service.

    ClusterTag, ClusterTagArgs

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Import

    VkeCluster can be imported using the id, e.g.

     $ pulumi import volcengine:vke/cluster:Cluster default cc9l74mvqtofjnoj5****
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine