volcengine.vke.Cluster
Explore with Pulumi AI
Provides a resource to manage vke cluster
Example Usage
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",
    }],
});
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",
    )])
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
	})
}
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 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());
    }
}
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={
        "subnet_ids": ["string"],
        "api_server_public_access_config": {
            "public_access_network_config": {
                "bandwidth": 0,
                "billing_type": "string",
            },
        },
        "api_server_public_access_enabled": False,
        "ip_family": "string",
        "resource_public_access_default_enabled": False,
    },
    pods_config={
        "pod_network_mode": "string",
        "flannel_config": {
            "max_pods_per_node": 0,
            "pod_cidrs": ["string"],
        },
        "vpc_cni_config": {
            "subnet_ids": ["string"],
            "vpc_id": "string",
        },
    },
    services_config={
        "service_cidrsv4s": ["string"],
    },
    client_token="string",
    delete_protection_enabled=False,
    description="string",
    kubernetes_version="string",
    logging_config={
        "log_project_id": "string",
        "log_setups": [{
            "log_type": "string",
            "enabled": False,
            "log_ttl": 0,
        }],
    },
    name="string",
    tags=[{
        "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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Cluster resource accepts the following input properties:
- ClusterConfig ClusterCluster Config 
- The config of the cluster.
- PodsConfig ClusterPods Config 
- The config of the pods.
- ServicesConfig ClusterServices Config 
- 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.
- DeleteProtection boolEnabled 
- The delete protection of the cluster, the value is trueorfalse.
- 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 1.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 ClusterLogging Config 
- Cluster log configuration information.
- Name string
- The name of the cluster.
- 
List<ClusterTag> 
- Tags.
- ClusterConfig ClusterCluster Config Args 
- The config of the cluster.
- PodsConfig ClusterPods Config Args 
- The config of the pods.
- ServicesConfig ClusterServices Config Args 
- 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.
- DeleteProtection boolEnabled 
- The delete protection of the cluster, the value is trueorfalse.
- 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 1.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 ClusterLogging Config Args 
- Cluster log configuration information.
- Name string
- The name of the cluster.
- 
[]ClusterTag Args 
- Tags.
- clusterConfig ClusterCluster Config 
- The config of the cluster.
- podsConfig ClusterPods Config 
- The config of the pods.
- servicesConfig ClusterServices Config 
- 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.
- deleteProtection BooleanEnabled 
- The delete protection of the cluster, the value is trueorfalse.
- 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 1.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 ClusterLogging Config 
- Cluster log configuration information.
- name String
- The name of the cluster.
- 
List<ClusterTag> 
- Tags.
- clusterConfig ClusterCluster Config 
- The config of the cluster.
- podsConfig ClusterPods Config 
- The config of the pods.
- servicesConfig ClusterServices Config 
- 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.
- deleteProtection booleanEnabled 
- The delete protection of the cluster, the value is trueorfalse.
- 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 1.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 ClusterLogging Config 
- Cluster log configuration information.
- name string
- The name of the cluster.
- 
ClusterTag[] 
- Tags.
- cluster_config ClusterCluster Config Args 
- The config of the cluster.
- pods_config ClusterPods Config Args 
- The config of the pods.
- services_config ClusterServices Config Args 
- 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_ boolenabled 
- The delete protection of the cluster, the value is trueorfalse.
- 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 1.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 ClusterLogging Config Args 
- Cluster log configuration information.
- name str
- The name of the cluster.
- 
Sequence[ClusterTag Args] 
- 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.
- deleteProtection BooleanEnabled 
- The delete protection of the cluster, the value is trueorfalse.
- 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 1.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.
- List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- EipAllocation stringId 
- 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.
- EipAllocation stringId 
- 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.
- eipAllocation StringId 
- 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.
- eipAllocation stringId 
- 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_ strid 
- 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.
- eipAllocation StringId 
- 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) -> Clusterfunc 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)resources:  _:    type: volcengine:vke:Cluster    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.
- ClientToken string
- ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
- ClusterConfig ClusterCluster Config 
- The config of the cluster.
- DeleteProtection boolEnabled 
- The delete protection of the cluster, the value is trueorfalse.
- Description string
- The description of the cluster.
- EipAllocation stringId 
- 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 1.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 ClusterLogging Config 
- Cluster log configuration information.
- Name string
- The name of the cluster.
- PodsConfig ClusterPods Config 
- The config of the pods.
- ServicesConfig ClusterServices Config 
- The config of the services.
- 
List<ClusterTag> 
- Tags.
- ClientToken string
- ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
- ClusterConfig ClusterCluster Config Args 
- The config of the cluster.
- DeleteProtection boolEnabled 
- The delete protection of the cluster, the value is trueorfalse.
- Description string
- The description of the cluster.
- EipAllocation stringId 
- 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 1.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 ClusterLogging Config Args 
- Cluster log configuration information.
- Name string
- The name of the cluster.
- PodsConfig ClusterPods Config Args 
- The config of the pods.
- ServicesConfig ClusterServices Config Args 
- The config of the services.
- 
[]ClusterTag Args 
- Tags.
- clientToken String
- ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
- clusterConfig ClusterCluster Config 
- The config of the cluster.
- deleteProtection BooleanEnabled 
- The delete protection of the cluster, the value is trueorfalse.
- description String
- The description of the cluster.
- eipAllocation StringId 
- 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 1.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 ClusterLogging Config 
- Cluster log configuration information.
- name String
- The name of the cluster.
- podsConfig ClusterPods Config 
- The config of the pods.
- servicesConfig ClusterServices Config 
- The config of the services.
- 
List<ClusterTag> 
- Tags.
- clientToken string
- ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
- clusterConfig ClusterCluster Config 
- The config of the cluster.
- deleteProtection booleanEnabled 
- The delete protection of the cluster, the value is trueorfalse.
- description string
- The description of the cluster.
- eipAllocation stringId 
- 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 1.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 ClusterLogging Config 
- Cluster log configuration information.
- name string
- The name of the cluster.
- podsConfig ClusterPods Config 
- The config of the pods.
- servicesConfig ClusterServices Config 
- The config of the services.
- 
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 ClusterCluster Config Args 
- The config of the cluster.
- delete_protection_ boolenabled 
- The delete protection of the cluster, the value is trueorfalse.
- description str
- The description of the cluster.
- eip_allocation_ strid 
- 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 1.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 ClusterLogging Config Args 
- Cluster log configuration information.
- name str
- The name of the cluster.
- pods_config ClusterPods Config Args 
- The config of the pods.
- services_config ClusterServices Config Args 
- The config of the services.
- 
Sequence[ClusterTag Args] 
- 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.
- deleteProtection BooleanEnabled 
- The delete protection of the cluster, the value is trueorfalse.
- description String
- The description of the cluster.
- eipAllocation StringId 
- 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 1.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.
- 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. Up to 3 subnets can be selected from each available zone, and a maximum of 2 subnets can be added to each available zone. Cannot support deleting configured subnets.
- ApiServer ClusterPublic Access Config Cluster Config Api Server Public Access Config 
- Cluster API Server public network access configuration.
- ApiServer boolPublic Access Enabled 
- Cluster API Server public network access configuration, the value is trueorfalse.
- IpFamily string
- [SkipDoc]The IpFamily configuration,the value is Ipv4orDualStack.
- ResourcePublic boolAccess Default Enabled 
- Node public network access configuration, the value is trueorfalse.
- SubnetIds []string
- The subnet ID for the cluster control plane to communicate within the private network. Up to 3 subnets can be selected from each available zone, and a maximum of 2 subnets can be added to each available zone. Cannot support deleting configured subnets.
- ApiServer ClusterPublic Access Config Cluster Config Api Server Public Access Config 
- Cluster API Server public network access configuration.
- ApiServer boolPublic Access Enabled 
- Cluster API Server public network access configuration, the value is trueorfalse.
- IpFamily string
- [SkipDoc]The IpFamily configuration,the value is Ipv4orDualStack.
- ResourcePublic boolAccess Default Enabled 
- Node public network access configuration, the value is trueorfalse.
- subnetIds List<String>
- The subnet ID for the cluster control plane to communicate within the private network. Up to 3 subnets can be selected from each available zone, and a maximum of 2 subnets can be added to each available zone. Cannot support deleting configured subnets.
- apiServer ClusterPublic Access Config Cluster Config Api Server Public Access Config 
- Cluster API Server public network access configuration.
- apiServer BooleanPublic Access Enabled 
- Cluster API Server public network access configuration, the value is trueorfalse.
- ipFamily String
- [SkipDoc]The IpFamily configuration,the value is Ipv4orDualStack.
- resourcePublic BooleanAccess Default Enabled 
- Node public network access configuration, the value is trueorfalse.
- subnetIds string[]
- The subnet ID for the cluster control plane to communicate within the private network. Up to 3 subnets can be selected from each available zone, and a maximum of 2 subnets can be added to each available zone. Cannot support deleting configured subnets.
- apiServer ClusterPublic Access Config Cluster Config Api Server Public Access Config 
- Cluster API Server public network access configuration.
- apiServer booleanPublic Access Enabled 
- Cluster API Server public network access configuration, the value is trueorfalse.
- ipFamily string
- [SkipDoc]The IpFamily configuration,the value is Ipv4orDualStack.
- resourcePublic booleanAccess Default Enabled 
- Node public network access configuration, the value is trueorfalse.
- subnet_ids Sequence[str]
- The subnet ID for the cluster control plane to communicate within the private network. Up to 3 subnets can be selected from each available zone, and a maximum of 2 subnets can be added to each available zone. Cannot support deleting configured subnets.
- api_server_ Clusterpublic_ access_ config Cluster Config Api Server Public Access Config 
- Cluster API Server public network access configuration.
- api_server_ boolpublic_ access_ enabled 
- Cluster API Server public network access configuration, the value is trueorfalse.
- ip_family str
- [SkipDoc]The IpFamily configuration,the value is Ipv4orDualStack.
- resource_public_ boolaccess_ default_ enabled 
- Node public network access configuration, the value is trueorfalse.
- subnetIds List<String>
- The subnet ID for the cluster control plane to communicate within the private network. Up to 3 subnets can be selected from each available zone, and a maximum of 2 subnets can be added to each available zone. Cannot support deleting configured subnets.
- apiServer Property MapPublic Access Config 
- Cluster API Server public network access configuration.
- apiServer BooleanPublic Access Enabled 
- Cluster API Server public network access configuration, the value is trueorfalse.
- ipFamily String
- [SkipDoc]The IpFamily configuration,the value is Ipv4orDualStack.
- resourcePublic BooleanAccess Default Enabled 
- Node public network access configuration, the value is trueorfalse.
ClusterClusterConfigApiServerPublicAccessConfig, ClusterClusterConfigApiServerPublicAccessConfigArgs                
- PublicAccess ClusterNetwork Config Cluster Config Api Server Public Access Config Public Access Network Config 
- Public network access network configuration.
- PublicAccess ClusterNetwork Config Cluster Config Api Server Public Access Config Public Access Network Config 
- Public network access network configuration.
- publicAccess ClusterNetwork Config Cluster Config Api Server Public Access Config Public Access Network Config 
- Public network access network configuration.
- publicAccess ClusterNetwork Config Cluster Config Api Server Public Access Config Public Access Network Config 
- Public network access network configuration.
- public_access_ Clusternetwork_ config Cluster Config Api Server Public Access Config Public Access Network Config 
- Public network access network configuration.
- publicAccess Property MapNetwork Config 
- 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 PostPaidByBandwidthorPostPaidByTraffic.
- Bandwidth int
- The peak bandwidth of the public IP, unit: Mbps.
- BillingType string
- Billing type of public IP, the value is PostPaidByBandwidthorPostPaidByTraffic.
- bandwidth Integer
- The peak bandwidth of the public IP, unit: Mbps.
- billingType String
- Billing type of public IP, the value is PostPaidByBandwidthorPostPaidByTraffic.
- bandwidth number
- The peak bandwidth of the public IP, unit: Mbps.
- billingType string
- Billing type of public IP, the value is PostPaidByBandwidthorPostPaidByTraffic.
- bandwidth int
- The peak bandwidth of the public IP, unit: Mbps.
- billing_type str
- Billing type of public IP, the value is PostPaidByBandwidthorPostPaidByTraffic.
- bandwidth Number
- The peak bandwidth of the public IP, unit: Mbps.
- billingType String
- Billing type of public IP, the value is PostPaidByBandwidthorPostPaidByTraffic.
ClusterLoggingConfig, ClusterLoggingConfigArgs      
- LogProject stringId 
- The TLS log item ID of the collection target.
- LogSetups List<ClusterLogging Config Log Setup> 
- Cluster logging options. This structure can only be modified and added, and cannot be deleted. When encountering a cannot be deletederror, please query the log setups of the current cluster and fill in the currenttffile.
- LogProject stringId 
- The TLS log item ID of the collection target.
- LogSetups []ClusterLogging Config Log Setup 
- Cluster logging options. This structure can only be modified and added, and cannot be deleted. When encountering a cannot be deletederror, please query the log setups of the current cluster and fill in the currenttffile.
- logProject StringId 
- The TLS log item ID of the collection target.
- logSetups List<ClusterLogging Config Log Setup> 
- Cluster logging options. This structure can only be modified and added, and cannot be deleted. When encountering a cannot be deletederror, please query the log setups of the current cluster and fill in the currenttffile.
- logProject stringId 
- The TLS log item ID of the collection target.
- logSetups ClusterLogging Config Log Setup[] 
- Cluster logging options. This structure can only be modified and added, and cannot be deleted. When encountering a cannot be deletederror, please query the log setups of the current cluster and fill in the currenttffile.
- log_project_ strid 
- The TLS log item ID of the collection target.
- log_setups Sequence[ClusterLogging Config Log Setup] 
- Cluster logging options. This structure can only be modified and added, and cannot be deleted. When encountering a cannot be deletederror, please query the log setups of the current cluster and fill in the currenttffile.
- logProject StringId 
- 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 deletederror, please query the log setups of the current cluster and fill in the currenttffile.
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      
- PodNetwork stringMode 
- The container network model of the cluster, the value is FlannelorVpcCniShared. 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 ClusterPods Config Flannel Config 
- Flannel network configuration.
- VpcCni ClusterConfig Pods Config Vpc Cni Config 
- VPC-CNI network configuration.
- PodNetwork stringMode 
- The container network model of the cluster, the value is FlannelorVpcCniShared. 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 ClusterPods Config Flannel Config 
- Flannel network configuration.
- VpcCni ClusterConfig Pods Config Vpc Cni Config 
- VPC-CNI network configuration.
- podNetwork StringMode 
- The container network model of the cluster, the value is FlannelorVpcCniShared. 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 ClusterPods Config Flannel Config 
- Flannel network configuration.
- vpcCni ClusterConfig Pods Config Vpc Cni Config 
- VPC-CNI network configuration.
- podNetwork stringMode 
- The container network model of the cluster, the value is FlannelorVpcCniShared. 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 ClusterPods Config Flannel Config 
- Flannel network configuration.
- vpcCni ClusterConfig Pods Config Vpc Cni Config 
- VPC-CNI network configuration.
- pod_network_ strmode 
- The container network model of the cluster, the value is FlannelorVpcCniShared. 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 ClusterPods Config Flannel Config 
- Flannel network configuration.
- vpc_cni_ Clusterconfig Pods Config Vpc Cni Config 
- VPC-CNI network configuration.
- podNetwork StringMode 
- The container network model of the cluster, the value is FlannelorVpcCniShared. 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.
- vpcCni Property MapConfig 
- VPC-CNI network configuration.
ClusterPodsConfigFlannelConfig, ClusterPodsConfigFlannelConfigArgs          
- MaxPods intPer Node 
- The maximum number of single-node Pod instances for a Flannel container network, the value can be 16or32or64or128or256.
- PodCidrs List<string>
- Pod CIDR for the Flannel container network.
- MaxPods intPer Node 
- The maximum number of single-node Pod instances for a Flannel container network, the value can be 16or32or64or128or256.
- PodCidrs []string
- Pod CIDR for the Flannel container network.
- maxPods IntegerPer Node 
- The maximum number of single-node Pod instances for a Flannel container network, the value can be 16or32or64or128or256.
- podCidrs List<String>
- Pod CIDR for the Flannel container network.
- maxPods numberPer Node 
- The maximum number of single-node Pod instances for a Flannel container network, the value can be 16or32or64or128or256.
- podCidrs string[]
- Pod CIDR for the Flannel container network.
- max_pods_ intper_ node 
- The maximum number of single-node Pod instances for a Flannel container network, the value can be 16or32or64or128or256.
- pod_cidrs Sequence[str]
- Pod CIDR for the Flannel container network.
- maxPods NumberPer Node 
- The maximum number of single-node Pod instances for a Flannel container network, the value can be 16or32or64or128or256.
- podCidrs List<String>
- Pod CIDR for the Flannel container network.
ClusterPodsConfigVpcCniConfig, ClusterPodsConfigVpcCniConfigArgs            
- 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.
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    
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 volcengineTerraform Provider.