tencentcloud.KubernetesScaleWorker
Explore with Pulumi AI
Provide a resource to increase instance to cluster
NOTE: To use the custom Kubernetes component startup parameter function (parameter
extra_args
), you need to submit a ticket for application.
NOTE: Import Node: Currently, only one node can be imported at a time.
NOTE: If you need to view error messages during instance creation, you can use parameter
create_result_output_file
to set the file save path
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 subnet = config.get("subnet") || "subnet-pqfek0t8";
const scaleInstanceType = config.get("scaleInstanceType") || "S2.LARGE16";
const example = new tencentcloud.KubernetesScaleWorker("example", {
clusterId: "cls-godovr32",
desiredPodNum: 16,
labels: {
test1: "test1",
test2: "test2",
},
workerConfig: {
count: 3,
availabilityZone: availabilityZone,
instanceType: scaleInstanceType,
subnetId: subnet,
systemDiskType: "CLOUD_SSD",
systemDiskSize: 50,
internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
internetMaxBandwidthOut: 100,
publicIpAssigned: true,
dataDisks: [{
diskType: "CLOUD_PREMIUM",
diskSize: 50,
}],
enhancedSecurityService: false,
enhancedMonitorService: false,
userData: "dGVzdA==",
password: "Password@123",
tags: [{
key: "createBy",
value: "Terraform",
}],
},
createResultOutputFile: "my_output_file_path",
});
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"
subnet = config.get("subnet")
if subnet is None:
subnet = "subnet-pqfek0t8"
scale_instance_type = config.get("scaleInstanceType")
if scale_instance_type is None:
scale_instance_type = "S2.LARGE16"
example = tencentcloud.KubernetesScaleWorker("example",
cluster_id="cls-godovr32",
desired_pod_num=16,
labels={
"test1": "test1",
"test2": "test2",
},
worker_config={
"count": 3,
"availability_zone": availability_zone,
"instance_type": scale_instance_type,
"subnet_id": subnet,
"system_disk_type": "CLOUD_SSD",
"system_disk_size": 50,
"internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
"internet_max_bandwidth_out": 100,
"public_ip_assigned": True,
"data_disks": [{
"disk_type": "CLOUD_PREMIUM",
"disk_size": 50,
}],
"enhanced_security_service": False,
"enhanced_monitor_service": False,
"user_data": "dGVzdA==",
"password": "Password@123",
"tags": [{
"key": "createBy",
"value": "Terraform",
}],
},
create_result_output_file="my_output_file_path")
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
}
subnet := "subnet-pqfek0t8"
if param := cfg.Get("subnet"); param != "" {
subnet = param
}
scaleInstanceType := "S2.LARGE16"
if param := cfg.Get("scaleInstanceType"); param != "" {
scaleInstanceType = param
}
_, err := tencentcloud.NewKubernetesScaleWorker(ctx, "example", &tencentcloud.KubernetesScaleWorkerArgs{
ClusterId: pulumi.String("cls-godovr32"),
DesiredPodNum: pulumi.Float64(16),
Labels: pulumi.StringMap{
"test1": pulumi.String("test1"),
"test2": pulumi.String("test2"),
},
WorkerConfig: &tencentcloud.KubernetesScaleWorkerWorkerConfigArgs{
Count: pulumi.Float64(3),
AvailabilityZone: pulumi.String(availabilityZone),
InstanceType: pulumi.String(scaleInstanceType),
SubnetId: pulumi.String(subnet),
SystemDiskType: pulumi.String("CLOUD_SSD"),
SystemDiskSize: pulumi.Float64(50),
InternetChargeType: pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
InternetMaxBandwidthOut: pulumi.Float64(100),
PublicIpAssigned: pulumi.Bool(true),
DataDisks: tencentcloud.KubernetesScaleWorkerWorkerConfigDataDiskArray{
&tencentcloud.KubernetesScaleWorkerWorkerConfigDataDiskArgs{
DiskType: pulumi.String("CLOUD_PREMIUM"),
DiskSize: pulumi.Float64(50),
},
},
EnhancedSecurityService: pulumi.Bool(false),
EnhancedMonitorService: pulumi.Bool(false),
UserData: pulumi.String("dGVzdA=="),
Password: pulumi.String("Password@123"),
Tags: tencentcloud.KubernetesScaleWorkerWorkerConfigTagArray{
&tencentcloud.KubernetesScaleWorkerWorkerConfigTagArgs{
Key: pulumi.String("createBy"),
Value: pulumi.String("Terraform"),
},
},
},
CreateResultOutputFile: pulumi.String("my_output_file_path"),
})
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 subnet = config.Get("subnet") ?? "subnet-pqfek0t8";
var scaleInstanceType = config.Get("scaleInstanceType") ?? "S2.LARGE16";
var example = new Tencentcloud.KubernetesScaleWorker("example", new()
{
ClusterId = "cls-godovr32",
DesiredPodNum = 16,
Labels =
{
{ "test1", "test1" },
{ "test2", "test2" },
},
WorkerConfig = new Tencentcloud.Inputs.KubernetesScaleWorkerWorkerConfigArgs
{
Count = 3,
AvailabilityZone = availabilityZone,
InstanceType = scaleInstanceType,
SubnetId = subnet,
SystemDiskType = "CLOUD_SSD",
SystemDiskSize = 50,
InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
InternetMaxBandwidthOut = 100,
PublicIpAssigned = true,
DataDisks = new[]
{
new Tencentcloud.Inputs.KubernetesScaleWorkerWorkerConfigDataDiskArgs
{
DiskType = "CLOUD_PREMIUM",
DiskSize = 50,
},
},
EnhancedSecurityService = false,
EnhancedMonitorService = false,
UserData = "dGVzdA==",
Password = "Password@123",
Tags = new[]
{
new Tencentcloud.Inputs.KubernetesScaleWorkerWorkerConfigTagArgs
{
Key = "createBy",
Value = "Terraform",
},
},
},
CreateResultOutputFile = "my_output_file_path",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.KubernetesScaleWorker;
import com.pulumi.tencentcloud.KubernetesScaleWorkerArgs;
import com.pulumi.tencentcloud.inputs.KubernetesScaleWorkerWorkerConfigArgs;
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 subnet = config.get("subnet").orElse("subnet-pqfek0t8");
final var scaleInstanceType = config.get("scaleInstanceType").orElse("S2.LARGE16");
var example = new KubernetesScaleWorker("example", KubernetesScaleWorkerArgs.builder()
.clusterId("cls-godovr32")
.desiredPodNum(16)
.labels(Map.ofEntries(
Map.entry("test1", "test1"),
Map.entry("test2", "test2")
))
.workerConfig(KubernetesScaleWorkerWorkerConfigArgs.builder()
.count(3)
.availabilityZone(availabilityZone)
.instanceType(scaleInstanceType)
.subnetId(subnet)
.systemDiskType("CLOUD_SSD")
.systemDiskSize(50)
.internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
.internetMaxBandwidthOut(100)
.publicIpAssigned(true)
.dataDisks(KubernetesScaleWorkerWorkerConfigDataDiskArgs.builder()
.diskType("CLOUD_PREMIUM")
.diskSize(50)
.build())
.enhancedSecurityService(false)
.enhancedMonitorService(false)
.userData("dGVzdA==")
.password("Password@123")
.tags(KubernetesScaleWorkerWorkerConfigTagArgs.builder()
.key("createBy")
.value("Terraform")
.build())
.build())
.createResultOutputFile("my_output_file_path")
.build());
}
}
configuration:
availabilityZone:
type: string
default: ap-guangzhou-3
subnet:
type: string
default: subnet-pqfek0t8
scaleInstanceType:
type: string
default: S2.LARGE16
resources:
example:
type: tencentcloud:KubernetesScaleWorker
properties:
clusterId: cls-godovr32
desiredPodNum: 16
labels:
test1: test1
test2: test2
workerConfig:
count: 3
availabilityZone: ${availabilityZone}
instanceType: ${scaleInstanceType}
subnetId: ${subnet}
systemDiskType: CLOUD_SSD
systemDiskSize: 50
internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
internetMaxBandwidthOut: 100
publicIpAssigned: true
dataDisks:
- diskType: CLOUD_PREMIUM
diskSize: 50
enhancedSecurityService: false
enhancedMonitorService: false
userData: dGVzdA==
password: Password@123
tags:
- key: createBy
value: Terraform
createResultOutputFile: my_output_file_path
Use Kubelet
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 subnet = config.get("subnet") || "subnet-pqfek0t8";
const scaleInstanceType = config.get("scaleInstanceType") || "S2.LARGE16";
const example = new tencentcloud.KubernetesScaleWorker("example", {
clusterId: "cls-godovr32",
extraArgs: ["root-dir=/var/lib/kubelet"],
labels: {
test1: "test1",
test2: "test2",
},
workerConfig: {
count: 3,
availabilityZone: availabilityZone,
instanceType: scaleInstanceType,
subnetId: subnet,
systemDiskType: "CLOUD_SSD",
systemDiskSize: 50,
internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
internetMaxBandwidthOut: 100,
publicIpAssigned: true,
dataDisks: [{
diskType: "CLOUD_PREMIUM",
diskSize: 50,
}],
enhancedSecurityService: false,
enhancedMonitorService: false,
userData: "dGVzdA==",
password: "Password@123",
},
});
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"
subnet = config.get("subnet")
if subnet is None:
subnet = "subnet-pqfek0t8"
scale_instance_type = config.get("scaleInstanceType")
if scale_instance_type is None:
scale_instance_type = "S2.LARGE16"
example = tencentcloud.KubernetesScaleWorker("example",
cluster_id="cls-godovr32",
extra_args=["root-dir=/var/lib/kubelet"],
labels={
"test1": "test1",
"test2": "test2",
},
worker_config={
"count": 3,
"availability_zone": availability_zone,
"instance_type": scale_instance_type,
"subnet_id": subnet,
"system_disk_type": "CLOUD_SSD",
"system_disk_size": 50,
"internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
"internet_max_bandwidth_out": 100,
"public_ip_assigned": True,
"data_disks": [{
"disk_type": "CLOUD_PREMIUM",
"disk_size": 50,
}],
"enhanced_security_service": False,
"enhanced_monitor_service": False,
"user_data": "dGVzdA==",
"password": "Password@123",
})
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
}
subnet := "subnet-pqfek0t8"
if param := cfg.Get("subnet"); param != "" {
subnet = param
}
scaleInstanceType := "S2.LARGE16"
if param := cfg.Get("scaleInstanceType"); param != "" {
scaleInstanceType = param
}
_, err := tencentcloud.NewKubernetesScaleWorker(ctx, "example", &tencentcloud.KubernetesScaleWorkerArgs{
ClusterId: pulumi.String("cls-godovr32"),
ExtraArgs: pulumi.StringArray{
pulumi.String("root-dir=/var/lib/kubelet"),
},
Labels: pulumi.StringMap{
"test1": pulumi.String("test1"),
"test2": pulumi.String("test2"),
},
WorkerConfig: &tencentcloud.KubernetesScaleWorkerWorkerConfigArgs{
Count: pulumi.Float64(3),
AvailabilityZone: pulumi.String(availabilityZone),
InstanceType: pulumi.String(scaleInstanceType),
SubnetId: pulumi.String(subnet),
SystemDiskType: pulumi.String("CLOUD_SSD"),
SystemDiskSize: pulumi.Float64(50),
InternetChargeType: pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
InternetMaxBandwidthOut: pulumi.Float64(100),
PublicIpAssigned: pulumi.Bool(true),
DataDisks: tencentcloud.KubernetesScaleWorkerWorkerConfigDataDiskArray{
&tencentcloud.KubernetesScaleWorkerWorkerConfigDataDiskArgs{
DiskType: pulumi.String("CLOUD_PREMIUM"),
DiskSize: pulumi.Float64(50),
},
},
EnhancedSecurityService: pulumi.Bool(false),
EnhancedMonitorService: pulumi.Bool(false),
UserData: pulumi.String("dGVzdA=="),
Password: pulumi.String("Password@123"),
},
})
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 subnet = config.Get("subnet") ?? "subnet-pqfek0t8";
var scaleInstanceType = config.Get("scaleInstanceType") ?? "S2.LARGE16";
var example = new Tencentcloud.KubernetesScaleWorker("example", new()
{
ClusterId = "cls-godovr32",
ExtraArgs = new[]
{
"root-dir=/var/lib/kubelet",
},
Labels =
{
{ "test1", "test1" },
{ "test2", "test2" },
},
WorkerConfig = new Tencentcloud.Inputs.KubernetesScaleWorkerWorkerConfigArgs
{
Count = 3,
AvailabilityZone = availabilityZone,
InstanceType = scaleInstanceType,
SubnetId = subnet,
SystemDiskType = "CLOUD_SSD",
SystemDiskSize = 50,
InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
InternetMaxBandwidthOut = 100,
PublicIpAssigned = true,
DataDisks = new[]
{
new Tencentcloud.Inputs.KubernetesScaleWorkerWorkerConfigDataDiskArgs
{
DiskType = "CLOUD_PREMIUM",
DiskSize = 50,
},
},
EnhancedSecurityService = false,
EnhancedMonitorService = false,
UserData = "dGVzdA==",
Password = "Password@123",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.KubernetesScaleWorker;
import com.pulumi.tencentcloud.KubernetesScaleWorkerArgs;
import com.pulumi.tencentcloud.inputs.KubernetesScaleWorkerWorkerConfigArgs;
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 subnet = config.get("subnet").orElse("subnet-pqfek0t8");
final var scaleInstanceType = config.get("scaleInstanceType").orElse("S2.LARGE16");
var example = new KubernetesScaleWorker("example", KubernetesScaleWorkerArgs.builder()
.clusterId("cls-godovr32")
.extraArgs("root-dir=/var/lib/kubelet")
.labels(Map.ofEntries(
Map.entry("test1", "test1"),
Map.entry("test2", "test2")
))
.workerConfig(KubernetesScaleWorkerWorkerConfigArgs.builder()
.count(3)
.availabilityZone(availabilityZone)
.instanceType(scaleInstanceType)
.subnetId(subnet)
.systemDiskType("CLOUD_SSD")
.systemDiskSize(50)
.internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
.internetMaxBandwidthOut(100)
.publicIpAssigned(true)
.dataDisks(KubernetesScaleWorkerWorkerConfigDataDiskArgs.builder()
.diskType("CLOUD_PREMIUM")
.diskSize(50)
.build())
.enhancedSecurityService(false)
.enhancedMonitorService(false)
.userData("dGVzdA==")
.password("Password@123")
.build())
.build());
}
}
configuration:
availabilityZone:
type: string
default: ap-guangzhou-3
subnet:
type: string
default: subnet-pqfek0t8
scaleInstanceType:
type: string
default: S2.LARGE16
resources:
example:
type: tencentcloud:KubernetesScaleWorker
properties:
clusterId: cls-godovr32
extraArgs:
- root-dir=/var/lib/kubelet
labels:
test1: test1
test2: test2
workerConfig:
count: 3
availabilityZone: ${availabilityZone}
instanceType: ${scaleInstanceType}
subnetId: ${subnet}
systemDiskType: CLOUD_SSD
systemDiskSize: 50
internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
internetMaxBandwidthOut: 100
publicIpAssigned: true
dataDisks:
- diskType: CLOUD_PREMIUM
diskSize: 50
enhancedSecurityService: false
enhancedMonitorService: false
userData: dGVzdA==
password: Password@123
Create KubernetesScaleWorker Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubernetesScaleWorker(name: string, args: KubernetesScaleWorkerArgs, opts?: CustomResourceOptions);
@overload
def KubernetesScaleWorker(resource_name: str,
args: KubernetesScaleWorkerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KubernetesScaleWorker(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
worker_config: Optional[KubernetesScaleWorkerWorkerConfigArgs] = None,
gpu_args: Optional[KubernetesScaleWorkerGpuArgsArgs] = None,
desired_pod_num: Optional[float] = None,
docker_graph_path: Optional[str] = None,
extra_args: Optional[Sequence[str]] = None,
data_disks: Optional[Sequence[KubernetesScaleWorkerDataDiskArgs]] = None,
kubernetes_scale_worker_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
mount_target: Optional[str] = None,
pre_start_user_script: Optional[str] = None,
taints: Optional[Sequence[KubernetesScaleWorkerTaintArgs]] = None,
unschedulable: Optional[float] = None,
user_script: Optional[str] = None,
create_result_output_file: Optional[str] = None)
func NewKubernetesScaleWorker(ctx *Context, name string, args KubernetesScaleWorkerArgs, opts ...ResourceOption) (*KubernetesScaleWorker, error)
public KubernetesScaleWorker(string name, KubernetesScaleWorkerArgs args, CustomResourceOptions? opts = null)
public KubernetesScaleWorker(String name, KubernetesScaleWorkerArgs args)
public KubernetesScaleWorker(String name, KubernetesScaleWorkerArgs args, CustomResourceOptions options)
type: tencentcloud:KubernetesScaleWorker
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 KubernetesScaleWorkerArgs
- 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 KubernetesScaleWorkerArgs
- 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 KubernetesScaleWorkerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesScaleWorkerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubernetesScaleWorkerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
KubernetesScaleWorker 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 KubernetesScaleWorker resource accepts the following input properties:
- Cluster
Id string - ID of the cluster.
- Worker
Config KubernetesScale Worker Worker Config - Deploy the machine configuration information of the 'WORK' service, and create <=20 units for common users.
- Create
Result stringOutput File - Used to save results of CVMs creation error messages.
- Data
Disks List<KubernetesScale Worker Data Disk> - Configurations of tke data disk.
- Desired
Pod doubleNum - Indicate to set desired pod number in current node. Valid when the cluster enable customized pod cidr.
- Docker
Graph stringPath - Docker graph path. Default is
/var/lib/docker
. - Extra
Args List<string> - Custom parameter information related to the node.
- Gpu
Args KubernetesScale Worker Gpu Args - GPU driver parameters.
- Kubernetes
Scale stringWorker Id - ID of the resource.
- Labels Dictionary<string, string>
- Labels of kubernetes scale worker created nodes.
- 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
Scale Worker Taint> - Node taint.
- Unschedulable double
- Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
- User
Script string - Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
- Cluster
Id string - ID of the cluster.
- Worker
Config KubernetesScale Worker Worker Config Args - Deploy the machine configuration information of the 'WORK' service, and create <=20 units for common users.
- Create
Result stringOutput File - Used to save results of CVMs creation error messages.
- Data
Disks []KubernetesScale Worker Data Disk Args - Configurations of tke data disk.
- Desired
Pod float64Num - Indicate to set desired pod number in current node. Valid when the cluster enable customized pod cidr.
- Docker
Graph stringPath - Docker graph path. Default is
/var/lib/docker
. - Extra
Args []string - Custom parameter information related to the node.
- Gpu
Args KubernetesScale Worker Gpu Args Args - GPU driver parameters.
- Kubernetes
Scale stringWorker Id - ID of the resource.
- Labels map[string]string
- Labels of kubernetes scale worker created nodes.
- 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
Scale Worker Taint Args - Node taint.
- Unschedulable float64
- Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
- User
Script string - Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
- cluster
Id String - ID of the cluster.
- worker
Config KubernetesScale Worker Worker Config - Deploy the machine configuration information of the 'WORK' service, and create <=20 units for common users.
- create
Result StringOutput File - Used to save results of CVMs creation error messages.
- data
Disks List<KubernetesScale Worker Data Disk> - Configurations of tke data disk.
- desired
Pod DoubleNum - Indicate to set desired pod number in current node. Valid when the cluster enable customized pod cidr.
- docker
Graph StringPath - Docker graph path. Default is
/var/lib/docker
. - extra
Args List<String> - Custom parameter information related to the node.
- gpu
Args KubernetesScale Worker Gpu Args - GPU driver parameters.
- kubernetes
Scale StringWorker Id - ID of the resource.
- labels Map<String,String>
- Labels of kubernetes scale worker created nodes.
- 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
Scale Worker Taint> - Node taint.
- unschedulable Double
- Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
- user
Script String - Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
- cluster
Id string - ID of the cluster.
- worker
Config KubernetesScale Worker Worker Config - Deploy the machine configuration information of the 'WORK' service, and create <=20 units for common users.
- create
Result stringOutput File - Used to save results of CVMs creation error messages.
- data
Disks KubernetesScale Worker Data Disk[] - Configurations of tke data disk.
- desired
Pod numberNum - Indicate to set desired pod number in current node. Valid when the cluster enable customized pod cidr.
- docker
Graph stringPath - Docker graph path. Default is
/var/lib/docker
. - extra
Args string[] - Custom parameter information related to the node.
- gpu
Args KubernetesScale Worker Gpu Args - GPU driver parameters.
- kubernetes
Scale stringWorker Id - ID of the resource.
- labels {[key: string]: string}
- Labels of kubernetes scale worker created nodes.
- 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
Scale Worker Taint[] - Node taint.
- unschedulable number
- Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
- user
Script string - Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
- cluster_
id str - ID of the cluster.
- worker_
config KubernetesScale Worker Worker Config Args - Deploy the machine configuration information of the 'WORK' service, and create <=20 units for common users.
- create_
result_ stroutput_ file - Used to save results of CVMs creation error messages.
- data_
disks Sequence[KubernetesScale Worker Data Disk Args] - Configurations of tke data disk.
- desired_
pod_ floatnum - Indicate to set desired pod number in current node. Valid when the cluster enable customized pod cidr.
- docker_
graph_ strpath - Docker graph path. Default is
/var/lib/docker
. - extra_
args Sequence[str] - Custom parameter information related to the node.
- gpu_
args KubernetesScale Worker Gpu Args Args - GPU driver parameters.
- kubernetes_
scale_ strworker_ id - ID of the resource.
- labels Mapping[str, str]
- Labels of kubernetes scale worker created nodes.
- 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
Scale Worker Taint Args] - Node taint.
- unschedulable float
- Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
- user_
script str - Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
- cluster
Id String - ID of the cluster.
- worker
Config Property Map - Deploy the machine configuration information of the 'WORK' service, and create <=20 units for common users.
- create
Result StringOutput File - Used to save results of CVMs creation error messages.
- data
Disks List<Property Map> - Configurations of tke data disk.
- desired
Pod NumberNum - Indicate to set desired pod number in current node. Valid when the cluster enable customized pod cidr.
- docker
Graph StringPath - Docker graph path. Default is
/var/lib/docker
. - extra
Args List<String> - Custom parameter information related to the node.
- gpu
Args Property Map - GPU driver parameters.
- kubernetes
Scale StringWorker Id - ID of the resource.
- labels Map<String>
- Labels of kubernetes scale worker created nodes.
- 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.
- unschedulable Number
- Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
- user
Script String - Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesScaleWorker resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Worker
Instances List<KubernetesLists Scale Worker Worker Instances List> - An information list of kubernetes cluster 'WORKER'. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Worker
Instances []KubernetesLists Scale Worker Worker Instances List - An information list of kubernetes cluster 'WORKER'. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- worker
Instances List<KubernetesLists Scale Worker Worker Instances List> - An information list of kubernetes cluster 'WORKER'. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- worker
Instances KubernetesLists Scale Worker Worker Instances List[] - An information list of kubernetes cluster 'WORKER'. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- worker_
instances_ Sequence[Kuberneteslists Scale Worker Worker Instances List] - An information list of kubernetes cluster 'WORKER'. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- worker
Instances List<Property Map>Lists - An information list of kubernetes cluster 'WORKER'. Each element contains the following attributes:
Look up Existing KubernetesScaleWorker Resource
Get an existing KubernetesScaleWorker 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?: KubernetesScaleWorkerState, opts?: CustomResourceOptions): KubernetesScaleWorker
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
create_result_output_file: Optional[str] = None,
data_disks: Optional[Sequence[KubernetesScaleWorkerDataDiskArgs]] = None,
desired_pod_num: Optional[float] = None,
docker_graph_path: Optional[str] = None,
extra_args: Optional[Sequence[str]] = None,
gpu_args: Optional[KubernetesScaleWorkerGpuArgsArgs] = None,
kubernetes_scale_worker_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
mount_target: Optional[str] = None,
pre_start_user_script: Optional[str] = None,
taints: Optional[Sequence[KubernetesScaleWorkerTaintArgs]] = None,
unschedulable: Optional[float] = None,
user_script: Optional[str] = None,
worker_config: Optional[KubernetesScaleWorkerWorkerConfigArgs] = None,
worker_instances_lists: Optional[Sequence[KubernetesScaleWorkerWorkerInstancesListArgs]] = None) -> KubernetesScaleWorker
func GetKubernetesScaleWorker(ctx *Context, name string, id IDInput, state *KubernetesScaleWorkerState, opts ...ResourceOption) (*KubernetesScaleWorker, error)
public static KubernetesScaleWorker Get(string name, Input<string> id, KubernetesScaleWorkerState? state, CustomResourceOptions? opts = null)
public static KubernetesScaleWorker get(String name, Output<String> id, KubernetesScaleWorkerState state, CustomResourceOptions options)
resources: _: type: tencentcloud:KubernetesScaleWorker 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.
- Create
Result stringOutput File - Used to save results of CVMs creation error messages.
- Data
Disks List<KubernetesScale Worker Data Disk> - Configurations of tke data disk.
- Desired
Pod doubleNum - Indicate to set desired pod number in current node. Valid when the cluster enable customized pod cidr.
- Docker
Graph stringPath - Docker graph path. Default is
/var/lib/docker
. - Extra
Args List<string> - Custom parameter information related to the node.
- Gpu
Args KubernetesScale Worker Gpu Args - GPU driver parameters.
- Kubernetes
Scale stringWorker Id - ID of the resource.
- Labels Dictionary<string, string>
- Labels of kubernetes scale worker created nodes.
- 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
Scale Worker Taint> - Node taint.
- Unschedulable double
- Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
- User
Script string - Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
- Worker
Config KubernetesScale Worker Worker Config - Deploy the machine configuration information of the 'WORK' service, and create <=20 units for common users.
- Worker
Instances List<KubernetesLists Scale Worker Worker Instances List> - An information list of kubernetes cluster 'WORKER'. Each element contains the following attributes:
- Cluster
Id string - ID of the cluster.
- Create
Result stringOutput File - Used to save results of CVMs creation error messages.
- Data
Disks []KubernetesScale Worker Data Disk Args - Configurations of tke data disk.
- Desired
Pod float64Num - Indicate to set desired pod number in current node. Valid when the cluster enable customized pod cidr.
- Docker
Graph stringPath - Docker graph path. Default is
/var/lib/docker
. - Extra
Args []string - Custom parameter information related to the node.
- Gpu
Args KubernetesScale Worker Gpu Args Args - GPU driver parameters.
- Kubernetes
Scale stringWorker Id - ID of the resource.
- Labels map[string]string
- Labels of kubernetes scale worker created nodes.
- 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
Scale Worker Taint Args - Node taint.
- Unschedulable float64
- Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
- User
Script string - Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
- Worker
Config KubernetesScale Worker Worker Config Args - Deploy the machine configuration information of the 'WORK' service, and create <=20 units for common users.
- Worker
Instances []KubernetesLists Scale Worker Worker Instances List Args - An information list of kubernetes cluster 'WORKER'. Each element contains the following attributes:
- cluster
Id String - ID of the cluster.
- create
Result StringOutput File - Used to save results of CVMs creation error messages.
- data
Disks List<KubernetesScale Worker Data Disk> - Configurations of tke data disk.
- desired
Pod DoubleNum - Indicate to set desired pod number in current node. Valid when the cluster enable customized pod cidr.
- docker
Graph StringPath - Docker graph path. Default is
/var/lib/docker
. - extra
Args List<String> - Custom parameter information related to the node.
- gpu
Args KubernetesScale Worker Gpu Args - GPU driver parameters.
- kubernetes
Scale StringWorker Id - ID of the resource.
- labels Map<String,String>
- Labels of kubernetes scale worker created nodes.
- 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
Scale Worker Taint> - Node taint.
- unschedulable Double
- Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
- user
Script String - Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
- worker
Config KubernetesScale Worker Worker Config - Deploy the machine configuration information of the 'WORK' service, and create <=20 units for common users.
- worker
Instances List<KubernetesLists Scale Worker Worker Instances List> - An information list of kubernetes cluster 'WORKER'. Each element contains the following attributes:
- cluster
Id string - ID of the cluster.
- create
Result stringOutput File - Used to save results of CVMs creation error messages.
- data
Disks KubernetesScale Worker Data Disk[] - Configurations of tke data disk.
- desired
Pod numberNum - Indicate to set desired pod number in current node. Valid when the cluster enable customized pod cidr.
- docker
Graph stringPath - Docker graph path. Default is
/var/lib/docker
. - extra
Args string[] - Custom parameter information related to the node.
- gpu
Args KubernetesScale Worker Gpu Args - GPU driver parameters.
- kubernetes
Scale stringWorker Id - ID of the resource.
- labels {[key: string]: string}
- Labels of kubernetes scale worker created nodes.
- 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
Scale Worker Taint[] - Node taint.
- unschedulable number
- Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
- user
Script string - Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
- worker
Config KubernetesScale Worker Worker Config - Deploy the machine configuration information of the 'WORK' service, and create <=20 units for common users.
- worker
Instances KubernetesLists Scale Worker Worker Instances List[] - An information list of kubernetes cluster 'WORKER'. Each element contains the following attributes:
- cluster_
id str - ID of the cluster.
- create_
result_ stroutput_ file - Used to save results of CVMs creation error messages.
- data_
disks Sequence[KubernetesScale Worker Data Disk Args] - Configurations of tke data disk.
- desired_
pod_ floatnum - Indicate to set desired pod number in current node. Valid when the cluster enable customized pod cidr.
- docker_
graph_ strpath - Docker graph path. Default is
/var/lib/docker
. - extra_
args Sequence[str] - Custom parameter information related to the node.
- gpu_
args KubernetesScale Worker Gpu Args Args - GPU driver parameters.
- kubernetes_
scale_ strworker_ id - ID of the resource.
- labels Mapping[str, str]
- Labels of kubernetes scale worker created nodes.
- 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
Scale Worker Taint Args] - Node taint.
- unschedulable float
- Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
- user_
script str - Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
- worker_
config KubernetesScale Worker Worker Config Args - Deploy the machine configuration information of the 'WORK' service, and create <=20 units for common users.
- worker_
instances_ Sequence[Kuberneteslists Scale Worker Worker Instances List Args] - An information list of kubernetes cluster 'WORKER'. Each element contains the following attributes:
- cluster
Id String - ID of the cluster.
- create
Result StringOutput File - Used to save results of CVMs creation error messages.
- data
Disks List<Property Map> - Configurations of tke data disk.
- desired
Pod NumberNum - Indicate to set desired pod number in current node. Valid when the cluster enable customized pod cidr.
- docker
Graph StringPath - Docker graph path. Default is
/var/lib/docker
. - extra
Args List<String> - Custom parameter information related to the node.
- gpu
Args Property Map - GPU driver parameters.
- kubernetes
Scale StringWorker Id - ID of the resource.
- labels Map<String>
- Labels of kubernetes scale worker created nodes.
- 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.
- unschedulable Number
- Set whether the added node participates in scheduling. The default value is 0, which means participating in scheduling; non-0 means not participating in scheduling. After the node initialization is completed, you can execute kubectl uncordon nodename to join the node in scheduling.
- user
Script String - Base64 encoded user script, this script will be executed after the k8s component is run. The user needs to ensure that the script is reentrant and retry logic. The script and its generated log files can be viewed in the /data/ccs_userscript/ path of the node, if required. The node needs to be initialized before it can be added to the schedule. It can be used with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to add the node to the schedule.
- worker
Config Property Map - Deploy the machine configuration information of the 'WORK' service, and create <=20 units for common users.
- worker
Instances List<Property Map>Lists - An information list of kubernetes cluster 'WORKER'. Each element contains the following attributes:
Supporting Types
KubernetesScaleWorkerDataDisk, KubernetesScaleWorkerDataDiskArgs
- 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.
- Disk
Size double - Volume of disk in GB. Default is
0
. - Disk
Type string - Types of disk, available values:
CLOUD_PREMIUM
andCLOUD_SSD
andCLOUD_HSSD
andCLOUD_TSSD
. - 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.
- Disk
Size float64 - Volume of disk in GB. Default is
0
. - Disk
Type string - Types of disk, available values:
CLOUD_PREMIUM
andCLOUD_SSD
andCLOUD_HSSD
andCLOUD_TSSD
. - 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.
- disk
Size Double - Volume of disk in GB. Default is
0
. - disk
Type String - Types of disk, available values:
CLOUD_PREMIUM
andCLOUD_SSD
andCLOUD_HSSD
andCLOUD_TSSD
. - 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.
- disk
Size number - Volume of disk in GB. Default is
0
. - disk
Type string - Types of disk, available values:
CLOUD_PREMIUM
andCLOUD_SSD
andCLOUD_HSSD
andCLOUD_TSSD
. - 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.
- disk_
size float - Volume of disk in GB. Default is
0
. - disk_
type str - Types of disk, available values:
CLOUD_PREMIUM
andCLOUD_SSD
andCLOUD_HSSD
andCLOUD_TSSD
. - 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.
- disk
Size Number - Volume of disk in GB. Default is
0
. - disk
Type String - Types of disk, available values:
CLOUD_PREMIUM
andCLOUD_SSD
andCLOUD_HSSD
andCLOUD_TSSD
. - file
System String - File system, e.g.
ext3/ext4/xfs
. - mount
Target String - Mount target.
KubernetesScaleWorkerGpuArgs, KubernetesScaleWorkerGpuArgsArgs
- 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.
KubernetesScaleWorkerTaint, KubernetesScaleWorkerTaintArgs
KubernetesScaleWorkerWorkerConfig, KubernetesScaleWorkerWorkerConfigArgs
- Instance
Type string - Specified types of CVM instance.
- Subnet
Id string - Private network ID.
- Availability
Zone string - Indicates which availability zone will be used.
- Bandwidth
Package stringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- Cam
Role stringName - CAM role name authorized to access.
- Count double
- Number of cvm.
- Data
Disks List<KubernetesScale Worker Worker Config Data Disk> - Configurations of cvm data disk.
- Desired
Pod doubleNum - Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override
[globe_]desired_pod_num
for current node. Either all the fieldsdesired_pod_num
or none. - Disaster
Recover List<string>Group Ids - Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- Enhanced
Monitor boolService - To specify whether to enable cloud monitor service. Default is TRUE.
- Enhanced
Security boolService - To specify whether to enable cloud security service. Default is TRUE.
- Hostname 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 (-).
- Hpc
Cluster stringId - Id of cvm hpc cluster.
- Img
Id string - The valid image id, format of img-xxx.
- Instance
Charge stringType - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. The default isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
,PREPAID
instance will not terminated after cluster deleted, and may not allow to delete before expired. - Instance
Charge doubleType Prepaid Period - The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Instance
Charge stringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - Instance
Name string - Name of the CVMs.
- Internet
Charge stringType - Charge types for network traffic. Available values include
TRAFFIC_POSTPAID_BY_HOUR
. - Internet
Max doubleBandwidth Out - Max bandwidth of Internet access in Mbps. Default is 0.
- Key
Ids List<string> - ID list of keys, should be set if
password
not set. - Password string
- Password to access, should be set if
key_ids
not set. - Public
Ip boolAssigned - Specify whether to assign an Internet IP address.
- Security
Group List<string>Ids - Security groups to which a CVM instance belongs.
- System
Disk doubleSize - Volume of system disk in GB. Default is
50
. - System
Disk stringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage. NOTE:CLOUD_BASIC
,LOCAL_BASIC
andLOCAL_SSD
are deprecated. - List<Kubernetes
Scale Worker Worker Config Tag> - Tag pairs.
- User
Data string - User data provided to instances, needs to be encoded in base64, and the maximum supported data size is 16KB.
- Instance
Type string - Specified types of CVM instance.
- Subnet
Id string - Private network ID.
- Availability
Zone string - Indicates which availability zone will be used.
- Bandwidth
Package stringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- Cam
Role stringName - CAM role name authorized to access.
- Count float64
- Number of cvm.
- Data
Disks []KubernetesScale Worker Worker Config Data Disk - Configurations of cvm data disk.
- Desired
Pod float64Num - Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override
[globe_]desired_pod_num
for current node. Either all the fieldsdesired_pod_num
or none. - Disaster
Recover []stringGroup Ids - Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- Enhanced
Monitor boolService - To specify whether to enable cloud monitor service. Default is TRUE.
- Enhanced
Security boolService - To specify whether to enable cloud security service. Default is TRUE.
- Hostname 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 (-).
- Hpc
Cluster stringId - Id of cvm hpc cluster.
- Img
Id string - The valid image id, format of img-xxx.
- Instance
Charge stringType - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. The default isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
,PREPAID
instance will not terminated after cluster deleted, and may not allow to delete before expired. - Instance
Charge float64Type Prepaid Period - The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Instance
Charge stringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - Instance
Name string - Name of the CVMs.
- Internet
Charge stringType - Charge types for network traffic. Available values include
TRAFFIC_POSTPAID_BY_HOUR
. - Internet
Max float64Bandwidth Out - Max bandwidth of Internet access in Mbps. Default is 0.
- Key
Ids []string - ID list of keys, should be set if
password
not set. - Password string
- Password to access, should be set if
key_ids
not set. - Public
Ip boolAssigned - Specify whether to assign an Internet IP address.
- Security
Group []stringIds - Security groups to which a CVM instance belongs.
- System
Disk float64Size - Volume of system disk in GB. Default is
50
. - System
Disk stringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage. NOTE:CLOUD_BASIC
,LOCAL_BASIC
andLOCAL_SSD
are deprecated. - []Kubernetes
Scale Worker Worker Config Tag - Tag pairs.
- User
Data string - User data provided to instances, needs to be encoded in base64, and the maximum supported data size is 16KB.
- instance
Type String - Specified types of CVM instance.
- subnet
Id String - Private network ID.
- availability
Zone String - Indicates which availability zone will be used.
- bandwidth
Package StringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam
Role StringName - CAM role name authorized to access.
- count Double
- Number of cvm.
- data
Disks List<KubernetesScale Worker Worker Config Data Disk> - Configurations of cvm data disk.
- desired
Pod DoubleNum - Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override
[globe_]desired_pod_num
for current node. Either all the fieldsdesired_pod_num
or none. - disaster
Recover List<String>Group Ids - Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- enhanced
Monitor BooleanService - To specify whether to enable cloud monitor service. Default is TRUE.
- enhanced
Security BooleanService - To specify whether to enable cloud security service. Default is TRUE.
- hostname String
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- hpc
Cluster StringId - Id of cvm hpc cluster.
- img
Id String - The valid image id, format of img-xxx.
- instance
Charge StringType - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. The default isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
,PREPAID
instance will not terminated after cluster deleted, and may not allow to delete before expired. - instance
Charge DoubleType Prepaid Period - The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - instance
Charge StringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - instance
Name String - Name of the CVMs.
- internet
Charge StringType - Charge types for network traffic. Available values include
TRAFFIC_POSTPAID_BY_HOUR
. - internet
Max DoubleBandwidth Out - Max bandwidth of Internet access in Mbps. Default is 0.
- key
Ids List<String> - ID list of keys, should be set if
password
not set. - password String
- Password to access, should be set if
key_ids
not set. - public
Ip BooleanAssigned - Specify whether to assign an Internet IP address.
- security
Group List<String>Ids - Security groups to which a CVM instance belongs.
- system
Disk DoubleSize - Volume of system disk in GB. Default is
50
. - system
Disk StringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage. NOTE:CLOUD_BASIC
,LOCAL_BASIC
andLOCAL_SSD
are deprecated. - List<Kubernetes
Scale Worker Worker Config Tag> - Tag pairs.
- user
Data String - User data provided to instances, needs to be encoded in base64, and the maximum supported data size is 16KB.
- instance
Type string - Specified types of CVM instance.
- subnet
Id string - Private network ID.
- availability
Zone string - Indicates which availability zone will be used.
- bandwidth
Package stringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam
Role stringName - CAM role name authorized to access.
- count number
- Number of cvm.
- data
Disks KubernetesScale Worker Worker Config Data Disk[] - Configurations of cvm data disk.
- desired
Pod numberNum - Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override
[globe_]desired_pod_num
for current node. Either all the fieldsdesired_pod_num
or none. - disaster
Recover string[]Group Ids - Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- enhanced
Monitor booleanService - To specify whether to enable cloud monitor service. Default is TRUE.
- enhanced
Security booleanService - To specify whether to enable cloud security service. Default is TRUE.
- hostname string
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- hpc
Cluster stringId - Id of cvm hpc cluster.
- img
Id string - The valid image id, format of img-xxx.
- instance
Charge stringType - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. The default isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
,PREPAID
instance will not terminated after cluster deleted, and may not allow to delete before expired. - instance
Charge numberType Prepaid Period - The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - instance
Charge stringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - instance
Name string - Name of the CVMs.
- internet
Charge stringType - Charge types for network traffic. Available values include
TRAFFIC_POSTPAID_BY_HOUR
. - internet
Max numberBandwidth Out - Max bandwidth of Internet access in Mbps. Default is 0.
- key
Ids string[] - ID list of keys, should be set if
password
not set. - password string
- Password to access, should be set if
key_ids
not set. - public
Ip booleanAssigned - Specify whether to assign an Internet IP address.
- security
Group string[]Ids - Security groups to which a CVM instance belongs.
- system
Disk numberSize - Volume of system disk in GB. Default is
50
. - system
Disk stringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage. NOTE:CLOUD_BASIC
,LOCAL_BASIC
andLOCAL_SSD
are deprecated. - Kubernetes
Scale Worker Worker Config Tag[] - Tag pairs.
- user
Data string - User data provided to instances, needs to be encoded in base64, and the maximum supported data size is 16KB.
- instance_
type str - Specified types of CVM instance.
- subnet_
id str - Private network ID.
- availability_
zone str - Indicates which availability zone will be used.
- bandwidth_
package_ strid - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam_
role_ strname - CAM role name authorized to access.
- count float
- Number of cvm.
- data_
disks Sequence[KubernetesScale Worker Worker Config Data Disk] - Configurations of cvm data disk.
- desired_
pod_ floatnum - Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override
[globe_]desired_pod_num
for current node. Either all the fieldsdesired_pod_num
or none. - disaster_
recover_ Sequence[str]group_ ids - Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- enhanced_
monitor_ boolservice - To specify whether to enable cloud monitor service. Default is TRUE.
- enhanced_
security_ boolservice - To specify whether to enable cloud security service. Default is TRUE.
- hostname str
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- hpc_
cluster_ strid - Id of cvm hpc cluster.
- img_
id str - The valid image id, format of img-xxx.
- instance_
charge_ strtype - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. The default isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
,PREPAID
instance will not terminated after cluster deleted, and may not allow to delete before expired. - instance_
charge_ floattype_ prepaid_ period - The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - instance_
charge_ strtype_ prepaid_ renew_ flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - instance_
name str - Name of the CVMs.
- internet_
charge_ strtype - Charge types for network traffic. Available values include
TRAFFIC_POSTPAID_BY_HOUR
. - internet_
max_ floatbandwidth_ out - Max bandwidth of Internet access in Mbps. Default is 0.
- key_
ids Sequence[str] - ID list of keys, should be set if
password
not set. - password str
- Password to access, should be set if
key_ids
not set. - public_
ip_ boolassigned - Specify whether to assign an Internet IP address.
- security_
group_ Sequence[str]ids - Security groups to which a CVM instance belongs.
- system_
disk_ floatsize - Volume of system disk in GB. Default is
50
. - system_
disk_ strtype - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage. NOTE:CLOUD_BASIC
,LOCAL_BASIC
andLOCAL_SSD
are deprecated. - Sequence[Kubernetes
Scale Worker Worker Config Tag] - Tag pairs.
- user_
data str - User data provided to instances, needs to be encoded in base64, and the maximum supported data size is 16KB.
- instance
Type String - Specified types of CVM instance.
- subnet
Id String - Private network ID.
- availability
Zone String - Indicates which availability zone will be used.
- bandwidth
Package StringId - bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.
- cam
Role StringName - CAM role name authorized to access.
- count Number
- Number of cvm.
- data
Disks List<Property Map> - Configurations of cvm data disk.
- desired
Pod NumberNum - Indicate to set desired pod number in node. valid when enable_customized_pod_cidr=true, and it override
[globe_]desired_pod_num
for current node. Either all the fieldsdesired_pod_num
or none. - disaster
Recover List<String>Group Ids - Disaster recover groups to which a CVM instance belongs. Only support maximum 1.
- enhanced
Monitor BooleanService - To specify whether to enable cloud monitor service. Default is TRUE.
- enhanced
Security BooleanService - To specify whether to enable cloud security service. Default is TRUE.
- hostname String
- The host name of the attached instance. Dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows example: The length of the name character is [2, 15], letters (capitalization is not restricted), numbers and dashes (-) are allowed, dots (.) are not supported, and not all numbers are allowed. Examples of other types (Linux, etc.): The character length is [2, 60], and multiple dots are allowed. There is a segment between the dots. Each segment allows letters (with no limitation on capitalization), numbers and dashes (-).
- hpc
Cluster StringId - Id of cvm hpc cluster.
- img
Id String - The valid image id, format of img-xxx.
- instance
Charge StringType - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. The default isPOSTPAID_BY_HOUR
. Note: TencentCloud International only supportsPOSTPAID_BY_HOUR
,PREPAID
instance will not terminated after cluster deleted, and may not allow to delete before expired. - instance
Charge NumberType Prepaid Period - The tenancy (time unit is month) of the prepaid instance. NOTE: it only works when instance_charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - instance
Charge StringType Prepaid Renew Flag - Auto renewal flag. Valid values:
NOTIFY_AND_AUTO_RENEW
: notify upon expiration and renew automatically,NOTIFY_AND_MANUAL_RENEW
: notify upon expiration but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: neither notify upon expiration nor renew automatically. Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set toPREPAID
. - instance
Name String - Name of the CVMs.
- internet
Charge StringType - Charge types for network traffic. Available values include
TRAFFIC_POSTPAID_BY_HOUR
. - internet
Max NumberBandwidth Out - Max bandwidth of Internet access in Mbps. Default is 0.
- key
Ids List<String> - ID list of keys, should be set if
password
not set. - password String
- Password to access, should be set if
key_ids
not set. - public
Ip BooleanAssigned - Specify whether to assign an Internet IP address.
- security
Group List<String>Ids - Security groups to which a CVM instance belongs.
- system
Disk NumberSize - Volume of system disk in GB. Default is
50
. - system
Disk StringType - System disk type. For more information on limits of system disk types, see Storage Overview. Valid values:
LOCAL_BASIC
: local disk,LOCAL_SSD
: local SSD disk,CLOUD_SSD
: SSD,CLOUD_PREMIUM
: Premium Cloud Storage. NOTE:CLOUD_BASIC
,LOCAL_BASIC
andLOCAL_SSD
are deprecated. - List<Property Map>
- Tag pairs.
- user
Data String - User data provided to instances, needs to be encoded in base64, and the maximum supported data size is 16KB.
KubernetesScaleWorkerWorkerConfigDataDisk, KubernetesScaleWorkerWorkerConfigDataDiskArgs
- 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.
- Disk
Size double - Volume of disk in GB. Default is
0
. - Disk
Type string - Types of disk, available values:
CLOUD_PREMIUM
andCLOUD_SSD
andCLOUD_HSSD
andCLOUD_TSSD
. - Encrypt bool
- Indicates whether to encrypt data disk, default
false
. - File
System string - File system, e.g.
ext3/ext4/xfs
. - Kms
Key stringId - ID of the custom CMK in the format of UUID or
kms-abcd1234
. This parameter is used to encrypt cloud disks. - Mount
Target string - Mount target.
- Snapshot
Id string - Data disk snapshot ID.
- 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.
- Disk
Size float64 - Volume of disk in GB. Default is
0
. - Disk
Type string - Types of disk, available values:
CLOUD_PREMIUM
andCLOUD_SSD
andCLOUD_HSSD
andCLOUD_TSSD
. - Encrypt bool
- Indicates whether to encrypt data disk, default
false
. - File
System string - File system, e.g.
ext3/ext4/xfs
. - Kms
Key stringId - ID of the custom CMK in the format of UUID or
kms-abcd1234
. This parameter is used to encrypt cloud disks. - Mount
Target string - Mount target.
- Snapshot
Id string - Data disk snapshot ID.
- 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.
- disk
Size Double - Volume of disk in GB. Default is
0
. - disk
Type String - Types of disk, available values:
CLOUD_PREMIUM
andCLOUD_SSD
andCLOUD_HSSD
andCLOUD_TSSD
. - encrypt Boolean
- Indicates whether to encrypt data disk, default
false
. - file
System String - File system, e.g.
ext3/ext4/xfs
. - kms
Key StringId - ID of the custom CMK in the format of UUID or
kms-abcd1234
. This parameter is used to encrypt cloud disks. - mount
Target String - Mount target.
- snapshot
Id String - Data disk snapshot ID.
- 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.
- disk
Size number - Volume of disk in GB. Default is
0
. - disk
Type string - Types of disk, available values:
CLOUD_PREMIUM
andCLOUD_SSD
andCLOUD_HSSD
andCLOUD_TSSD
. - encrypt boolean
- Indicates whether to encrypt data disk, default
false
. - file
System string - File system, e.g.
ext3/ext4/xfs
. - kms
Key stringId - ID of the custom CMK in the format of UUID or
kms-abcd1234
. This parameter is used to encrypt cloud disks. - mount
Target string - Mount target.
- snapshot
Id string - Data disk snapshot ID.
- auto_
format_ booland_ mount - Indicate whether to auto format and mount or not. Default is
false
. - disk_
partition str - The name of the device or partition to mount.
- disk_
size float - Volume of disk in GB. Default is
0
. - disk_
type str - Types of disk, available values:
CLOUD_PREMIUM
andCLOUD_SSD
andCLOUD_HSSD
andCLOUD_TSSD
. - encrypt bool
- Indicates whether to encrypt data disk, default
false
. - file_
system str - File system, e.g.
ext3/ext4/xfs
. - kms_
key_ strid - ID of the custom CMK in the format of UUID or
kms-abcd1234
. This parameter is used to encrypt cloud disks. - mount_
target str - Mount target.
- snapshot_
id str - Data disk snapshot ID.
- 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.
- disk
Size Number - Volume of disk in GB. Default is
0
. - disk
Type String - Types of disk, available values:
CLOUD_PREMIUM
andCLOUD_SSD
andCLOUD_HSSD
andCLOUD_TSSD
. - encrypt Boolean
- Indicates whether to encrypt data disk, default
false
. - file
System String - File system, e.g.
ext3/ext4/xfs
. - kms
Key StringId - ID of the custom CMK in the format of UUID or
kms-abcd1234
. This parameter is used to encrypt cloud disks. - mount
Target String - Mount target.
- snapshot
Id String - Data disk snapshot ID.
KubernetesScaleWorkerWorkerConfigTag, KubernetesScaleWorkerWorkerConfigTagArgs
KubernetesScaleWorkerWorkerInstancesList, KubernetesScaleWorkerWorkerInstancesListArgs
- Failed
Reason string - Information of the cvm when it is failed.
- Instance
Id string - ID of the cvm.
- Instance
Role string - Role of the cvm.
- Instance
State string - State of the cvm.
- Lan
Ip string - LAN IP of the cvm.
- Failed
Reason string - Information of the cvm when it is failed.
- Instance
Id string - ID of the cvm.
- Instance
Role string - Role of the cvm.
- Instance
State string - State of the cvm.
- Lan
Ip string - LAN IP of the cvm.
- failed
Reason String - Information of the cvm when it is failed.
- instance
Id String - ID of the cvm.
- instance
Role String - Role of the cvm.
- instance
State String - State of the cvm.
- lan
Ip String - LAN IP of the cvm.
- failed
Reason string - Information of the cvm when it is failed.
- instance
Id string - ID of the cvm.
- instance
Role string - Role of the cvm.
- instance
State string - State of the cvm.
- lan
Ip string - LAN IP of the cvm.
- failed_
reason str - Information of the cvm when it is failed.
- instance_
id str - ID of the cvm.
- instance_
role str - Role of the cvm.
- instance_
state str - State of the cvm.
- lan_
ip str - LAN IP of the cvm.
- failed
Reason String - Information of the cvm when it is failed.
- instance
Id String - ID of the cvm.
- instance
Role String - Role of the cvm.
- instance
State String - State of the cvm.
- lan
Ip String - LAN IP of the cvm.
Import
tke scale worker can be imported, e.g.
$ pulumi import tencentcloud:index/kubernetesScaleWorker:KubernetesScaleWorker example cls-mij6c2pq#ins-n6esjkdi
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.