tencentcloud.KubernetesClusterAttachment
Explore with Pulumi AI
Provide a resource to attach an existing cvm to kubernetes cluster.
NOTE: Use
unschedulable
to set whether the join node participates in the schedule. Theis_schedule
of ‘worker_config’ and ‘worker_config_overrides’ was deprecated.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const config = new pulumi.Config();
const availabilityZone = config.get("availabilityZone") || "ap-guangzhou-3";
const clusterCidr = config.get("clusterCidr") || "172.16.0.0/16";
const defaultInstanceType = config.get("defaultInstanceType") || "S1.SMALL1";
const defaultImages = tencentcloud.getImages({
imageTypes: ["PUBLIC_IMAGE"],
osName: "centos",
});
const vpc = tencentcloud.getVpcSubnets({
isDefault: true,
availabilityZone: availabilityZone,
});
const defaultInstanceTypes = tencentcloud.getInstanceTypes({
filters: [{
name: "instance-family",
values: ["SA2"],
}],
cpuCoreCount: 8,
memorySize: 16,
});
const foo = new tencentcloud.Instance("foo", {
instanceName: "tf-auto-test-1-1",
availabilityZone: availabilityZone,
imageId: defaultImages.then(defaultImages => defaultImages.images?.[0]?.imageId),
instanceType: defaultInstanceType,
systemDiskType: "CLOUD_PREMIUM",
systemDiskSize: 50,
});
const managedCluster = new tencentcloud.KubernetesCluster("managedCluster", {
vpcId: vpc.then(vpc => vpc.instanceLists?.[0]?.vpcId),
clusterCidr: "10.1.0.0/16",
clusterMaxPodNum: 32,
clusterName: "keep",
clusterDesc: "test cluster desc",
clusterMaxServiceNum: 32,
workerConfigs: [{
count: 1,
availabilityZone: availabilityZone,
instanceType: defaultInstanceType,
systemDiskType: "CLOUD_SSD",
systemDiskSize: 60,
internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
internetMaxBandwidthOut: 100,
publicIpAssigned: true,
subnetId: vpc.then(vpc => vpc.instanceLists?.[0]?.subnetId),
dataDisks: [{
diskType: "CLOUD_PREMIUM",
diskSize: 50,
}],
enhancedSecurityService: false,
enhancedMonitorService: false,
userData: "dGVzdA==",
password: "ZZXXccvv1212",
}],
clusterDeployType: "MANAGED_CLUSTER",
});
const testAttach = new tencentcloud.KubernetesClusterAttachment("testAttach", {
clusterId: managedCluster.kubernetesClusterId,
instanceId: foo.instanceId,
password: "Lo4wbdit",
labels: {
test1: "test1",
test2: "test2",
},
workerConfigOverrides: {
desiredPodNum: 8,
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
config = pulumi.Config()
availability_zone = config.get("availabilityZone")
if availability_zone is None:
availability_zone = "ap-guangzhou-3"
cluster_cidr = config.get("clusterCidr")
if cluster_cidr is None:
cluster_cidr = "172.16.0.0/16"
default_instance_type = config.get("defaultInstanceType")
if default_instance_type is None:
default_instance_type = "S1.SMALL1"
default_images = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
os_name="centos")
vpc = tencentcloud.get_vpc_subnets(is_default=True,
availability_zone=availability_zone)
default_instance_types = tencentcloud.get_instance_types(filters=[{
"name": "instance-family",
"values": ["SA2"],
}],
cpu_core_count=8,
memory_size=16)
foo = tencentcloud.Instance("foo",
instance_name="tf-auto-test-1-1",
availability_zone=availability_zone,
image_id=default_images.images[0].image_id,
instance_type=default_instance_type,
system_disk_type="CLOUD_PREMIUM",
system_disk_size=50)
managed_cluster = tencentcloud.KubernetesCluster("managedCluster",
vpc_id=vpc.instance_lists[0].vpc_id,
cluster_cidr="10.1.0.0/16",
cluster_max_pod_num=32,
cluster_name="keep",
cluster_desc="test cluster desc",
cluster_max_service_num=32,
worker_configs=[{
"count": 1,
"availability_zone": availability_zone,
"instance_type": default_instance_type,
"system_disk_type": "CLOUD_SSD",
"system_disk_size": 60,
"internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
"internet_max_bandwidth_out": 100,
"public_ip_assigned": True,
"subnet_id": vpc.instance_lists[0].subnet_id,
"data_disks": [{
"disk_type": "CLOUD_PREMIUM",
"disk_size": 50,
}],
"enhanced_security_service": False,
"enhanced_monitor_service": False,
"user_data": "dGVzdA==",
"password": "ZZXXccvv1212",
}],
cluster_deploy_type="MANAGED_CLUSTER")
test_attach = tencentcloud.KubernetesClusterAttachment("testAttach",
cluster_id=managed_cluster.kubernetes_cluster_id,
instance_id=foo.instance_id,
password="Lo4wbdit",
labels={
"test1": "test1",
"test2": "test2",
},
worker_config_overrides={
"desired_pod_num": 8,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
availabilityZone := "ap-guangzhou-3"
if param := cfg.Get("availabilityZone"); param != "" {
availabilityZone = param
}
clusterCidr := "172.16.0.0/16"
if param := cfg.Get("clusterCidr"); param != "" {
clusterCidr = param
}
defaultInstanceType := "S1.SMALL1"
if param := cfg.Get("defaultInstanceType"); param != "" {
defaultInstanceType = param
}
defaultImages, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
ImageTypes: []string{
"PUBLIC_IMAGE",
},
OsName: pulumi.StringRef("centos"),
}, nil)
if err != nil {
return err
}
vpc, err := tencentcloud.GetVpcSubnets(ctx, &tencentcloud.GetVpcSubnetsArgs{
IsDefault: pulumi.BoolRef(true),
AvailabilityZone: pulumi.StringRef(availabilityZone),
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.GetInstanceTypes(ctx, &tencentcloud.GetInstanceTypesArgs{
Filters: []tencentcloud.GetInstanceTypesFilter{
{
Name: "instance-family",
Values: []string{
"SA2",
},
},
},
CpuCoreCount: pulumi.Float64Ref(8),
MemorySize: pulumi.Float64Ref(16),
}, nil)
if err != nil {
return err
}
foo, err := tencentcloud.NewInstance(ctx, "foo", &tencentcloud.InstanceArgs{
InstanceName: pulumi.String("tf-auto-test-1-1"),
AvailabilityZone: pulumi.String(availabilityZone),
ImageId: pulumi.String(defaultImages.Images[0].ImageId),
InstanceType: pulumi.String(defaultInstanceType),
SystemDiskType: pulumi.String("CLOUD_PREMIUM"),
SystemDiskSize: pulumi.Float64(50),
})
if err != nil {
return err
}
managedCluster, err := tencentcloud.NewKubernetesCluster(ctx, "managedCluster", &tencentcloud.KubernetesClusterArgs{
VpcId: pulumi.String(vpc.InstanceLists[0].VpcId),
ClusterCidr: pulumi.String("10.1.0.0/16"),
ClusterMaxPodNum: pulumi.Float64(32),
ClusterName: pulumi.String("keep"),
ClusterDesc: pulumi.String("test cluster desc"),
ClusterMaxServiceNum: pulumi.Float64(32),
WorkerConfigs: tencentcloud.KubernetesClusterWorkerConfigArray{
&tencentcloud.KubernetesClusterWorkerConfigArgs{
Count: pulumi.Float64(1),
AvailabilityZone: pulumi.String(availabilityZone),
InstanceType: pulumi.String(defaultInstanceType),
SystemDiskType: pulumi.String("CLOUD_SSD"),
SystemDiskSize: pulumi.Float64(60),
InternetChargeType: pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
InternetMaxBandwidthOut: pulumi.Float64(100),
PublicIpAssigned: pulumi.Bool(true),
SubnetId: pulumi.String(vpc.InstanceLists[0].SubnetId),
DataDisks: tencentcloud.KubernetesClusterWorkerConfigDataDiskArray{
&tencentcloud.KubernetesClusterWorkerConfigDataDiskArgs{
DiskType: pulumi.String("CLOUD_PREMIUM"),
DiskSize: pulumi.Float64(50),
},
},
EnhancedSecurityService: pulumi.Bool(false),
EnhancedMonitorService: pulumi.Bool(false),
UserData: pulumi.String("dGVzdA=="),
Password: pulumi.String("ZZXXccvv1212"),
},
},
ClusterDeployType: pulumi.String("MANAGED_CLUSTER"),
})
if err != nil {
return err
}
_, err = tencentcloud.NewKubernetesClusterAttachment(ctx, "testAttach", &tencentcloud.KubernetesClusterAttachmentArgs{
ClusterId: managedCluster.KubernetesClusterId,
InstanceId: foo.InstanceId,
Password: pulumi.String("Lo4wbdit"),
Labels: pulumi.StringMap{
"test1": pulumi.String("test1"),
"test2": pulumi.String("test2"),
},
WorkerConfigOverrides: &tencentcloud.KubernetesClusterAttachmentWorkerConfigOverridesArgs{
DesiredPodNum: pulumi.Float64(8),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var availabilityZone = config.Get("availabilityZone") ?? "ap-guangzhou-3";
var clusterCidr = config.Get("clusterCidr") ?? "172.16.0.0/16";
var defaultInstanceType = config.Get("defaultInstanceType") ?? "S1.SMALL1";
var defaultImages = Tencentcloud.GetImages.Invoke(new()
{
ImageTypes = new[]
{
"PUBLIC_IMAGE",
},
OsName = "centos",
});
var vpc = Tencentcloud.GetVpcSubnets.Invoke(new()
{
IsDefault = true,
AvailabilityZone = availabilityZone,
});
var defaultInstanceTypes = Tencentcloud.GetInstanceTypes.Invoke(new()
{
Filters = new[]
{
new Tencentcloud.Inputs.GetInstanceTypesFilterInputArgs
{
Name = "instance-family",
Values = new[]
{
"SA2",
},
},
},
CpuCoreCount = 8,
MemorySize = 16,
});
var foo = new Tencentcloud.Instance("foo", new()
{
InstanceName = "tf-auto-test-1-1",
AvailabilityZone = availabilityZone,
ImageId = defaultImages.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
InstanceType = defaultInstanceType,
SystemDiskType = "CLOUD_PREMIUM",
SystemDiskSize = 50,
});
var managedCluster = new Tencentcloud.KubernetesCluster("managedCluster", new()
{
VpcId = vpc.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.VpcId),
ClusterCidr = "10.1.0.0/16",
ClusterMaxPodNum = 32,
ClusterName = "keep",
ClusterDesc = "test cluster desc",
ClusterMaxServiceNum = 32,
WorkerConfigs = new[]
{
new Tencentcloud.Inputs.KubernetesClusterWorkerConfigArgs
{
Count = 1,
AvailabilityZone = availabilityZone,
InstanceType = defaultInstanceType,
SystemDiskType = "CLOUD_SSD",
SystemDiskSize = 60,
InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
InternetMaxBandwidthOut = 100,
PublicIpAssigned = true,
SubnetId = vpc.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.SubnetId),
DataDisks = new[]
{
new Tencentcloud.Inputs.KubernetesClusterWorkerConfigDataDiskArgs
{
DiskType = "CLOUD_PREMIUM",
DiskSize = 50,
},
},
EnhancedSecurityService = false,
EnhancedMonitorService = false,
UserData = "dGVzdA==",
Password = "ZZXXccvv1212",
},
},
ClusterDeployType = "MANAGED_CLUSTER",
});
var testAttach = new Tencentcloud.KubernetesClusterAttachment("testAttach", new()
{
ClusterId = managedCluster.KubernetesClusterId,
InstanceId = foo.InstanceId,
Password = "Lo4wbdit",
Labels =
{
{ "test1", "test1" },
{ "test2", "test2" },
},
WorkerConfigOverrides = new Tencentcloud.Inputs.KubernetesClusterAttachmentWorkerConfigOverridesArgs
{
DesiredPodNum = 8,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetImagesArgs;
import com.pulumi.tencentcloud.inputs.GetVpcSubnetsArgs;
import com.pulumi.tencentcloud.inputs.GetInstanceTypesArgs;
import com.pulumi.tencentcloud.Instance;
import com.pulumi.tencentcloud.InstanceArgs;
import com.pulumi.tencentcloud.KubernetesCluster;
import com.pulumi.tencentcloud.KubernetesClusterArgs;
import com.pulumi.tencentcloud.inputs.KubernetesClusterWorkerConfigArgs;
import com.pulumi.tencentcloud.KubernetesClusterAttachment;
import com.pulumi.tencentcloud.KubernetesClusterAttachmentArgs;
import com.pulumi.tencentcloud.inputs.KubernetesClusterAttachmentWorkerConfigOverridesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var availabilityZone = config.get("availabilityZone").orElse("ap-guangzhou-3");
final var clusterCidr = config.get("clusterCidr").orElse("172.16.0.0/16");
final var defaultInstanceType = config.get("defaultInstanceType").orElse("S1.SMALL1");
final var defaultImages = TencentcloudFunctions.getImages(GetImagesArgs.builder()
.imageTypes("PUBLIC_IMAGE")
.osName("centos")
.build());
final var vpc = TencentcloudFunctions.getVpcSubnets(GetVpcSubnetsArgs.builder()
.isDefault(true)
.availabilityZone(availabilityZone)
.build());
final var defaultInstanceTypes = TencentcloudFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
.filters(GetInstanceTypesFilterArgs.builder()
.name("instance-family")
.values("SA2")
.build())
.cpuCoreCount(8)
.memorySize(16)
.build());
var foo = new Instance("foo", InstanceArgs.builder()
.instanceName("tf-auto-test-1-1")
.availabilityZone(availabilityZone)
.imageId(defaultImages.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
.instanceType(defaultInstanceType)
.systemDiskType("CLOUD_PREMIUM")
.systemDiskSize(50)
.build());
var managedCluster = new KubernetesCluster("managedCluster", KubernetesClusterArgs.builder()
.vpcId(vpc.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].vpcId()))
.clusterCidr("10.1.0.0/16")
.clusterMaxPodNum(32)
.clusterName("keep")
.clusterDesc("test cluster desc")
.clusterMaxServiceNum(32)
.workerConfigs(KubernetesClusterWorkerConfigArgs.builder()
.count(1)
.availabilityZone(availabilityZone)
.instanceType(defaultInstanceType)
.systemDiskType("CLOUD_SSD")
.systemDiskSize(60)
.internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
.internetMaxBandwidthOut(100)
.publicIpAssigned(true)
.subnetId(vpc.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].subnetId()))
.dataDisks(KubernetesClusterWorkerConfigDataDiskArgs.builder()
.diskType("CLOUD_PREMIUM")
.diskSize(50)
.build())
.enhancedSecurityService(false)
.enhancedMonitorService(false)
.userData("dGVzdA==")
.password("ZZXXccvv1212")
.build())
.clusterDeployType("MANAGED_CLUSTER")
.build());
var testAttach = new KubernetesClusterAttachment("testAttach", KubernetesClusterAttachmentArgs.builder()
.clusterId(managedCluster.kubernetesClusterId())
.instanceId(foo.instanceId())
.password("Lo4wbdit")
.labels(Map.ofEntries(
Map.entry("test1", "test1"),
Map.entry("test2", "test2")
))
.workerConfigOverrides(KubernetesClusterAttachmentWorkerConfigOverridesArgs.builder()
.desiredPodNum(8)
.build())
.build());
}
}
configuration:
availabilityZone:
type: string
default: ap-guangzhou-3
clusterCidr:
type: string
default: 172.16.0.0/16
defaultInstanceType:
type: string
default: S1.SMALL1
resources:
foo:
type: tencentcloud:Instance
properties:
instanceName: tf-auto-test-1-1
availabilityZone: ${availabilityZone}
imageId: ${defaultImages.images[0].imageId}
instanceType: ${defaultInstanceType}
systemDiskType: CLOUD_PREMIUM
systemDiskSize: 50
managedCluster:
type: tencentcloud:KubernetesCluster
properties:
vpcId: ${vpc.instanceLists[0].vpcId}
clusterCidr: 10.1.0.0/16
clusterMaxPodNum: 32
clusterName: keep
clusterDesc: test cluster desc
clusterMaxServiceNum: 32
workerConfigs:
- count: 1
availabilityZone: ${availabilityZone}
instanceType: ${defaultInstanceType}
systemDiskType: CLOUD_SSD
systemDiskSize: 60
internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
internetMaxBandwidthOut: 100
publicIpAssigned: true
subnetId: ${vpc.instanceLists[0].subnetId}
dataDisks:
- diskType: CLOUD_PREMIUM
diskSize: 50
enhancedSecurityService: false
enhancedMonitorService: false
userData: dGVzdA==
password: ZZXXccvv1212
clusterDeployType: MANAGED_CLUSTER
testAttach:
type: tencentcloud:KubernetesClusterAttachment
properties:
clusterId: ${managedCluster.kubernetesClusterId}
instanceId: ${foo.instanceId}
password: Lo4wbdit
labels:
test1: test1
test2: test2
workerConfigOverrides:
desiredPodNum: 8
variables:
defaultImages:
fn::invoke:
function: tencentcloud:getImages
arguments:
imageTypes:
- PUBLIC_IMAGE
osName: centos
vpc:
fn::invoke:
function: tencentcloud:getVpcSubnets
arguments:
isDefault: true
availabilityZone: ${availabilityZone}
defaultInstanceTypes:
fn::invoke:
function: tencentcloud:getInstanceTypes
arguments:
filters:
- name: instance-family
values:
- SA2
cpuCoreCount: 8
memorySize: 16
Create KubernetesClusterAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubernetesClusterAttachment(name: string, args: KubernetesClusterAttachmentArgs, opts?: CustomResourceOptions);
@overload
def KubernetesClusterAttachment(resource_name: str,
args: KubernetesClusterAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KubernetesClusterAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
instance_id: Optional[str] = None,
hostname: Optional[str] = None,
image_id: Optional[str] = None,
key_ids: Optional[Sequence[str]] = None,
kubernetes_cluster_attachment_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
password: Optional[str] = None,
security_groups: Optional[Sequence[str]] = None,
unschedulable: Optional[float] = None,
worker_config: Optional[KubernetesClusterAttachmentWorkerConfigArgs] = None,
worker_config_overrides: Optional[KubernetesClusterAttachmentWorkerConfigOverridesArgs] = None)
func NewKubernetesClusterAttachment(ctx *Context, name string, args KubernetesClusterAttachmentArgs, opts ...ResourceOption) (*KubernetesClusterAttachment, error)
public KubernetesClusterAttachment(string name, KubernetesClusterAttachmentArgs args, CustomResourceOptions? opts = null)
public KubernetesClusterAttachment(String name, KubernetesClusterAttachmentArgs args)
public KubernetesClusterAttachment(String name, KubernetesClusterAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:KubernetesClusterAttachment
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 KubernetesClusterAttachmentArgs
- 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 KubernetesClusterAttachmentArgs
- 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 KubernetesClusterAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesClusterAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubernetesClusterAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
KubernetesClusterAttachment 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 KubernetesClusterAttachment resource accepts the following input properties:
- Cluster
Id string - ID of the cluster.
- Instance
Id string - ID of the CVM instance, this cvm will reinstall the system.
- Hostname string
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- Image
Id string - ID of Node image.
- Key
Ids List<string> - The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if
password
not set. - Kubernetes
Cluster stringAttachment Id - ID of the resource.
- Labels Dictionary<string, string>
- Labels of tke attachment exits CVM.
- Password string
- Password to access, should be set if
key_ids
not set. - Security
Groups List<string> - A list of security group IDs after attach to cluster.
- Unschedulable double
- Sets whether the joining node participates in the schedule. Default is
0
, which means it participates in scheduling. Non-zero(eg:1
) number means it does not participate in scheduling. - Worker
Config KubernetesCluster Attachment Worker Config - Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
- Worker
Config KubernetesOverrides Cluster Attachment Worker Config Overrides - Override variable worker_config, commonly used to attach existing instances.
- Cluster
Id string - ID of the cluster.
- Instance
Id string - ID of the CVM instance, this cvm will reinstall the system.
- Hostname string
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- Image
Id string - ID of Node image.
- Key
Ids []string - The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if
password
not set. - Kubernetes
Cluster stringAttachment Id - ID of the resource.
- Labels map[string]string
- Labels of tke attachment exits CVM.
- Password string
- Password to access, should be set if
key_ids
not set. - Security
Groups []string - A list of security group IDs after attach to cluster.
- Unschedulable float64
- Sets whether the joining node participates in the schedule. Default is
0
, which means it participates in scheduling. Non-zero(eg:1
) number means it does not participate in scheduling. - Worker
Config KubernetesCluster Attachment Worker Config Args - Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
- Worker
Config KubernetesOverrides Cluster Attachment Worker Config Overrides Args - Override variable worker_config, commonly used to attach existing instances.
- cluster
Id String - ID of the cluster.
- instance
Id String - ID of the CVM instance, this cvm will reinstall the system.
- hostname String
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- image
Id String - ID of Node image.
- key
Ids List<String> - The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if
password
not set. - kubernetes
Cluster StringAttachment Id - ID of the resource.
- labels Map<String,String>
- Labels of tke attachment exits CVM.
- password String
- Password to access, should be set if
key_ids
not set. - security
Groups List<String> - A list of security group IDs after attach to cluster.
- unschedulable Double
- Sets whether the joining node participates in the schedule. Default is
0
, which means it participates in scheduling. Non-zero(eg:1
) number means it does not participate in scheduling. - worker
Config KubernetesCluster Attachment Worker Config - Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
- worker
Config KubernetesOverrides Cluster Attachment Worker Config Overrides - Override variable worker_config, commonly used to attach existing instances.
- cluster
Id string - ID of the cluster.
- instance
Id string - ID of the CVM instance, this cvm will reinstall the system.
- hostname string
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- image
Id string - ID of Node image.
- key
Ids string[] - The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if
password
not set. - kubernetes
Cluster stringAttachment Id - ID of the resource.
- labels {[key: string]: string}
- Labels of tke attachment exits CVM.
- password string
- Password to access, should be set if
key_ids
not set. - security
Groups string[] - A list of security group IDs after attach to cluster.
- unschedulable number
- Sets whether the joining node participates in the schedule. Default is
0
, which means it participates in scheduling. Non-zero(eg:1
) number means it does not participate in scheduling. - worker
Config KubernetesCluster Attachment Worker Config - Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
- worker
Config KubernetesOverrides Cluster Attachment Worker Config Overrides - Override variable worker_config, commonly used to attach existing instances.
- cluster_
id str - ID of the cluster.
- instance_
id str - ID of the CVM instance, this cvm will reinstall the system.
- hostname str
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- image_
id str - ID of Node image.
- key_
ids Sequence[str] - The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if
password
not set. - kubernetes_
cluster_ strattachment_ id - ID of the resource.
- labels Mapping[str, str]
- Labels of tke attachment exits CVM.
- password str
- Password to access, should be set if
key_ids
not set. - security_
groups Sequence[str] - A list of security group IDs after attach to cluster.
- unschedulable float
- Sets whether the joining node participates in the schedule. Default is
0
, which means it participates in scheduling. Non-zero(eg:1
) number means it does not participate in scheduling. - worker_
config KubernetesCluster Attachment Worker Config Args - Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
- worker_
config_ Kubernetesoverrides Cluster Attachment Worker Config Overrides Args - Override variable worker_config, commonly used to attach existing instances.
- cluster
Id String - ID of the cluster.
- instance
Id String - ID of the CVM instance, this cvm will reinstall the system.
- hostname String
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- image
Id String - ID of Node image.
- key
Ids List<String> - The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if
password
not set. - kubernetes
Cluster StringAttachment Id - ID of the resource.
- labels Map<String>
- Labels of tke attachment exits CVM.
- password String
- Password to access, should be set if
key_ids
not set. - security
Groups List<String> - A list of security group IDs after attach to cluster.
- unschedulable Number
- Sets whether the joining node participates in the schedule. Default is
0
, which means it participates in scheduling. Non-zero(eg:1
) number means it does not participate in scheduling. - worker
Config Property Map - Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
- worker
Config Property MapOverrides - Override variable worker_config, commonly used to attach existing instances.
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesClusterAttachment resource produces the following output properties:
Look up Existing KubernetesClusterAttachment Resource
Get an existing KubernetesClusterAttachment 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?: KubernetesClusterAttachmentState, opts?: CustomResourceOptions): KubernetesClusterAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
hostname: Optional[str] = None,
image_id: Optional[str] = None,
instance_id: Optional[str] = None,
key_ids: Optional[Sequence[str]] = None,
kubernetes_cluster_attachment_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
password: Optional[str] = None,
security_groups: Optional[Sequence[str]] = None,
state: Optional[str] = None,
unschedulable: Optional[float] = None,
worker_config: Optional[KubernetesClusterAttachmentWorkerConfigArgs] = None,
worker_config_overrides: Optional[KubernetesClusterAttachmentWorkerConfigOverridesArgs] = None) -> KubernetesClusterAttachment
func GetKubernetesClusterAttachment(ctx *Context, name string, id IDInput, state *KubernetesClusterAttachmentState, opts ...ResourceOption) (*KubernetesClusterAttachment, error)
public static KubernetesClusterAttachment Get(string name, Input<string> id, KubernetesClusterAttachmentState? state, CustomResourceOptions? opts = null)
public static KubernetesClusterAttachment get(String name, Output<String> id, KubernetesClusterAttachmentState state, CustomResourceOptions options)
resources: _: type: tencentcloud:KubernetesClusterAttachment 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.
- Cluster
Id string - ID of the cluster.
- Hostname string
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- Image
Id string - ID of Node image.
- Instance
Id string - ID of the CVM instance, this cvm will reinstall the system.
- Key
Ids List<string> - The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if
password
not set. - Kubernetes
Cluster stringAttachment Id - ID of the resource.
- Labels Dictionary<string, string>
- Labels of tke attachment exits CVM.
- Password string
- Password to access, should be set if
key_ids
not set. - Security
Groups List<string> - A list of security group IDs after attach to cluster.
- State string
- State of the node.
- Unschedulable double
- Sets whether the joining node participates in the schedule. Default is
0
, which means it participates in scheduling. Non-zero(eg:1
) number means it does not participate in scheduling. - Worker
Config KubernetesCluster Attachment Worker Config - Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
- Worker
Config KubernetesOverrides Cluster Attachment Worker Config Overrides - Override variable worker_config, commonly used to attach existing instances.
- Cluster
Id string - ID of the cluster.
- Hostname string
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- Image
Id string - ID of Node image.
- Instance
Id string - ID of the CVM instance, this cvm will reinstall the system.
- Key
Ids []string - The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if
password
not set. - Kubernetes
Cluster stringAttachment Id - ID of the resource.
- Labels map[string]string
- Labels of tke attachment exits CVM.
- Password string
- Password to access, should be set if
key_ids
not set. - Security
Groups []string - A list of security group IDs after attach to cluster.
- State string
- State of the node.
- Unschedulable float64
- Sets whether the joining node participates in the schedule. Default is
0
, which means it participates in scheduling. Non-zero(eg:1
) number means it does not participate in scheduling. - Worker
Config KubernetesCluster Attachment Worker Config Args - Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
- Worker
Config KubernetesOverrides Cluster Attachment Worker Config Overrides Args - Override variable worker_config, commonly used to attach existing instances.
- cluster
Id String - ID of the cluster.
- hostname String
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- image
Id String - ID of Node image.
- instance
Id String - ID of the CVM instance, this cvm will reinstall the system.
- key
Ids List<String> - The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if
password
not set. - kubernetes
Cluster StringAttachment Id - ID of the resource.
- labels Map<String,String>
- Labels of tke attachment exits CVM.
- password String
- Password to access, should be set if
key_ids
not set. - security
Groups List<String> - A list of security group IDs after attach to cluster.
- state String
- State of the node.
- unschedulable Double
- Sets whether the joining node participates in the schedule. Default is
0
, which means it participates in scheduling. Non-zero(eg:1
) number means it does not participate in scheduling. - worker
Config KubernetesCluster Attachment Worker Config - Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
- worker
Config KubernetesOverrides Cluster Attachment Worker Config Overrides - Override variable worker_config, commonly used to attach existing instances.
- cluster
Id string - ID of the cluster.
- hostname string
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- image
Id string - ID of Node image.
- instance
Id string - ID of the CVM instance, this cvm will reinstall the system.
- key
Ids string[] - The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if
password
not set. - kubernetes
Cluster stringAttachment Id - ID of the resource.
- labels {[key: string]: string}
- Labels of tke attachment exits CVM.
- password string
- Password to access, should be set if
key_ids
not set. - security
Groups string[] - A list of security group IDs after attach to cluster.
- state string
- State of the node.
- unschedulable number
- Sets whether the joining node participates in the schedule. Default is
0
, which means it participates in scheduling. Non-zero(eg:1
) number means it does not participate in scheduling. - worker
Config KubernetesCluster Attachment Worker Config - Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
- worker
Config KubernetesOverrides Cluster Attachment Worker Config Overrides - Override variable worker_config, commonly used to attach existing instances.
- cluster_
id str - ID of the cluster.
- hostname str
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- image_
id str - ID of Node image.
- instance_
id str - ID of the CVM instance, this cvm will reinstall the system.
- key_
ids Sequence[str] - The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if
password
not set. - kubernetes_
cluster_ strattachment_ id - ID of the resource.
- labels Mapping[str, str]
- Labels of tke attachment exits CVM.
- password str
- Password to access, should be set if
key_ids
not set. - security_
groups Sequence[str] - A list of security group IDs after attach to cluster.
- state str
- State of the node.
- unschedulable float
- Sets whether the joining node participates in the schedule. Default is
0
, which means it participates in scheduling. Non-zero(eg:1
) number means it does not participate in scheduling. - worker_
config KubernetesCluster Attachment Worker Config Args - Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
- worker_
config_ Kubernetesoverrides Cluster Attachment Worker Config Overrides Args - Override variable worker_config, commonly used to attach existing instances.
- cluster
Id String - ID of the cluster.
- hostname String
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- image
Id String - ID of Node image.
- instance
Id String - ID of the CVM instance, this cvm will reinstall the system.
- key
Ids List<String> - The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if
password
not set. - kubernetes
Cluster StringAttachment Id - ID of the resource.
- labels Map<String>
- Labels of tke attachment exits CVM.
- password String
- Password to access, should be set if
key_ids
not set. - security
Groups List<String> - A list of security group IDs after attach to cluster.
- state String
- State of the node.
- unschedulable Number
- Sets whether the joining node participates in the schedule. Default is
0
, which means it participates in scheduling. Non-zero(eg:1
) number means it does not participate in scheduling. - worker
Config Property Map - Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
- worker
Config Property MapOverrides - Override variable worker_config, commonly used to attach existing instances.
Supporting Types
KubernetesClusterAttachmentWorkerConfig, KubernetesClusterAttachmentWorkerConfigArgs
- Data
Disks List<KubernetesCluster Attachment Worker Config Data Disk> - Configurations of data disk.
- Desired
Pod doubleNum - Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- Docker
Graph stringPath - Docker graph path. Default is
/var/lib/docker
. - Extra
Args List<string> - Custom parameter information related to the node. This is a white-list parameter.
- Gpu
Args KubernetesCluster Attachment Worker Config Gpu Args - GPU driver parameters.
- Is
Schedule bool - This argument was deprecated, use
unschedulable
instead. Indicate to schedule the adding node or not. Default is true. - Mount
Target string - Mount target. Default is not mounting.
- Pre
Start stringUser Script - Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- Taints
List<Kubernetes
Cluster Attachment Worker Config Taint> - Node taint.
- User
Data string - Base64-encoded User Data text, the length limit is 16KB.
- Data
Disks []KubernetesCluster Attachment Worker Config Data Disk - Configurations of data disk.
- Desired
Pod float64Num - Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- Docker
Graph stringPath - Docker graph path. Default is
/var/lib/docker
. - Extra
Args []string - Custom parameter information related to the node. This is a white-list parameter.
- Gpu
Args KubernetesCluster Attachment Worker Config Gpu Args - GPU driver parameters.
- Is
Schedule bool - This argument was deprecated, use
unschedulable
instead. Indicate to schedule the adding node or not. Default is true. - Mount
Target string - Mount target. Default is not mounting.
- Pre
Start stringUser Script - Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- Taints
[]Kubernetes
Cluster Attachment Worker Config Taint - Node taint.
- User
Data string - Base64-encoded User Data text, the length limit is 16KB.
- data
Disks List<KubernetesCluster Attachment Worker Config Data Disk> - Configurations of data disk.
- desired
Pod DoubleNum - Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- docker
Graph StringPath - Docker graph path. Default is
/var/lib/docker
. - extra
Args List<String> - Custom parameter information related to the node. This is a white-list parameter.
- gpu
Args KubernetesCluster Attachment Worker Config Gpu Args - GPU driver parameters.
- is
Schedule Boolean - This argument was deprecated, use
unschedulable
instead. Indicate to schedule the adding node or not. Default is true. - mount
Target String - Mount target. Default is not mounting.
- pre
Start StringUser Script - Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- taints
List<Kubernetes
Cluster Attachment Worker Config Taint> - Node taint.
- user
Data String - Base64-encoded User Data text, the length limit is 16KB.
- data
Disks KubernetesCluster Attachment Worker Config Data Disk[] - Configurations of data disk.
- desired
Pod numberNum - Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- docker
Graph stringPath - Docker graph path. Default is
/var/lib/docker
. - extra
Args string[] - Custom parameter information related to the node. This is a white-list parameter.
- gpu
Args KubernetesCluster Attachment Worker Config Gpu Args - GPU driver parameters.
- is
Schedule boolean - This argument was deprecated, use
unschedulable
instead. Indicate to schedule the adding node or not. Default is true. - mount
Target string - Mount target. Default is not mounting.
- pre
Start stringUser Script - Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- taints
Kubernetes
Cluster Attachment Worker Config Taint[] - Node taint.
- user
Data string - Base64-encoded User Data text, the length limit is 16KB.
- data_
disks Sequence[KubernetesCluster Attachment Worker Config Data Disk] - Configurations of data disk.
- desired_
pod_ floatnum - Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- docker_
graph_ strpath - Docker graph path. Default is
/var/lib/docker
. - extra_
args Sequence[str] - Custom parameter information related to the node. This is a white-list parameter.
- gpu_
args KubernetesCluster Attachment Worker Config Gpu Args - GPU driver parameters.
- is_
schedule bool - This argument was deprecated, use
unschedulable
instead. Indicate to schedule the adding node or not. Default is true. - mount_
target str - Mount target. Default is not mounting.
- pre_
start_ struser_ script - Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- taints
Sequence[Kubernetes
Cluster Attachment Worker Config Taint] - Node taint.
- user_
data str - Base64-encoded User Data text, the length limit is 16KB.
- data
Disks List<Property Map> - Configurations of data disk.
- desired
Pod NumberNum - Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- docker
Graph StringPath - Docker graph path. Default is
/var/lib/docker
. - extra
Args List<String> - Custom parameter information related to the node. This is a white-list parameter.
- gpu
Args Property Map - GPU driver parameters.
- is
Schedule Boolean - This argument was deprecated, use
unschedulable
instead. Indicate to schedule the adding node or not. Default is true. - mount
Target String - Mount target. Default is not mounting.
- pre
Start StringUser Script - Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- taints List<Property Map>
- Node taint.
- user
Data String - Base64-encoded User Data text, the length limit is 16KB.
KubernetesClusterAttachmentWorkerConfigDataDisk, KubernetesClusterAttachmentWorkerConfigDataDiskArgs
- Auto
Format boolAnd Mount - Indicate whether to auto format and mount or not. Default is
false
. - Disk
Partition string - The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
- Disk
Size double - Volume of disk in GB. Default is
0
. - Disk
Type string - Types of disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
andCLOUD_BSSD
. - File
System string - File system, e.g.
ext3/ext4/xfs
. - Mount
Target string - Mount target.
- Auto
Format boolAnd Mount - Indicate whether to auto format and mount or not. Default is
false
. - Disk
Partition string - The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
- Disk
Size float64 - Volume of disk in GB. Default is
0
. - Disk
Type string - Types of disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
andCLOUD_BSSD
. - File
System string - File system, e.g.
ext3/ext4/xfs
. - Mount
Target string - Mount target.
- auto
Format BooleanAnd Mount - Indicate whether to auto format and mount or not. Default is
false
. - disk
Partition String - The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
- disk
Size Double - Volume of disk in GB. Default is
0
. - disk
Type String - Types of disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
andCLOUD_BSSD
. - file
System String - File system, e.g.
ext3/ext4/xfs
. - mount
Target String - Mount target.
- auto
Format booleanAnd Mount - Indicate whether to auto format and mount or not. Default is
false
. - disk
Partition string - The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
- disk
Size number - Volume of disk in GB. Default is
0
. - disk
Type string - Types of disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
andCLOUD_BSSD
. - file
System string - File system, e.g.
ext3/ext4/xfs
. - mount
Target string - Mount target.
- auto_
format_ booland_ mount - Indicate whether to auto format and mount or not. Default is
false
. - disk_
partition str - The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
- disk_
size float - Volume of disk in GB. Default is
0
. - disk_
type str - Types of disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
andCLOUD_BSSD
. - file_
system str - File system, e.g.
ext3/ext4/xfs
. - mount_
target str - Mount target.
- auto
Format BooleanAnd Mount - Indicate whether to auto format and mount or not. Default is
false
. - disk
Partition String - The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
- disk
Size Number - Volume of disk in GB. Default is
0
. - disk
Type String - Types of disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
andCLOUD_BSSD
. - file
System String - File system, e.g.
ext3/ext4/xfs
. - mount
Target String - Mount target.
KubernetesClusterAttachmentWorkerConfigGpuArgs, KubernetesClusterAttachmentWorkerConfigGpuArgsArgs
- Cuda Dictionary<string, string>
- CUDA version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - Cudnn Dictionary<string, string>
- cuDNN version. Format like:
{ version: String, name: String, doc_name: String, dev_name: String }
.version
: cuDNN version;name
: cuDNN name;doc_name
: Doc name of cuDNN;dev_name
: Dev name of cuDNN. - Custom
Driver Dictionary<string, string> - Custom GPU driver. Format like:
{address: String}
.address
: URL of custom GPU driver address. - Driver Dictionary<string, string>
- GPU driver version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - Mig
Enable bool - Whether to enable MIG.
- Cuda map[string]string
- CUDA version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - Cudnn map[string]string
- cuDNN version. Format like:
{ version: String, name: String, doc_name: String, dev_name: String }
.version
: cuDNN version;name
: cuDNN name;doc_name
: Doc name of cuDNN;dev_name
: Dev name of cuDNN. - Custom
Driver map[string]string - Custom GPU driver. Format like:
{address: String}
.address
: URL of custom GPU driver address. - Driver map[string]string
- GPU driver version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - Mig
Enable bool - Whether to enable MIG.
- cuda Map<String,String>
- CUDA version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - cudnn Map<String,String>
- cuDNN version. Format like:
{ version: String, name: String, doc_name: String, dev_name: String }
.version
: cuDNN version;name
: cuDNN name;doc_name
: Doc name of cuDNN;dev_name
: Dev name of cuDNN. - custom
Driver Map<String,String> - Custom GPU driver. Format like:
{address: String}
.address
: URL of custom GPU driver address. - driver Map<String,String>
- GPU driver version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - mig
Enable Boolean - Whether to enable MIG.
- cuda {[key: string]: string}
- CUDA version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - cudnn {[key: string]: string}
- cuDNN version. Format like:
{ version: String, name: String, doc_name: String, dev_name: String }
.version
: cuDNN version;name
: cuDNN name;doc_name
: Doc name of cuDNN;dev_name
: Dev name of cuDNN. - custom
Driver {[key: string]: string} - Custom GPU driver. Format like:
{address: String}
.address
: URL of custom GPU driver address. - driver {[key: string]: string}
- GPU driver version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - mig
Enable boolean - Whether to enable MIG.
- cuda Mapping[str, str]
- CUDA version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - cudnn Mapping[str, str]
- cuDNN version. Format like:
{ version: String, name: String, doc_name: String, dev_name: String }
.version
: cuDNN version;name
: cuDNN name;doc_name
: Doc name of cuDNN;dev_name
: Dev name of cuDNN. - custom_
driver Mapping[str, str] - Custom GPU driver. Format like:
{address: String}
.address
: URL of custom GPU driver address. - driver Mapping[str, str]
- GPU driver version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - mig_
enable bool - Whether to enable MIG.
- cuda Map<String>
- CUDA version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - cudnn Map<String>
- cuDNN version. Format like:
{ version: String, name: String, doc_name: String, dev_name: String }
.version
: cuDNN version;name
: cuDNN name;doc_name
: Doc name of cuDNN;dev_name
: Dev name of cuDNN. - custom
Driver Map<String> - Custom GPU driver. Format like:
{address: String}
.address
: URL of custom GPU driver address. - driver Map<String>
- GPU driver version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - mig
Enable Boolean - Whether to enable MIG.
KubernetesClusterAttachmentWorkerConfigOverrides, KubernetesClusterAttachmentWorkerConfigOverridesArgs
- Data
Disks List<KubernetesCluster Attachment Worker Config Overrides Data Disk> - Configurations of data disk.
- Desired
Pod doubleNum - Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- Docker
Graph stringPath - This argument was no longer supported by TencentCloud TKE. Docker graph path. Default is
/var/lib/docker
. - Extra
Args List<string> - This argument was no longer supported by TencentCloud TKE. Custom parameter information related to the node. This is a white-list parameter.
- Gpu
Args KubernetesCluster Attachment Worker Config Overrides Gpu Args - GPU driver parameters.
- Is
Schedule bool - This argument was deprecated, use
unschedulable
instead. Indicate to schedule the adding node or not. Default is true. - Mount
Target string - This argument was no longer supported by TencentCloud TKE. Mount target. Default is not mounting.
- Pre
Start stringUser Script - This argument was no longer supported by TencentCloud TKE. Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- User
Data string - This argument was no longer supported by TencentCloud TKE. Base64-encoded User Data text, the length limit is 16KB.
- Data
Disks []KubernetesCluster Attachment Worker Config Overrides Data Disk - Configurations of data disk.
- Desired
Pod float64Num - Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- Docker
Graph stringPath - This argument was no longer supported by TencentCloud TKE. Docker graph path. Default is
/var/lib/docker
. - Extra
Args []string - This argument was no longer supported by TencentCloud TKE. Custom parameter information related to the node. This is a white-list parameter.
- Gpu
Args KubernetesCluster Attachment Worker Config Overrides Gpu Args - GPU driver parameters.
- Is
Schedule bool - This argument was deprecated, use
unschedulable
instead. Indicate to schedule the adding node or not. Default is true. - Mount
Target string - This argument was no longer supported by TencentCloud TKE. Mount target. Default is not mounting.
- Pre
Start stringUser Script - This argument was no longer supported by TencentCloud TKE. Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- User
Data string - This argument was no longer supported by TencentCloud TKE. Base64-encoded User Data text, the length limit is 16KB.
- data
Disks List<KubernetesCluster Attachment Worker Config Overrides Data Disk> - Configurations of data disk.
- desired
Pod DoubleNum - Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- docker
Graph StringPath - This argument was no longer supported by TencentCloud TKE. Docker graph path. Default is
/var/lib/docker
. - extra
Args List<String> - This argument was no longer supported by TencentCloud TKE. Custom parameter information related to the node. This is a white-list parameter.
- gpu
Args KubernetesCluster Attachment Worker Config Overrides Gpu Args - GPU driver parameters.
- is
Schedule Boolean - This argument was deprecated, use
unschedulable
instead. Indicate to schedule the adding node or not. Default is true. - mount
Target String - This argument was no longer supported by TencentCloud TKE. Mount target. Default is not mounting.
- pre
Start StringUser Script - This argument was no longer supported by TencentCloud TKE. Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- user
Data String - This argument was no longer supported by TencentCloud TKE. Base64-encoded User Data text, the length limit is 16KB.
- data
Disks KubernetesCluster Attachment Worker Config Overrides Data Disk[] - Configurations of data disk.
- desired
Pod numberNum - Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- docker
Graph stringPath - This argument was no longer supported by TencentCloud TKE. Docker graph path. Default is
/var/lib/docker
. - extra
Args string[] - This argument was no longer supported by TencentCloud TKE. Custom parameter information related to the node. This is a white-list parameter.
- gpu
Args KubernetesCluster Attachment Worker Config Overrides Gpu Args - GPU driver parameters.
- is
Schedule boolean - This argument was deprecated, use
unschedulable
instead. Indicate to schedule the adding node or not. Default is true. - mount
Target string - This argument was no longer supported by TencentCloud TKE. Mount target. Default is not mounting.
- pre
Start stringUser Script - This argument was no longer supported by TencentCloud TKE. Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- user
Data string - This argument was no longer supported by TencentCloud TKE. Base64-encoded User Data text, the length limit is 16KB.
- data_
disks Sequence[KubernetesCluster Attachment Worker Config Overrides Data Disk] - Configurations of data disk.
- desired_
pod_ floatnum - Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- docker_
graph_ strpath - This argument was no longer supported by TencentCloud TKE. Docker graph path. Default is
/var/lib/docker
. - extra_
args Sequence[str] - This argument was no longer supported by TencentCloud TKE. Custom parameter information related to the node. This is a white-list parameter.
- gpu_
args KubernetesCluster Attachment Worker Config Overrides Gpu Args - GPU driver parameters.
- is_
schedule bool - This argument was deprecated, use
unschedulable
instead. Indicate to schedule the adding node or not. Default is true. - mount_
target str - This argument was no longer supported by TencentCloud TKE. Mount target. Default is not mounting.
- pre_
start_ struser_ script - This argument was no longer supported by TencentCloud TKE. Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- user_
data str - This argument was no longer supported by TencentCloud TKE. Base64-encoded User Data text, the length limit is 16KB.
- data
Disks List<Property Map> - Configurations of data disk.
- desired
Pod NumberNum - Indicate to set desired pod number in node. valid when the cluster is podCIDR.
- docker
Graph StringPath - This argument was no longer supported by TencentCloud TKE. Docker graph path. Default is
/var/lib/docker
. - extra
Args List<String> - This argument was no longer supported by TencentCloud TKE. Custom parameter information related to the node. This is a white-list parameter.
- gpu
Args Property Map - GPU driver parameters.
- is
Schedule Boolean - This argument was deprecated, use
unschedulable
instead. Indicate to schedule the adding node or not. Default is true. - mount
Target String - This argument was no longer supported by TencentCloud TKE. Mount target. Default is not mounting.
- pre
Start StringUser Script - This argument was no longer supported by TencentCloud TKE. Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
- user
Data String - This argument was no longer supported by TencentCloud TKE. Base64-encoded User Data text, the length limit is 16KB.
KubernetesClusterAttachmentWorkerConfigOverridesDataDisk, KubernetesClusterAttachmentWorkerConfigOverridesDataDiskArgs
- Auto
Format boolAnd Mount - Indicate whether to auto format and mount or not. Default is
false
. - Disk
Partition string - The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
- Disk
Size double - Volume of disk in GB. Default is
0
. - Disk
Type string - Types of disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
andCLOUD_BSSD
. - File
System string - File system, e.g.
ext3/ext4/xfs
. - Mount
Target string - Mount target.
- Auto
Format boolAnd Mount - Indicate whether to auto format and mount or not. Default is
false
. - Disk
Partition string - The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
- Disk
Size float64 - Volume of disk in GB. Default is
0
. - Disk
Type string - Types of disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
andCLOUD_BSSD
. - File
System string - File system, e.g.
ext3/ext4/xfs
. - Mount
Target string - Mount target.
- auto
Format BooleanAnd Mount - Indicate whether to auto format and mount or not. Default is
false
. - disk
Partition String - The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
- disk
Size Double - Volume of disk in GB. Default is
0
. - disk
Type String - Types of disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
andCLOUD_BSSD
. - file
System String - File system, e.g.
ext3/ext4/xfs
. - mount
Target String - Mount target.
- auto
Format booleanAnd Mount - Indicate whether to auto format and mount or not. Default is
false
. - disk
Partition string - The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
- disk
Size number - Volume of disk in GB. Default is
0
. - disk
Type string - Types of disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
andCLOUD_BSSD
. - file
System string - File system, e.g.
ext3/ext4/xfs
. - mount
Target string - Mount target.
- auto_
format_ booland_ mount - Indicate whether to auto format and mount or not. Default is
false
. - disk_
partition str - The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
- disk_
size float - Volume of disk in GB. Default is
0
. - disk_
type str - Types of disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
andCLOUD_BSSD
. - file_
system str - File system, e.g.
ext3/ext4/xfs
. - mount_
target str - Mount target.
- auto
Format BooleanAnd Mount - Indicate whether to auto format and mount or not. Default is
false
. - disk
Partition String - The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
- disk
Size Number - Volume of disk in GB. Default is
0
. - disk
Type String - Types of disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
andCLOUD_BSSD
. - file
System String - File system, e.g.
ext3/ext4/xfs
. - mount
Target String - Mount target.
KubernetesClusterAttachmentWorkerConfigOverridesGpuArgs, KubernetesClusterAttachmentWorkerConfigOverridesGpuArgsArgs
- Cuda Dictionary<string, string>
- CUDA version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - Cudnn Dictionary<string, string>
- cuDNN version. Format like:
{ version: String, name: String, doc_name: String, dev_name: String }
.version
: cuDNN version;name
: cuDNN name;doc_name
: Doc name of cuDNN;dev_name
: Dev name of cuDNN. - Custom
Driver Dictionary<string, string> - Custom GPU driver. Format like:
{address: String}
.address
: URL of custom GPU driver address. - Driver Dictionary<string, string>
- GPU driver version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - Mig
Enable bool - Whether to enable MIG.
- Cuda map[string]string
- CUDA version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - Cudnn map[string]string
- cuDNN version. Format like:
{ version: String, name: String, doc_name: String, dev_name: String }
.version
: cuDNN version;name
: cuDNN name;doc_name
: Doc name of cuDNN;dev_name
: Dev name of cuDNN. - Custom
Driver map[string]string - Custom GPU driver. Format like:
{address: String}
.address
: URL of custom GPU driver address. - Driver map[string]string
- GPU driver version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - Mig
Enable bool - Whether to enable MIG.
- cuda Map<String,String>
- CUDA version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - cudnn Map<String,String>
- cuDNN version. Format like:
{ version: String, name: String, doc_name: String, dev_name: String }
.version
: cuDNN version;name
: cuDNN name;doc_name
: Doc name of cuDNN;dev_name
: Dev name of cuDNN. - custom
Driver Map<String,String> - Custom GPU driver. Format like:
{address: String}
.address
: URL of custom GPU driver address. - driver Map<String,String>
- GPU driver version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - mig
Enable Boolean - Whether to enable MIG.
- cuda {[key: string]: string}
- CUDA version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - cudnn {[key: string]: string}
- cuDNN version. Format like:
{ version: String, name: String, doc_name: String, dev_name: String }
.version
: cuDNN version;name
: cuDNN name;doc_name
: Doc name of cuDNN;dev_name
: Dev name of cuDNN. - custom
Driver {[key: string]: string} - Custom GPU driver. Format like:
{address: String}
.address
: URL of custom GPU driver address. - driver {[key: string]: string}
- GPU driver version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - mig
Enable boolean - Whether to enable MIG.
- cuda Mapping[str, str]
- CUDA version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - cudnn Mapping[str, str]
- cuDNN version. Format like:
{ version: String, name: String, doc_name: String, dev_name: String }
.version
: cuDNN version;name
: cuDNN name;doc_name
: Doc name of cuDNN;dev_name
: Dev name of cuDNN. - custom_
driver Mapping[str, str] - Custom GPU driver. Format like:
{address: String}
.address
: URL of custom GPU driver address. - driver Mapping[str, str]
- GPU driver version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - mig_
enable bool - Whether to enable MIG.
- cuda Map<String>
- CUDA version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - cudnn Map<String>
- cuDNN version. Format like:
{ version: String, name: String, doc_name: String, dev_name: String }
.version
: cuDNN version;name
: cuDNN name;doc_name
: Doc name of cuDNN;dev_name
: Dev name of cuDNN. - custom
Driver Map<String> - Custom GPU driver. Format like:
{address: String}
.address
: URL of custom GPU driver address. - driver Map<String>
- GPU driver version. Format like:
{ version: String, name: String }
.version
: Version of GPU driver or CUDA;name
: Name of GPU driver or CUDA. - mig
Enable Boolean - Whether to enable MIG.
KubernetesClusterAttachmentWorkerConfigTaint, KubernetesClusterAttachmentWorkerConfigTaintArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.