volcengine.vke.Cluster
Explore with Pulumi AI
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:
- Cluster
Config ClusterCluster Config - The config of the cluster.
- Pods
Config ClusterPods Config - The config of the pods.
- Services
Config ClusterServices Config - The config of the services.
- Client
Token string - 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
true
orfalse
. - Description string
- The description of the cluster.
- Kubernetes
Version 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. - Logging
Config ClusterLogging Config - Cluster log configuration information.
- Name string
- The name of the cluster.
- List<Cluster
Tag> - 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 string - 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
true
orfalse
. - Description string
- The description of the cluster.
- Kubernetes
Version 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. - Logging
Config ClusterLogging Config Args - Cluster log configuration information.
- Name string
- The name of the cluster.
- []Cluster
Tag Args - Tags.
- cluster
Config ClusterCluster Config - The config of the cluster.
- pods
Config ClusterPods Config - The config of the pods.
- services
Config ClusterServices Config - The config of the services.
- client
Token String - ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
- delete
Protection BooleanEnabled - The delete protection of the cluster, the value is
true
orfalse
. - description String
- The description of the cluster.
- kubernetes
Version 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. - logging
Config ClusterLogging Config - Cluster log configuration information.
- name String
- The name of the cluster.
- List<Cluster
Tag> - Tags.
- cluster
Config ClusterCluster Config - The config of the cluster.
- pods
Config ClusterPods Config - The config of the pods.
- services
Config ClusterServices Config - The config of the services.
- client
Token string - ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
- delete
Protection booleanEnabled - The delete protection of the cluster, the value is
true
orfalse
. - description string
- The description of the cluster.
- kubernetes
Version 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. - logging
Config ClusterLogging Config - Cluster log configuration information.
- name string
- The name of the cluster.
- Cluster
Tag[] - 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
true
orfalse
. - 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[Cluster
Tag Args] - Tags.
- cluster
Config Property Map - The config of the cluster.
- pods
Config Property Map - The config of the pods.
- services
Config Property Map - The config of the services.
- client
Token String - ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
- delete
Protection BooleanEnabled - The delete protection of the cluster, the value is
true
orfalse
. - description String
- The description of the cluster.
- kubernetes
Version 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. - logging
Config 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:
- Eip
Allocation stringId - Eip allocation Id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kubeconfig
Private string - Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- Kubeconfig
Public string - Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- Eip
Allocation stringId - Eip allocation Id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kubeconfig
Private string - Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- Kubeconfig
Public string - Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- eip
Allocation StringId - Eip allocation Id.
- id String
- The provider-assigned unique ID for this managed resource.
- kubeconfig
Private String - Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- kubeconfig
Public String - Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- eip
Allocation stringId - Eip allocation Id.
- id string
- The provider-assigned unique ID for this managed resource.
- kubeconfig
Private string - Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- kubeconfig
Public 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.
- eip
Allocation StringId - Eip allocation Id.
- id String
- The provider-assigned unique ID for this managed resource.
- kubeconfig
Private String - Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- kubeconfig
Public 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.
- Client
Token string - ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
- Cluster
Config ClusterCluster Config - The config of the cluster.
- Delete
Protection boolEnabled - The delete protection of the cluster, the value is
true
orfalse
. - Description string
- The description of the cluster.
- Eip
Allocation stringId - Eip allocation Id.
- Kubeconfig
Private string - Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- Kubeconfig
Public string - Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- Kubernetes
Version 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. - Logging
Config ClusterLogging Config - Cluster log configuration information.
- Name string
- The name of the cluster.
- Pods
Config ClusterPods Config - The config of the pods.
- Services
Config ClusterServices Config - The config of the services.
- List<Cluster
Tag> - Tags.
- Client
Token string - 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
true
orfalse
. - Description string
- The description of the cluster.
- Eip
Allocation stringId - Eip allocation Id.
- Kubeconfig
Private string - Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- Kubeconfig
Public string - Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- Kubernetes
Version 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. - Logging
Config ClusterLogging Config Args - Cluster log configuration information.
- Name string
- 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.
- []Cluster
Tag Args - Tags.
- client
Token String - ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
- cluster
Config ClusterCluster Config - The config of the cluster.
- delete
Protection BooleanEnabled - The delete protection of the cluster, the value is
true
orfalse
. - description String
- The description of the cluster.
- eip
Allocation StringId - Eip allocation Id.
- kubeconfig
Private String - Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- kubeconfig
Public String - Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- kubernetes
Version 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. - logging
Config ClusterLogging Config - Cluster log configuration information.
- name String
- The name of the cluster.
- pods
Config ClusterPods Config - The config of the pods.
- services
Config ClusterServices Config - The config of the services.
- List<Cluster
Tag> - Tags.
- client
Token string - ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
- cluster
Config ClusterCluster Config - The config of the cluster.
- delete
Protection booleanEnabled - The delete protection of the cluster, the value is
true
orfalse
. - description string
- The description of the cluster.
- eip
Allocation stringId - Eip allocation Id.
- kubeconfig
Private string - Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- kubeconfig
Public string - Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- kubernetes
Version 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. - logging
Config ClusterLogging Config - Cluster log configuration information.
- name string
- The name of the cluster.
- pods
Config ClusterPods Config - The config of the pods.
- services
Config ClusterServices Config - The config of the services.
- Cluster
Tag[] - 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
true
orfalse
. - 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[Cluster
Tag Args] - Tags.
- client
Token String - ClientToken is a case-sensitive string of no more than 64 ASCII characters passed in by the caller.
- cluster
Config Property Map - The config of the cluster.
- delete
Protection BooleanEnabled - The delete protection of the cluster, the value is
true
orfalse
. - description String
- The description of the cluster.
- eip
Allocation StringId - Eip allocation Id.
- kubeconfig
Private String - Kubeconfig data with private network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- kubeconfig
Public String - Kubeconfig data with public network access, returned in BASE64 encoding, it is suggested to use vke_kubeconfig instead.
- kubernetes
Version 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. - logging
Config Property Map - Cluster log configuration information.
- name String
- The name of the cluster.
- pods
Config Property Map - The config of the pods.
- services
Config Property Map - The config of the services.
- List<Property Map>
- Tags.
Supporting Types
ClusterClusterConfig, ClusterClusterConfigArgs
- Subnet
Ids 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.
- 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
true
orfalse
. - Ip
Family string - Resource
Public boolAccess Default Enabled - Node public network access configuration, the value is
true
orfalse
.
- Subnet
Ids []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.
- 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
true
orfalse
. - Ip
Family string - Resource
Public boolAccess Default Enabled - Node public network access configuration, the value is
true
orfalse
.
- subnet
Ids 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.
- api
Server ClusterPublic Access Config Cluster Config Api Server Public Access Config - Cluster API Server public network access configuration.
- api
Server BooleanPublic Access Enabled - Cluster API Server public network access configuration, the value is
true
orfalse
. - ip
Family String - resource
Public BooleanAccess Default Enabled - Node public network access configuration, the value is
true
orfalse
.
- subnet
Ids 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.
- api
Server ClusterPublic Access Config Cluster Config Api Server Public Access Config - Cluster API Server public network access configuration.
- api
Server booleanPublic Access Enabled - Cluster API Server public network access configuration, the value is
true
orfalse
. - ip
Family string - resource
Public booleanAccess Default Enabled - Node public network access configuration, the value is
true
orfalse
.
- 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
true
orfalse
. - ip_
family str - resource_
public_ boolaccess_ default_ enabled - Node public network access configuration, the value is
true
orfalse
.
- subnet
Ids 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.
- api
Server Property MapPublic Access Config - Cluster API Server public network access configuration.
- api
Server BooleanPublic Access Enabled - Cluster API Server public network access configuration, the value is
true
orfalse
. - ip
Family String - resource
Public BooleanAccess Default Enabled - Node public network access configuration, the value is
true
orfalse
.
ClusterClusterConfigApiServerPublicAccessConfig, ClusterClusterConfigApiServerPublicAccessConfigArgs
- Public
Access 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.
- public
Access 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.
- public_
access_ Clusternetwork_ config Cluster Config Api Server Public Access Config Public Access Network Config - Public network access network configuration.
- public
Access Property MapNetwork Config - Public network access network configuration.
ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfig, ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs
- Bandwidth int
- The peak bandwidth of the public IP, unit: Mbps.
- Billing
Type string - Billing type of public IP, the value is
PostPaidByBandwidth
orPostPaidByTraffic
.
- Bandwidth int
- The peak bandwidth of the public IP, unit: Mbps.
- Billing
Type string - Billing type of public IP, the value is
PostPaidByBandwidth
orPostPaidByTraffic
.
- bandwidth Integer
- The peak bandwidth of the public IP, unit: Mbps.
- billing
Type String - Billing type of public IP, the value is
PostPaidByBandwidth
orPostPaidByTraffic
.
- bandwidth number
- The peak bandwidth of the public IP, unit: Mbps.
- billing
Type string - Billing type of public IP, the value is
PostPaidByBandwidth
orPostPaidByTraffic
.
- bandwidth int
- The peak bandwidth of the public IP, unit: Mbps.
- billing_
type str - Billing type of public IP, the value is
PostPaidByBandwidth
orPostPaidByTraffic
.
- bandwidth Number
- The peak bandwidth of the public IP, unit: Mbps.
- billing
Type String - Billing type of public IP, the value is
PostPaidByBandwidth
orPostPaidByTraffic
.
ClusterLoggingConfig, ClusterLoggingConfigArgs
- Log
Project stringId - The TLS log item ID of the collection target.
- Log
Setups 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 deleted
error, please query the log setups of the current cluster and fill in the currenttf
file.
- Log
Project stringId - The TLS log item ID of the collection target.
- Log
Setups []ClusterLogging Config Log Setup - 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 currenttf
file.
- log
Project StringId - The TLS log item ID of the collection target.
- log
Setups 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 deleted
error, please query the log setups of the current cluster and fill in the currenttf
file.
- log
Project stringId - The TLS log item ID of the collection target.
- log
Setups ClusterLogging Config Log Setup[] - 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 currenttf
file.
- 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 deleted
error, please query the log setups of the current cluster and fill in the currenttf
file.
- log
Project StringId - The TLS log item ID of the collection target.
- log
Setups 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 currenttf
file.
ClusterLoggingConfigLogSetup, ClusterLoggingConfigLogSetupArgs
- Log
Type 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.
- 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.
- Log
Type 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.
- 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.
- log
Type 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.
- log
Ttl 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.
- log
Type 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.
- log
Ttl 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.
- log
Type 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.
- log
Ttl 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
- Pod
Network stringMode - The container network model of the cluster, the value is
Flannel
orVpcCniShared
. 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.
- Pod
Network stringMode - The container network model of the cluster, the value is
Flannel
orVpcCniShared
. 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.
- pod
Network StringMode - The container network model of the cluster, the value is
Flannel
orVpcCniShared
. 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.
- pod
Network stringMode - The container network model of the cluster, the value is
Flannel
orVpcCniShared
. 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.
- pod_
network_ strmode - The container network model of the cluster, the value is
Flannel
orVpcCniShared
. 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.
- pod
Network StringMode - The container network model of the cluster, the value is
Flannel
orVpcCniShared
. 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 Property Map - Flannel network configuration.
- vpc
Cni Property MapConfig - VPC-CNI network configuration.
ClusterPodsConfigFlannelConfig, ClusterPodsConfigFlannelConfigArgs
- Max
Pods intPer Node - The maximum number of single-node Pod instances for a Flannel container network, the value can be
16
or32
or64
or128
or256
. - Pod
Cidrs List<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
16
or32
or64
or128
or256
. - Pod
Cidrs []string - Pod CIDR for the Flannel container network.
- max
Pods IntegerPer Node - The maximum number of single-node Pod instances for a Flannel container network, the value can be
16
or32
or64
or128
or256
. - pod
Cidrs List<String> - Pod CIDR for the Flannel container network.
- max
Pods numberPer Node - The maximum number of single-node Pod instances for a Flannel container network, the value can be
16
or32
or64
or128
or256
. - pod
Cidrs 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
16
or32
or64
or128
or256
. - pod_
cidrs Sequence[str] - Pod CIDR for the Flannel container network.
- max
Pods NumberPer Node - The maximum number of single-node Pod instances for a Flannel container network, the value can be
16
or32
or64
or128
or256
. - pod
Cidrs 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
- Service
Cidrsv4s List<string> - The IPv4 private network address exposed by the service.
- Service
Cidrsv4s []string - The IPv4 private network address exposed by the service.
- service
Cidrsv4s List<String> - The IPv4 private network address exposed by the service.
- service
Cidrsv4s string[] - The IPv4 private network address exposed by the service.
- service_
cidrsv4s Sequence[str] - The IPv4 private network address exposed by the service.
- service
Cidrsv4s 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
volcengine
Terraform Provider.