tencentcloud.KubernetesNodePool
Explore with Pulumi AI
Provide a resource to create an auto scaling group for kubernetes cluster.
NOTE: We recommend the usage of one cluster with essential worker config + node pool to manage cluster and nodes. Its a more flexible way than manage worker config with tencentcloud_kubernetes_cluster, tencentcloud.KubernetesScaleWorker or exist node management of
tencentcloud_kubernetes_attachment
. Cause some unchangeable parameters ofworker_config
may cause the whole cluster resourceforce new
.
NOTE: In order to ensure the integrity of customer data, if you destroy nodepool instance, it will keep the cvm instance associate with nodepool by default. If you want to destroy together, please set
delete_keep_instance
tofalse
.
NOTE: In order to ensure the integrity of customer data, if the cvm instance was destroyed due to shrinking, it will keep the cbs associate with cvm by default. If you want to destroy together, please set
delete_with_instance
totrue
.
NOTE: There are two parameters
wait_node_ready
andscale_tolerance
to ensure better management of node pool scaling operations. If this parameter is set when creating a resource, the resource will be marked astainted
if the set conditions are not met.
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.31.0.0/16";
const vpc = tencentcloud.getVpcSubnets({
isDefault: true,
availabilityZone: availabilityZone,
});
const defaultInstanceType = config.get("defaultInstanceType") || "S1.SMALL1";
//this is the cluster with empty worker config
const exampleKubernetesCluster = new tencentcloud.KubernetesCluster("exampleKubernetesCluster", {
vpcId: vpc.then(vpc => vpc.instanceLists?.[0]?.vpcId),
clusterCidr: clusterCidr,
clusterMaxPodNum: 32,
clusterName: "tf-tke-unit-test",
clusterDesc: "test cluster desc",
clusterMaxServiceNum: 32,
clusterVersion: "1.18.4",
clusterDeployType: "MANAGED_CLUSTER",
});
//this is one example of managing node using node pool
const exampleKubernetesNodePool = new tencentcloud.KubernetesNodePool("exampleKubernetesNodePool", {
clusterId: exampleKubernetesCluster.kubernetesClusterId,
maxSize: 6,
minSize: 1,
vpcId: vpc.then(vpc => vpc.instanceLists?.[0]?.vpcId),
subnetIds: [vpc.then(vpc => vpc.instanceLists?.[0]?.subnetId)],
retryPolicy: "INCREMENTAL_INTERVALS",
desiredCapacity: 4,
enableAutoScale: true,
multiZoneSubnetPolicy: "EQUALITY",
nodeOs: "img-9qrfy1xt",
autoScalingConfig: {
instanceType: defaultInstanceType,
systemDiskType: "CLOUD_PREMIUM",
systemDiskSize: 50,
orderlySecurityGroupIds: ["sg-24vswocp"],
dataDisks: [{
diskType: "CLOUD_PREMIUM",
diskSize: 50,
}],
internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
internetMaxBandwidthOut: 10,
publicIpAssigned: true,
password: "Password@123",
enhancedSecurityService: false,
enhancedMonitorService: false,
hostName: "12.123.0.0",
hostNameStyle: "ORIGINAL",
},
labels: {
test1: "test1",
test2: "test2",
},
taints: [
{
key: "test_taint",
value: "taint_value",
effect: "PreferNoSchedule",
},
{
key: "test_taint2",
value: "taint_value2",
effect: "PreferNoSchedule",
},
],
nodeConfig: {
dockerGraphPath: "/var/lib/docker",
extraArgs: ["root-dir=/var/lib/kubelet"],
},
});
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.31.0.0/16"
vpc = tencentcloud.get_vpc_subnets(is_default=True,
availability_zone=availability_zone)
default_instance_type = config.get("defaultInstanceType")
if default_instance_type is None:
default_instance_type = "S1.SMALL1"
#this is the cluster with empty worker config
example_kubernetes_cluster = tencentcloud.KubernetesCluster("exampleKubernetesCluster",
vpc_id=vpc.instance_lists[0].vpc_id,
cluster_cidr=cluster_cidr,
cluster_max_pod_num=32,
cluster_name="tf-tke-unit-test",
cluster_desc="test cluster desc",
cluster_max_service_num=32,
cluster_version="1.18.4",
cluster_deploy_type="MANAGED_CLUSTER")
#this is one example of managing node using node pool
example_kubernetes_node_pool = tencentcloud.KubernetesNodePool("exampleKubernetesNodePool",
cluster_id=example_kubernetes_cluster.kubernetes_cluster_id,
max_size=6,
min_size=1,
vpc_id=vpc.instance_lists[0].vpc_id,
subnet_ids=[vpc.instance_lists[0].subnet_id],
retry_policy="INCREMENTAL_INTERVALS",
desired_capacity=4,
enable_auto_scale=True,
multi_zone_subnet_policy="EQUALITY",
node_os="img-9qrfy1xt",
auto_scaling_config={
"instance_type": default_instance_type,
"system_disk_type": "CLOUD_PREMIUM",
"system_disk_size": 50,
"orderly_security_group_ids": ["sg-24vswocp"],
"data_disks": [{
"disk_type": "CLOUD_PREMIUM",
"disk_size": 50,
}],
"internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
"internet_max_bandwidth_out": 10,
"public_ip_assigned": True,
"password": "Password@123",
"enhanced_security_service": False,
"enhanced_monitor_service": False,
"host_name": "12.123.0.0",
"host_name_style": "ORIGINAL",
},
labels={
"test1": "test1",
"test2": "test2",
},
taints=[
{
"key": "test_taint",
"value": "taint_value",
"effect": "PreferNoSchedule",
},
{
"key": "test_taint2",
"value": "taint_value2",
"effect": "PreferNoSchedule",
},
],
node_config={
"docker_graph_path": "/var/lib/docker",
"extra_args": ["root-dir=/var/lib/kubelet"],
})
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.31.0.0/16"
if param := cfg.Get("clusterCidr"); param != "" {
clusterCidr = param
}
vpc, err := tencentcloud.GetVpcSubnets(ctx, &tencentcloud.GetVpcSubnetsArgs{
IsDefault: pulumi.BoolRef(true),
AvailabilityZone: pulumi.StringRef(availabilityZone),
}, nil)
if err != nil {
return err
}
defaultInstanceType := "S1.SMALL1"
if param := cfg.Get("defaultInstanceType"); param != "" {
defaultInstanceType = param
}
// this is the cluster with empty worker config
exampleKubernetesCluster, err := tencentcloud.NewKubernetesCluster(ctx, "exampleKubernetesCluster", &tencentcloud.KubernetesClusterArgs{
VpcId: pulumi.String(vpc.InstanceLists[0].VpcId),
ClusterCidr: pulumi.String(clusterCidr),
ClusterMaxPodNum: pulumi.Float64(32),
ClusterName: pulumi.String("tf-tke-unit-test"),
ClusterDesc: pulumi.String("test cluster desc"),
ClusterMaxServiceNum: pulumi.Float64(32),
ClusterVersion: pulumi.String("1.18.4"),
ClusterDeployType: pulumi.String("MANAGED_CLUSTER"),
})
if err != nil {
return err
}
// this is one example of managing node using node pool
_, err = tencentcloud.NewKubernetesNodePool(ctx, "exampleKubernetesNodePool", &tencentcloud.KubernetesNodePoolArgs{
ClusterId: exampleKubernetesCluster.KubernetesClusterId,
MaxSize: pulumi.Float64(6),
MinSize: pulumi.Float64(1),
VpcId: pulumi.String(vpc.InstanceLists[0].VpcId),
SubnetIds: pulumi.StringArray{
pulumi.String(vpc.InstanceLists[0].SubnetId),
},
RetryPolicy: pulumi.String("INCREMENTAL_INTERVALS"),
DesiredCapacity: pulumi.Float64(4),
EnableAutoScale: pulumi.Bool(true),
MultiZoneSubnetPolicy: pulumi.String("EQUALITY"),
NodeOs: pulumi.String("img-9qrfy1xt"),
AutoScalingConfig: &tencentcloud.KubernetesNodePoolAutoScalingConfigArgs{
InstanceType: pulumi.String(defaultInstanceType),
SystemDiskType: pulumi.String("CLOUD_PREMIUM"),
SystemDiskSize: pulumi.Float64(50),
OrderlySecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-24vswocp"),
},
DataDisks: tencentcloud.KubernetesNodePoolAutoScalingConfigDataDiskArray{
&tencentcloud.KubernetesNodePoolAutoScalingConfigDataDiskArgs{
DiskType: pulumi.String("CLOUD_PREMIUM"),
DiskSize: pulumi.Float64(50),
},
},
InternetChargeType: pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
InternetMaxBandwidthOut: pulumi.Float64(10),
PublicIpAssigned: pulumi.Bool(true),
Password: pulumi.String("Password@123"),
EnhancedSecurityService: pulumi.Bool(false),
EnhancedMonitorService: pulumi.Bool(false),
HostName: pulumi.String("12.123.0.0"),
HostNameStyle: pulumi.String("ORIGINAL"),
},
Labels: pulumi.StringMap{
"test1": pulumi.String("test1"),
"test2": pulumi.String("test2"),
},
Taints: tencentcloud.KubernetesNodePoolTaintArray{
&tencentcloud.KubernetesNodePoolTaintArgs{
Key: pulumi.String("test_taint"),
Value: pulumi.String("taint_value"),
Effect: pulumi.String("PreferNoSchedule"),
},
&tencentcloud.KubernetesNodePoolTaintArgs{
Key: pulumi.String("test_taint2"),
Value: pulumi.String("taint_value2"),
Effect: pulumi.String("PreferNoSchedule"),
},
},
NodeConfig: &tencentcloud.KubernetesNodePoolNodeConfigArgs{
DockerGraphPath: pulumi.String("/var/lib/docker"),
ExtraArgs: pulumi.StringArray{
pulumi.String("root-dir=/var/lib/kubelet"),
},
},
})
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.31.0.0/16";
var vpc = Tencentcloud.GetVpcSubnets.Invoke(new()
{
IsDefault = true,
AvailabilityZone = availabilityZone,
});
var defaultInstanceType = config.Get("defaultInstanceType") ?? "S1.SMALL1";
//this is the cluster with empty worker config
var exampleKubernetesCluster = new Tencentcloud.KubernetesCluster("exampleKubernetesCluster", new()
{
VpcId = vpc.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.VpcId),
ClusterCidr = clusterCidr,
ClusterMaxPodNum = 32,
ClusterName = "tf-tke-unit-test",
ClusterDesc = "test cluster desc",
ClusterMaxServiceNum = 32,
ClusterVersion = "1.18.4",
ClusterDeployType = "MANAGED_CLUSTER",
});
//this is one example of managing node using node pool
var exampleKubernetesNodePool = new Tencentcloud.KubernetesNodePool("exampleKubernetesNodePool", new()
{
ClusterId = exampleKubernetesCluster.KubernetesClusterId,
MaxSize = 6,
MinSize = 1,
VpcId = vpc.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.VpcId),
SubnetIds = new[]
{
vpc.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.SubnetId),
},
RetryPolicy = "INCREMENTAL_INTERVALS",
DesiredCapacity = 4,
EnableAutoScale = true,
MultiZoneSubnetPolicy = "EQUALITY",
NodeOs = "img-9qrfy1xt",
AutoScalingConfig = new Tencentcloud.Inputs.KubernetesNodePoolAutoScalingConfigArgs
{
InstanceType = defaultInstanceType,
SystemDiskType = "CLOUD_PREMIUM",
SystemDiskSize = 50,
OrderlySecurityGroupIds = new[]
{
"sg-24vswocp",
},
DataDisks = new[]
{
new Tencentcloud.Inputs.KubernetesNodePoolAutoScalingConfigDataDiskArgs
{
DiskType = "CLOUD_PREMIUM",
DiskSize = 50,
},
},
InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
InternetMaxBandwidthOut = 10,
PublicIpAssigned = true,
Password = "Password@123",
EnhancedSecurityService = false,
EnhancedMonitorService = false,
HostName = "12.123.0.0",
HostNameStyle = "ORIGINAL",
},
Labels =
{
{ "test1", "test1" },
{ "test2", "test2" },
},
Taints = new[]
{
new Tencentcloud.Inputs.KubernetesNodePoolTaintArgs
{
Key = "test_taint",
Value = "taint_value",
Effect = "PreferNoSchedule",
},
new Tencentcloud.Inputs.KubernetesNodePoolTaintArgs
{
Key = "test_taint2",
Value = "taint_value2",
Effect = "PreferNoSchedule",
},
},
NodeConfig = new Tencentcloud.Inputs.KubernetesNodePoolNodeConfigArgs
{
DockerGraphPath = "/var/lib/docker",
ExtraArgs = new[]
{
"root-dir=/var/lib/kubelet",
},
},
});
});
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.GetVpcSubnetsArgs;
import com.pulumi.tencentcloud.KubernetesCluster;
import com.pulumi.tencentcloud.KubernetesClusterArgs;
import com.pulumi.tencentcloud.KubernetesNodePool;
import com.pulumi.tencentcloud.KubernetesNodePoolArgs;
import com.pulumi.tencentcloud.inputs.KubernetesNodePoolAutoScalingConfigArgs;
import com.pulumi.tencentcloud.inputs.KubernetesNodePoolTaintArgs;
import com.pulumi.tencentcloud.inputs.KubernetesNodePoolNodeConfigArgs;
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.31.0.0/16");
final var vpc = TencentcloudFunctions.getVpcSubnets(GetVpcSubnetsArgs.builder()
.isDefault(true)
.availabilityZone(availabilityZone)
.build());
final var defaultInstanceType = config.get("defaultInstanceType").orElse("S1.SMALL1");
//this is the cluster with empty worker config
var exampleKubernetesCluster = new KubernetesCluster("exampleKubernetesCluster", KubernetesClusterArgs.builder()
.vpcId(vpc.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].vpcId()))
.clusterCidr(clusterCidr)
.clusterMaxPodNum(32)
.clusterName("tf-tke-unit-test")
.clusterDesc("test cluster desc")
.clusterMaxServiceNum(32)
.clusterVersion("1.18.4")
.clusterDeployType("MANAGED_CLUSTER")
.build());
//this is one example of managing node using node pool
var exampleKubernetesNodePool = new KubernetesNodePool("exampleKubernetesNodePool", KubernetesNodePoolArgs.builder()
.clusterId(exampleKubernetesCluster.kubernetesClusterId())
.maxSize(6)
.minSize(1)
.vpcId(vpc.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].vpcId()))
.subnetIds(vpc.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].subnetId()))
.retryPolicy("INCREMENTAL_INTERVALS")
.desiredCapacity(4)
.enableAutoScale(true)
.multiZoneSubnetPolicy("EQUALITY")
.nodeOs("img-9qrfy1xt")
.autoScalingConfig(KubernetesNodePoolAutoScalingConfigArgs.builder()
.instanceType(defaultInstanceType)
.systemDiskType("CLOUD_PREMIUM")
.systemDiskSize("50")
.orderlySecurityGroupIds("sg-24vswocp")
.dataDisks(KubernetesNodePoolAutoScalingConfigDataDiskArgs.builder()
.diskType("CLOUD_PREMIUM")
.diskSize(50)
.build())
.internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
.internetMaxBandwidthOut(10)
.publicIpAssigned(true)
.password("Password@123")
.enhancedSecurityService(false)
.enhancedMonitorService(false)
.hostName("12.123.0.0")
.hostNameStyle("ORIGINAL")
.build())
.labels(Map.ofEntries(
Map.entry("test1", "test1"),
Map.entry("test2", "test2")
))
.taints(
KubernetesNodePoolTaintArgs.builder()
.key("test_taint")
.value("taint_value")
.effect("PreferNoSchedule")
.build(),
KubernetesNodePoolTaintArgs.builder()
.key("test_taint2")
.value("taint_value2")
.effect("PreferNoSchedule")
.build())
.nodeConfig(KubernetesNodePoolNodeConfigArgs.builder()
.dockerGraphPath("/var/lib/docker")
.extraArgs("root-dir=/var/lib/kubelet")
.build())
.build());
}
}
configuration:
availabilityZone:
type: string
default: ap-guangzhou-3
clusterCidr:
type: string
default: 172.31.0.0/16
defaultInstanceType:
type: string
default: S1.SMALL1
resources:
# this is the cluster with empty worker config
exampleKubernetesCluster:
type: tencentcloud:KubernetesCluster
properties:
vpcId: ${vpc.instanceLists[0].vpcId}
clusterCidr: ${clusterCidr}
clusterMaxPodNum: 32
clusterName: tf-tke-unit-test
clusterDesc: test cluster desc
clusterMaxServiceNum: 32
clusterVersion: 1.18.4
clusterDeployType: MANAGED_CLUSTER
# this is one example of managing node using node pool
exampleKubernetesNodePool:
type: tencentcloud:KubernetesNodePool
properties:
clusterId: ${exampleKubernetesCluster.kubernetesClusterId}
maxSize: 6
minSize: 1
vpcId: ${vpc.instanceLists[0].vpcId}
subnetIds:
- ${vpc.instanceLists[0].subnetId}
retryPolicy: INCREMENTAL_INTERVALS
desiredCapacity: 4
enableAutoScale: true
multiZoneSubnetPolicy: EQUALITY
nodeOs: img-9qrfy1xt
autoScalingConfig:
instanceType: ${defaultInstanceType}
systemDiskType: CLOUD_PREMIUM
systemDiskSize: '50'
orderlySecurityGroupIds:
- sg-24vswocp
dataDisks:
- diskType: CLOUD_PREMIUM
diskSize: 50
internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
internetMaxBandwidthOut: 10
publicIpAssigned: true
password: Password@123
enhancedSecurityService: false
enhancedMonitorService: false
hostName: 12.123.0.0
hostNameStyle: ORIGINAL
labels:
test1: test1
test2: test2
taints:
- key: test_taint
value: taint_value
effect: PreferNoSchedule
- key: test_taint2
value: taint_value2
effect: PreferNoSchedule
nodeConfig:
dockerGraphPath: /var/lib/docker
extraArgs:
- root-dir=/var/lib/kubelet
variables:
vpc:
fn::invoke:
function: tencentcloud:getVpcSubnets
arguments:
isDefault: true
availabilityZone: ${availabilityZone}
Using Spot CVM Instance
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.KubernetesNodePool("example", {
clusterId: tencentcloud_kubernetes_cluster.managed_cluster.id,
maxSize: 6,
minSize: 1,
vpcId: data.tencentcloud_vpc_subnets.vpc.instance_list[0].vpc_id,
subnetIds: [data.tencentcloud_vpc_subnets.vpc.instance_list[0].subnet_id],
retryPolicy: "INCREMENTAL_INTERVALS",
desiredCapacity: 4,
enableAutoScale: true,
multiZoneSubnetPolicy: "EQUALITY",
autoScalingConfig: {
instanceType: _var.default_instance_type,
systemDiskType: "CLOUD_PREMIUM",
systemDiskSize: 50,
orderlySecurityGroupIds: [
"sg-24vswocp",
"sg-3qntci2v",
"sg-7y1t2wax",
],
instanceChargeType: "SPOTPAID",
spotInstanceType: "one-time",
spotMaxPrice: "1000",
dataDisks: [{
diskType: "CLOUD_PREMIUM",
diskSize: 50,
}],
internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
internetMaxBandwidthOut: 10,
publicIpAssigned: true,
password: "Password@123",
enhancedSecurityService: false,
enhancedMonitorService: false,
},
labels: {
test1: "test1",
test2: "test2",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.KubernetesNodePool("example",
cluster_id=tencentcloud_kubernetes_cluster["managed_cluster"]["id"],
max_size=6,
min_size=1,
vpc_id=data["tencentcloud_vpc_subnets"]["vpc"]["instance_list"][0]["vpc_id"],
subnet_ids=[data["tencentcloud_vpc_subnets"]["vpc"]["instance_list"][0]["subnet_id"]],
retry_policy="INCREMENTAL_INTERVALS",
desired_capacity=4,
enable_auto_scale=True,
multi_zone_subnet_policy="EQUALITY",
auto_scaling_config={
"instance_type": var["default_instance_type"],
"system_disk_type": "CLOUD_PREMIUM",
"system_disk_size": 50,
"orderly_security_group_ids": [
"sg-24vswocp",
"sg-3qntci2v",
"sg-7y1t2wax",
],
"instance_charge_type": "SPOTPAID",
"spot_instance_type": "one-time",
"spot_max_price": "1000",
"data_disks": [{
"disk_type": "CLOUD_PREMIUM",
"disk_size": 50,
}],
"internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
"internet_max_bandwidth_out": 10,
"public_ip_assigned": True,
"password": "Password@123",
"enhanced_security_service": False,
"enhanced_monitor_service": False,
},
labels={
"test1": "test1",
"test2": "test2",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewKubernetesNodePool(ctx, "example", &tencentcloud.KubernetesNodePoolArgs{
ClusterId: pulumi.Any(tencentcloud_kubernetes_cluster.Managed_cluster.Id),
MaxSize: pulumi.Float64(6),
MinSize: pulumi.Float64(1),
VpcId: pulumi.Any(data.Tencentcloud_vpc_subnets.Vpc.Instance_list[0].Vpc_id),
SubnetIds: pulumi.StringArray{
data.Tencentcloud_vpc_subnets.Vpc.Instance_list[0].Subnet_id,
},
RetryPolicy: pulumi.String("INCREMENTAL_INTERVALS"),
DesiredCapacity: pulumi.Float64(4),
EnableAutoScale: pulumi.Bool(true),
MultiZoneSubnetPolicy: pulumi.String("EQUALITY"),
AutoScalingConfig: &tencentcloud.KubernetesNodePoolAutoScalingConfigArgs{
InstanceType: pulumi.Any(_var.Default_instance_type),
SystemDiskType: pulumi.String("CLOUD_PREMIUM"),
SystemDiskSize: pulumi.Float64(50),
OrderlySecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-24vswocp"),
pulumi.String("sg-3qntci2v"),
pulumi.String("sg-7y1t2wax"),
},
InstanceChargeType: pulumi.String("SPOTPAID"),
SpotInstanceType: pulumi.String("one-time"),
SpotMaxPrice: pulumi.String("1000"),
DataDisks: tencentcloud.KubernetesNodePoolAutoScalingConfigDataDiskArray{
&tencentcloud.KubernetesNodePoolAutoScalingConfigDataDiskArgs{
DiskType: pulumi.String("CLOUD_PREMIUM"),
DiskSize: pulumi.Float64(50),
},
},
InternetChargeType: pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
InternetMaxBandwidthOut: pulumi.Float64(10),
PublicIpAssigned: pulumi.Bool(true),
Password: pulumi.String("Password@123"),
EnhancedSecurityService: pulumi.Bool(false),
EnhancedMonitorService: pulumi.Bool(false),
},
Labels: pulumi.StringMap{
"test1": pulumi.String("test1"),
"test2": pulumi.String("test2"),
},
})
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 example = new Tencentcloud.KubernetesNodePool("example", new()
{
ClusterId = tencentcloud_kubernetes_cluster.Managed_cluster.Id,
MaxSize = 6,
MinSize = 1,
VpcId = data.Tencentcloud_vpc_subnets.Vpc.Instance_list[0].Vpc_id,
SubnetIds = new[]
{
data.Tencentcloud_vpc_subnets.Vpc.Instance_list[0].Subnet_id,
},
RetryPolicy = "INCREMENTAL_INTERVALS",
DesiredCapacity = 4,
EnableAutoScale = true,
MultiZoneSubnetPolicy = "EQUALITY",
AutoScalingConfig = new Tencentcloud.Inputs.KubernetesNodePoolAutoScalingConfigArgs
{
InstanceType = @var.Default_instance_type,
SystemDiskType = "CLOUD_PREMIUM",
SystemDiskSize = 50,
OrderlySecurityGroupIds = new[]
{
"sg-24vswocp",
"sg-3qntci2v",
"sg-7y1t2wax",
},
InstanceChargeType = "SPOTPAID",
SpotInstanceType = "one-time",
SpotMaxPrice = "1000",
DataDisks = new[]
{
new Tencentcloud.Inputs.KubernetesNodePoolAutoScalingConfigDataDiskArgs
{
DiskType = "CLOUD_PREMIUM",
DiskSize = 50,
},
},
InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
InternetMaxBandwidthOut = 10,
PublicIpAssigned = true,
Password = "Password@123",
EnhancedSecurityService = false,
EnhancedMonitorService = false,
},
Labels =
{
{ "test1", "test1" },
{ "test2", "test2" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.KubernetesNodePool;
import com.pulumi.tencentcloud.KubernetesNodePoolArgs;
import com.pulumi.tencentcloud.inputs.KubernetesNodePoolAutoScalingConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new KubernetesNodePool("example", KubernetesNodePoolArgs.builder()
.clusterId(tencentcloud_kubernetes_cluster.managed_cluster().id())
.maxSize(6)
.minSize(1)
.vpcId(data.tencentcloud_vpc_subnets().vpc().instance_list()[0].vpc_id())
.subnetIds(data.tencentcloud_vpc_subnets().vpc().instance_list()[0].subnet_id())
.retryPolicy("INCREMENTAL_INTERVALS")
.desiredCapacity(4)
.enableAutoScale(true)
.multiZoneSubnetPolicy("EQUALITY")
.autoScalingConfig(KubernetesNodePoolAutoScalingConfigArgs.builder()
.instanceType(var_.default_instance_type())
.systemDiskType("CLOUD_PREMIUM")
.systemDiskSize("50")
.orderlySecurityGroupIds(
"sg-24vswocp",
"sg-3qntci2v",
"sg-7y1t2wax")
.instanceChargeType("SPOTPAID")
.spotInstanceType("one-time")
.spotMaxPrice("1000")
.dataDisks(KubernetesNodePoolAutoScalingConfigDataDiskArgs.builder()
.diskType("CLOUD_PREMIUM")
.diskSize(50)
.build())
.internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
.internetMaxBandwidthOut(10)
.publicIpAssigned(true)
.password("Password@123")
.enhancedSecurityService(false)
.enhancedMonitorService(false)
.build())
.labels(Map.ofEntries(
Map.entry("test1", "test1"),
Map.entry("test2", "test2")
))
.build());
}
}
resources:
example:
type: tencentcloud:KubernetesNodePool
properties:
clusterId: ${tencentcloud_kubernetes_cluster.managed_cluster.id}
maxSize: 6
minSize: 1
vpcId: ${data.tencentcloud_vpc_subnets.vpc.instance_list[0].vpc_id}
subnetIds:
- ${data.tencentcloud_vpc_subnets.vpc.instance_list[0].subnet_id}
retryPolicy: INCREMENTAL_INTERVALS
desiredCapacity: 4
enableAutoScale: true
multiZoneSubnetPolicy: EQUALITY
autoScalingConfig:
instanceType: ${var.default_instance_type}
systemDiskType: CLOUD_PREMIUM
systemDiskSize: '50'
orderlySecurityGroupIds:
- sg-24vswocp
- sg-3qntci2v
- sg-7y1t2wax
instanceChargeType: SPOTPAID
spotInstanceType: one-time
spotMaxPrice: '1000'
dataDisks:
- diskType: CLOUD_PREMIUM
diskSize: 50
internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
internetMaxBandwidthOut: 10
publicIpAssigned: true
password: Password@123
enhancedSecurityService: false
enhancedMonitorService: false
labels:
test1: test1
test2: test2
If instance_type is CBM
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.KubernetesNodePool("example", {
autoScalingConfig: {
enhancedMonitorService: false,
enhancedSecurityService: false,
hostName: "example",
hostNameStyle: "ORIGINAL",
instanceType: "BMI5.24XLARGE384",
internetChargeType: "TRAFFIC_POSTPAID_BY_HOUR",
internetMaxBandwidthOut: 10,
orderlySecurityGroupIds: ["sg-4z20n68d"],
password: "Password@123",
publicIpAssigned: true,
systemDiskSize: 440,
systemDiskType: "LOCAL_BASIC",
},
clusterId: "cls-23ieal0c",
deleteKeepInstance: false,
enableAutoScale: true,
maxSize: 100,
minSize: 1,
multiZoneSubnetPolicy: "EQUALITY",
nodeConfig: {
dataDisks: [
{
diskSize: 3570,
diskType: "LOCAL_NVME",
fileSystem: "ext4",
mountTarget: "/var/lib/data1",
},
{
diskSize: 3570,
diskType: "LOCAL_NVME",
fileSystem: "ext4",
mountTarget: "/var/lib/data2",
},
],
},
nodeOs: "img-eb30mz89",
retryPolicy: "INCREMENTAL_INTERVALS",
subnetIds: ["subnet-d4umunpy"],
vpcId: "vpc-i5yyodl9",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.KubernetesNodePool("example",
auto_scaling_config={
"enhanced_monitor_service": False,
"enhanced_security_service": False,
"host_name": "example",
"host_name_style": "ORIGINAL",
"instance_type": "BMI5.24XLARGE384",
"internet_charge_type": "TRAFFIC_POSTPAID_BY_HOUR",
"internet_max_bandwidth_out": 10,
"orderly_security_group_ids": ["sg-4z20n68d"],
"password": "Password@123",
"public_ip_assigned": True,
"system_disk_size": 440,
"system_disk_type": "LOCAL_BASIC",
},
cluster_id="cls-23ieal0c",
delete_keep_instance=False,
enable_auto_scale=True,
max_size=100,
min_size=1,
multi_zone_subnet_policy="EQUALITY",
node_config={
"data_disks": [
{
"disk_size": 3570,
"disk_type": "LOCAL_NVME",
"file_system": "ext4",
"mount_target": "/var/lib/data1",
},
{
"disk_size": 3570,
"disk_type": "LOCAL_NVME",
"file_system": "ext4",
"mount_target": "/var/lib/data2",
},
],
},
node_os="img-eb30mz89",
retry_policy="INCREMENTAL_INTERVALS",
subnet_ids=["subnet-d4umunpy"],
vpc_id="vpc-i5yyodl9")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewKubernetesNodePool(ctx, "example", &tencentcloud.KubernetesNodePoolArgs{
AutoScalingConfig: &tencentcloud.KubernetesNodePoolAutoScalingConfigArgs{
EnhancedMonitorService: pulumi.Bool(false),
EnhancedSecurityService: pulumi.Bool(false),
HostName: pulumi.String("example"),
HostNameStyle: pulumi.String("ORIGINAL"),
InstanceType: pulumi.String("BMI5.24XLARGE384"),
InternetChargeType: pulumi.String("TRAFFIC_POSTPAID_BY_HOUR"),
InternetMaxBandwidthOut: pulumi.Float64(10),
OrderlySecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-4z20n68d"),
},
Password: pulumi.String("Password@123"),
PublicIpAssigned: pulumi.Bool(true),
SystemDiskSize: pulumi.Float64(440),
SystemDiskType: pulumi.String("LOCAL_BASIC"),
},
ClusterId: pulumi.String("cls-23ieal0c"),
DeleteKeepInstance: pulumi.Bool(false),
EnableAutoScale: pulumi.Bool(true),
MaxSize: pulumi.Float64(100),
MinSize: pulumi.Float64(1),
MultiZoneSubnetPolicy: pulumi.String("EQUALITY"),
NodeConfig: &tencentcloud.KubernetesNodePoolNodeConfigArgs{
DataDisks: tencentcloud.KubernetesNodePoolNodeConfigDataDiskArray{
&tencentcloud.KubernetesNodePoolNodeConfigDataDiskArgs{
DiskSize: pulumi.Float64(3570),
DiskType: pulumi.String("LOCAL_NVME"),
FileSystem: pulumi.String("ext4"),
MountTarget: pulumi.String("/var/lib/data1"),
},
&tencentcloud.KubernetesNodePoolNodeConfigDataDiskArgs{
DiskSize: pulumi.Float64(3570),
DiskType: pulumi.String("LOCAL_NVME"),
FileSystem: pulumi.String("ext4"),
MountTarget: pulumi.String("/var/lib/data2"),
},
},
},
NodeOs: pulumi.String("img-eb30mz89"),
RetryPolicy: pulumi.String("INCREMENTAL_INTERVALS"),
SubnetIds: pulumi.StringArray{
pulumi.String("subnet-d4umunpy"),
},
VpcId: pulumi.String("vpc-i5yyodl9"),
})
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 example = new Tencentcloud.KubernetesNodePool("example", new()
{
AutoScalingConfig = new Tencentcloud.Inputs.KubernetesNodePoolAutoScalingConfigArgs
{
EnhancedMonitorService = false,
EnhancedSecurityService = false,
HostName = "example",
HostNameStyle = "ORIGINAL",
InstanceType = "BMI5.24XLARGE384",
InternetChargeType = "TRAFFIC_POSTPAID_BY_HOUR",
InternetMaxBandwidthOut = 10,
OrderlySecurityGroupIds = new[]
{
"sg-4z20n68d",
},
Password = "Password@123",
PublicIpAssigned = true,
SystemDiskSize = 440,
SystemDiskType = "LOCAL_BASIC",
},
ClusterId = "cls-23ieal0c",
DeleteKeepInstance = false,
EnableAutoScale = true,
MaxSize = 100,
MinSize = 1,
MultiZoneSubnetPolicy = "EQUALITY",
NodeConfig = new Tencentcloud.Inputs.KubernetesNodePoolNodeConfigArgs
{
DataDisks = new[]
{
new Tencentcloud.Inputs.KubernetesNodePoolNodeConfigDataDiskArgs
{
DiskSize = 3570,
DiskType = "LOCAL_NVME",
FileSystem = "ext4",
MountTarget = "/var/lib/data1",
},
new Tencentcloud.Inputs.KubernetesNodePoolNodeConfigDataDiskArgs
{
DiskSize = 3570,
DiskType = "LOCAL_NVME",
FileSystem = "ext4",
MountTarget = "/var/lib/data2",
},
},
},
NodeOs = "img-eb30mz89",
RetryPolicy = "INCREMENTAL_INTERVALS",
SubnetIds = new[]
{
"subnet-d4umunpy",
},
VpcId = "vpc-i5yyodl9",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.KubernetesNodePool;
import com.pulumi.tencentcloud.KubernetesNodePoolArgs;
import com.pulumi.tencentcloud.inputs.KubernetesNodePoolAutoScalingConfigArgs;
import com.pulumi.tencentcloud.inputs.KubernetesNodePoolNodeConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new KubernetesNodePool("example", KubernetesNodePoolArgs.builder()
.autoScalingConfig(KubernetesNodePoolAutoScalingConfigArgs.builder()
.enhancedMonitorService(false)
.enhancedSecurityService(false)
.hostName("example")
.hostNameStyle("ORIGINAL")
.instanceType("BMI5.24XLARGE384")
.internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
.internetMaxBandwidthOut(10)
.orderlySecurityGroupIds("sg-4z20n68d")
.password("Password@123")
.publicIpAssigned(true)
.systemDiskSize("440")
.systemDiskType("LOCAL_BASIC")
.build())
.clusterId("cls-23ieal0c")
.deleteKeepInstance(false)
.enableAutoScale(true)
.maxSize(100)
.minSize(1)
.multiZoneSubnetPolicy("EQUALITY")
.nodeConfig(KubernetesNodePoolNodeConfigArgs.builder()
.dataDisks(
KubernetesNodePoolNodeConfigDataDiskArgs.builder()
.diskSize(3570)
.diskType("LOCAL_NVME")
.fileSystem("ext4")
.mountTarget("/var/lib/data1")
.build(),
KubernetesNodePoolNodeConfigDataDiskArgs.builder()
.diskSize(3570)
.diskType("LOCAL_NVME")
.fileSystem("ext4")
.mountTarget("/var/lib/data2")
.build())
.build())
.nodeOs("img-eb30mz89")
.retryPolicy("INCREMENTAL_INTERVALS")
.subnetIds("subnet-d4umunpy")
.vpcId("vpc-i5yyodl9")
.build());
}
}
resources:
example:
type: tencentcloud:KubernetesNodePool
properties:
autoScalingConfig:
enhancedMonitorService: false
enhancedSecurityService: false
hostName: example
hostNameStyle: ORIGINAL
instanceType: BMI5.24XLARGE384
internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
internetMaxBandwidthOut: 10
orderlySecurityGroupIds:
- sg-4z20n68d
password: Password@123
publicIpAssigned: true
systemDiskSize: '440'
systemDiskType: LOCAL_BASIC
clusterId: cls-23ieal0c
deleteKeepInstance: false
enableAutoScale: true
maxSize: 100
minSize: 1
multiZoneSubnetPolicy: EQUALITY
nodeConfig:
dataDisks:
- diskSize: 3570
diskType: LOCAL_NVME
fileSystem: ext4
mountTarget: /var/lib/data1
- diskSize: 3570
diskType: LOCAL_NVME
fileSystem: ext4
mountTarget: /var/lib/data2
nodeOs: img-eb30mz89
retryPolicy: INCREMENTAL_INTERVALS
subnetIds:
- subnet-d4umunpy
vpcId: vpc-i5yyodl9
Wait for all scaling nodes to be ready with wait_node_ready and scale_tolerance parameters. The default maximum scaling timeout is 30 minutes.
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.KubernetesNodePool;
import com.pulumi.tencentcloud.KubernetesNodePoolArgs;
import com.pulumi.tencentcloud.inputs.KubernetesNodePoolAutoScalingConfigArgs;
import com.pulumi.tencentcloud.inputs.KubernetesNodePoolTaintArgs;
import com.pulumi.tencentcloud.inputs.KubernetesNodePoolNodeConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new KubernetesNodePool("example", KubernetesNodePoolArgs.builder()
.clusterId(tencentcloud_kubernetes_cluster.managed_cluster().id())
.maxSize(100)
.minSize(1)
.vpcId(data.tencentcloud_vpc_subnets().vpc().instance_list()[0].vpc_id())
.subnetIds(data.tencentcloud_vpc_subnets().vpc().instance_list()[0].subnet_id())
.retryPolicy("INCREMENTAL_INTERVALS")
.desiredCapacity(50)
.enableAutoScale(false)
.waitNodeReady(true)
.scaleTolerance(90)
.multiZoneSubnetPolicy("EQUALITY")
.nodeOs("img-6n21msk1")
.deleteKeepInstance(false)
.autoScalingConfig(KubernetesNodePoolAutoScalingConfigArgs.builder()
.instanceType(var_.default_instance_type())
.systemDiskType("CLOUD_PREMIUM")
.systemDiskSize("50")
.orderlySecurityGroupIds("sg-bw28gmso")
.dataDisks(KubernetesNodePoolAutoScalingConfigDataDiskArgs.builder()
.diskType("CLOUD_PREMIUM")
.diskSize(50)
.deleteWithInstance(true)
.build())
.internetChargeType("TRAFFIC_POSTPAID_BY_HOUR")
.internetMaxBandwidthOut(10)
.publicIpAssigned(true)
.password("test123#")
.enhancedSecurityService(false)
.enhancedMonitorService(false)
.hostName("12.123.0.0")
.hostNameStyle("ORIGINAL")
.build())
.labels(Map.ofEntries(
Map.entry("test1", "test1"),
Map.entry("test2", "test2")
))
.taints(
KubernetesNodePoolTaintArgs.builder()
.key("test_taint")
.value("taint_value")
.effect("PreferNoSchedule")
.build(),
KubernetesNodePoolTaintArgs.builder()
.key("test_taint2")
.value("taint_value2")
.effect("PreferNoSchedule")
.build())
.nodeConfig(KubernetesNodePoolNodeConfigArgs.builder()
.dockerGraphPath("/var/lib/docker")
.extraArgs("root-dir=/var/lib/kubelet")
.build())
.timeouts(KubernetesNodePoolTimeoutsArgs.builder()
.create("30m")
.update("30m")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:KubernetesNodePool
properties:
clusterId: ${tencentcloud_kubernetes_cluster.managed_cluster.id}
maxSize: 100
minSize: 1
vpcId: ${data.tencentcloud_vpc_subnets.vpc.instance_list[0].vpc_id}
subnetIds:
- ${data.tencentcloud_vpc_subnets.vpc.instance_list[0].subnet_id}
retryPolicy: INCREMENTAL_INTERVALS
desiredCapacity: 50
enableAutoScale: false
waitNodeReady: true
scaleTolerance: 90
multiZoneSubnetPolicy: EQUALITY
nodeOs: img-6n21msk1
deleteKeepInstance: false
autoScalingConfig:
instanceType: ${var.default_instance_type}
systemDiskType: CLOUD_PREMIUM
systemDiskSize: '50'
orderlySecurityGroupIds:
- sg-bw28gmso
dataDisks:
- diskType: CLOUD_PREMIUM
diskSize: 50
deleteWithInstance: true
internetChargeType: TRAFFIC_POSTPAID_BY_HOUR
internetMaxBandwidthOut: 10
publicIpAssigned: true
password: test123#
enhancedSecurityService: false
enhancedMonitorService: false
hostName: 12.123.0.0
hostNameStyle: ORIGINAL
labels:
test1: test1
test2: test2
taints:
- key: test_taint
value: taint_value
effect: PreferNoSchedule
- key: test_taint2
value: taint_value2
effect: PreferNoSchedule
nodeConfig:
dockerGraphPath: /var/lib/docker
extraArgs:
- root-dir=/var/lib/kubelet
timeouts:
- create: 30m
update: 30m
Create KubernetesNodePool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubernetesNodePool(name: string, args: KubernetesNodePoolArgs, opts?: CustomResourceOptions);
@overload
def KubernetesNodePool(resource_name: str,
args: KubernetesNodePoolArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KubernetesNodePool(resource_name: str,
opts: Optional[ResourceOptions] = None,
max_size: Optional[float] = None,
auto_scaling_config: Optional[KubernetesNodePoolAutoScalingConfigArgs] = None,
vpc_id: Optional[str] = None,
cluster_id: Optional[str] = None,
min_size: Optional[float] = None,
node_os: Optional[str] = None,
retry_policy: Optional[str] = None,
desired_capacity: Optional[float] = None,
enable_auto_scale: Optional[bool] = None,
kubernetes_node_pool_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
delete_keep_instance: Optional[bool] = None,
default_cooldown: Optional[float] = None,
multi_zone_subnet_policy: Optional[str] = None,
name: Optional[str] = None,
node_config: Optional[KubernetesNodePoolNodeConfigArgs] = None,
annotations: Optional[Sequence[KubernetesNodePoolAnnotationArgs]] = None,
node_os_type: Optional[str] = None,
deletion_protection: Optional[bool] = None,
scale_tolerance: Optional[float] = None,
scaling_group_name: Optional[str] = None,
scaling_group_project_id: Optional[float] = None,
scaling_mode: Optional[str] = None,
subnet_ids: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
taints: Optional[Sequence[KubernetesNodePoolTaintArgs]] = None,
termination_policies: Optional[Sequence[str]] = None,
timeouts: Optional[KubernetesNodePoolTimeoutsArgs] = None,
unschedulable: Optional[float] = None,
auto_update_instance_tags: Optional[bool] = None,
wait_node_ready: Optional[bool] = None,
zones: Optional[Sequence[str]] = None)
func NewKubernetesNodePool(ctx *Context, name string, args KubernetesNodePoolArgs, opts ...ResourceOption) (*KubernetesNodePool, error)
public KubernetesNodePool(string name, KubernetesNodePoolArgs args, CustomResourceOptions? opts = null)
public KubernetesNodePool(String name, KubernetesNodePoolArgs args)
public KubernetesNodePool(String name, KubernetesNodePoolArgs args, CustomResourceOptions options)
type: tencentcloud:KubernetesNodePool
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 KubernetesNodePoolArgs
- 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 KubernetesNodePoolArgs
- 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 KubernetesNodePoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesNodePoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubernetesNodePoolArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
KubernetesNodePool 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 KubernetesNodePool resource accepts the following input properties:
- Auto
Scaling KubernetesConfig Node Pool Auto Scaling Config - Auto scaling config parameters.
- Cluster
Id string - ID of the cluster.
- Max
Size double - Maximum number of node.
- Min
Size double - Minimum number of node.
- Vpc
Id string - ID of VPC network.
- Annotations
List<Kubernetes
Node Pool Annotation> - Node Annotation List.
- bool
- Automatically update instance tags. The default value is false. After configuration, if the scaling group tags are updated, the tags of the running instances in the scaling group will be updated synchronously (synchronous updates only support adding and modifying tags, and do not support deleting tags for the time being). Synchronous updates do not take effect immediately and there is a certain delay.
- Default
Cooldown double - Seconds of scaling group cool down. Default value is
300
. - Delete
Keep boolInstance - Indicate to keep the CVM instance when delete the node pool. Default is
true
. - Deletion
Protection bool - Indicates whether the node pool deletion protection is enabled.
- Desired
Capacity double - Desired capacity of the node. If
enable_auto_scale
is settrue
, this will be a computed parameter. - Enable
Auto boolScale - Indicate whether to enable auto scaling or not.
- Kubernetes
Node stringPool Id - ID of the resource.
- Labels Dictionary<string, string>
- Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').
- Multi
Zone stringSubnet Policy - Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
- Name string
- Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (
-
) and decimal points. - Node
Config KubernetesNode Pool Node Config - Node config.
- Node
Os string - Operating system of the cluster. Please refer to TencentCloud Documentation for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
- Node
Os stringType - The image version of the node. Valida values are
DOCKER_CUSTOMIZE
andGENERAL
. Default isGENERAL
. This parameter will only affect new nodes, not including the existing nodes. - Retry
Policy string - Available values for retry policies include
IMMEDIATE_RETRY
andINCREMENTAL_INTERVALS
. - Scale
Tolerance double - Control how many expectations(
desired_capacity
) can be tolerated successfully. Unit is percentage, Default is100
. Only can be set ifwait_node_ready
istrue
. - Scaling
Group stringName - Name of relative scaling group.
- Scaling
Group doubleProject Id - Project ID the scaling group belongs to.
- Scaling
Mode string - Auto scaling mode. Valid values are
CLASSIC_SCALING
(scaling by create/destroy instances),WAKE_UP_STOPPED_SCALING
(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking). - Subnet
Ids List<string> - ID list of subnet, and for VPC it is required.
- Dictionary<string, string>
- Node pool tag specifications, will passthroughs to the scaling instances.
- Taints
List<Kubernetes
Node Pool Taint> - Taints of kubernetes node pool created nodes.
- Termination
Policies List<string> - Policy of scaling group termination. Available values:
["OLDEST_INSTANCE"]
,["NEWEST_INSTANCE"]
. - Timeouts
Kubernetes
Node Pool Timeouts - Unschedulable double
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- Wait
Node boolReady - Whether to wait for all desired nodes to be ready. Default is false. Only can be set if
enable_auto_scale
isfalse
. - Zones List<string>
- List of auto scaling group available zones, for Basic network it is required.
- Auto
Scaling KubernetesConfig Node Pool Auto Scaling Config Args - Auto scaling config parameters.
- Cluster
Id string - ID of the cluster.
- Max
Size float64 - Maximum number of node.
- Min
Size float64 - Minimum number of node.
- Vpc
Id string - ID of VPC network.
- Annotations
[]Kubernetes
Node Pool Annotation Args - Node Annotation List.
- bool
- Automatically update instance tags. The default value is false. After configuration, if the scaling group tags are updated, the tags of the running instances in the scaling group will be updated synchronously (synchronous updates only support adding and modifying tags, and do not support deleting tags for the time being). Synchronous updates do not take effect immediately and there is a certain delay.
- Default
Cooldown float64 - Seconds of scaling group cool down. Default value is
300
. - Delete
Keep boolInstance - Indicate to keep the CVM instance when delete the node pool. Default is
true
. - Deletion
Protection bool - Indicates whether the node pool deletion protection is enabled.
- Desired
Capacity float64 - Desired capacity of the node. If
enable_auto_scale
is settrue
, this will be a computed parameter. - Enable
Auto boolScale - Indicate whether to enable auto scaling or not.
- Kubernetes
Node stringPool Id - ID of the resource.
- Labels map[string]string
- Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').
- Multi
Zone stringSubnet Policy - Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
- Name string
- Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (
-
) and decimal points. - Node
Config KubernetesNode Pool Node Config Args - Node config.
- Node
Os string - Operating system of the cluster. Please refer to TencentCloud Documentation for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
- Node
Os stringType - The image version of the node. Valida values are
DOCKER_CUSTOMIZE
andGENERAL
. Default isGENERAL
. This parameter will only affect new nodes, not including the existing nodes. - Retry
Policy string - Available values for retry policies include
IMMEDIATE_RETRY
andINCREMENTAL_INTERVALS
. - Scale
Tolerance float64 - Control how many expectations(
desired_capacity
) can be tolerated successfully. Unit is percentage, Default is100
. Only can be set ifwait_node_ready
istrue
. - Scaling
Group stringName - Name of relative scaling group.
- Scaling
Group float64Project Id - Project ID the scaling group belongs to.
- Scaling
Mode string - Auto scaling mode. Valid values are
CLASSIC_SCALING
(scaling by create/destroy instances),WAKE_UP_STOPPED_SCALING
(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking). - Subnet
Ids []string - ID list of subnet, and for VPC it is required.
- map[string]string
- Node pool tag specifications, will passthroughs to the scaling instances.
- Taints
[]Kubernetes
Node Pool Taint Args - Taints of kubernetes node pool created nodes.
- Termination
Policies []string - Policy of scaling group termination. Available values:
["OLDEST_INSTANCE"]
,["NEWEST_INSTANCE"]
. - Timeouts
Kubernetes
Node Pool Timeouts Args - Unschedulable float64
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- Wait
Node boolReady - Whether to wait for all desired nodes to be ready. Default is false. Only can be set if
enable_auto_scale
isfalse
. - Zones []string
- List of auto scaling group available zones, for Basic network it is required.
- auto
Scaling KubernetesConfig Node Pool Auto Scaling Config - Auto scaling config parameters.
- cluster
Id String - ID of the cluster.
- max
Size Double - Maximum number of node.
- min
Size Double - Minimum number of node.
- vpc
Id String - ID of VPC network.
- annotations
List<Kubernetes
Node Pool Annotation> - Node Annotation List.
- Boolean
- Automatically update instance tags. The default value is false. After configuration, if the scaling group tags are updated, the tags of the running instances in the scaling group will be updated synchronously (synchronous updates only support adding and modifying tags, and do not support deleting tags for the time being). Synchronous updates do not take effect immediately and there is a certain delay.
- default
Cooldown Double - Seconds of scaling group cool down. Default value is
300
. - delete
Keep BooleanInstance - Indicate to keep the CVM instance when delete the node pool. Default is
true
. - deletion
Protection Boolean - Indicates whether the node pool deletion protection is enabled.
- desired
Capacity Double - Desired capacity of the node. If
enable_auto_scale
is settrue
, this will be a computed parameter. - enable
Auto BooleanScale - Indicate whether to enable auto scaling or not.
- kubernetes
Node StringPool Id - ID of the resource.
- labels Map<String,String>
- Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').
- multi
Zone StringSubnet Policy - Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
- name String
- Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (
-
) and decimal points. - node
Config KubernetesNode Pool Node Config - Node config.
- node
Os String - Operating system of the cluster. Please refer to TencentCloud Documentation for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
- node
Os StringType - The image version of the node. Valida values are
DOCKER_CUSTOMIZE
andGENERAL
. Default isGENERAL
. This parameter will only affect new nodes, not including the existing nodes. - retry
Policy String - Available values for retry policies include
IMMEDIATE_RETRY
andINCREMENTAL_INTERVALS
. - scale
Tolerance Double - Control how many expectations(
desired_capacity
) can be tolerated successfully. Unit is percentage, Default is100
. Only can be set ifwait_node_ready
istrue
. - scaling
Group StringName - Name of relative scaling group.
- scaling
Group DoubleProject Id - Project ID the scaling group belongs to.
- scaling
Mode String - Auto scaling mode. Valid values are
CLASSIC_SCALING
(scaling by create/destroy instances),WAKE_UP_STOPPED_SCALING
(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking). - subnet
Ids List<String> - ID list of subnet, and for VPC it is required.
- Map<String,String>
- Node pool tag specifications, will passthroughs to the scaling instances.
- taints
List<Kubernetes
Node Pool Taint> - Taints of kubernetes node pool created nodes.
- termination
Policies List<String> - Policy of scaling group termination. Available values:
["OLDEST_INSTANCE"]
,["NEWEST_INSTANCE"]
. - timeouts
Kubernetes
Node Pool Timeouts - unschedulable Double
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- wait
Node BooleanReady - Whether to wait for all desired nodes to be ready. Default is false. Only can be set if
enable_auto_scale
isfalse
. - zones List<String>
- List of auto scaling group available zones, for Basic network it is required.
- auto
Scaling KubernetesConfig Node Pool Auto Scaling Config - Auto scaling config parameters.
- cluster
Id string - ID of the cluster.
- max
Size number - Maximum number of node.
- min
Size number - Minimum number of node.
- vpc
Id string - ID of VPC network.
- annotations
Kubernetes
Node Pool Annotation[] - Node Annotation List.
- boolean
- Automatically update instance tags. The default value is false. After configuration, if the scaling group tags are updated, the tags of the running instances in the scaling group will be updated synchronously (synchronous updates only support adding and modifying tags, and do not support deleting tags for the time being). Synchronous updates do not take effect immediately and there is a certain delay.
- default
Cooldown number - Seconds of scaling group cool down. Default value is
300
. - delete
Keep booleanInstance - Indicate to keep the CVM instance when delete the node pool. Default is
true
. - deletion
Protection boolean - Indicates whether the node pool deletion protection is enabled.
- desired
Capacity number - Desired capacity of the node. If
enable_auto_scale
is settrue
, this will be a computed parameter. - enable
Auto booleanScale - Indicate whether to enable auto scaling or not.
- kubernetes
Node stringPool Id - ID of the resource.
- labels {[key: string]: string}
- Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').
- multi
Zone stringSubnet Policy - Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
- name string
- Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (
-
) and decimal points. - node
Config KubernetesNode Pool Node Config - Node config.
- node
Os string - Operating system of the cluster. Please refer to TencentCloud Documentation for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
- node
Os stringType - The image version of the node. Valida values are
DOCKER_CUSTOMIZE
andGENERAL
. Default isGENERAL
. This parameter will only affect new nodes, not including the existing nodes. - retry
Policy string - Available values for retry policies include
IMMEDIATE_RETRY
andINCREMENTAL_INTERVALS
. - scale
Tolerance number - Control how many expectations(
desired_capacity
) can be tolerated successfully. Unit is percentage, Default is100
. Only can be set ifwait_node_ready
istrue
. - scaling
Group stringName - Name of relative scaling group.
- scaling
Group numberProject Id - Project ID the scaling group belongs to.
- scaling
Mode string - Auto scaling mode. Valid values are
CLASSIC_SCALING
(scaling by create/destroy instances),WAKE_UP_STOPPED_SCALING
(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking). - subnet
Ids string[] - ID list of subnet, and for VPC it is required.
- {[key: string]: string}
- Node pool tag specifications, will passthroughs to the scaling instances.
- taints
Kubernetes
Node Pool Taint[] - Taints of kubernetes node pool created nodes.
- termination
Policies string[] - Policy of scaling group termination. Available values:
["OLDEST_INSTANCE"]
,["NEWEST_INSTANCE"]
. - timeouts
Kubernetes
Node Pool Timeouts - unschedulable number
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- wait
Node booleanReady - Whether to wait for all desired nodes to be ready. Default is false. Only can be set if
enable_auto_scale
isfalse
. - zones string[]
- List of auto scaling group available zones, for Basic network it is required.
- auto_
scaling_ Kubernetesconfig Node Pool Auto Scaling Config Args - Auto scaling config parameters.
- cluster_
id str - ID of the cluster.
- max_
size float - Maximum number of node.
- min_
size float - Minimum number of node.
- vpc_
id str - ID of VPC network.
- annotations
Sequence[Kubernetes
Node Pool Annotation Args] - Node Annotation List.
- bool
- Automatically update instance tags. The default value is false. After configuration, if the scaling group tags are updated, the tags of the running instances in the scaling group will be updated synchronously (synchronous updates only support adding and modifying tags, and do not support deleting tags for the time being). Synchronous updates do not take effect immediately and there is a certain delay.
- default_
cooldown float - Seconds of scaling group cool down. Default value is
300
. - delete_
keep_ boolinstance - Indicate to keep the CVM instance when delete the node pool. Default is
true
. - deletion_
protection bool - Indicates whether the node pool deletion protection is enabled.
- desired_
capacity float - Desired capacity of the node. If
enable_auto_scale
is settrue
, this will be a computed parameter. - enable_
auto_ boolscale - Indicate whether to enable auto scaling or not.
- kubernetes_
node_ strpool_ id - ID of the resource.
- labels Mapping[str, str]
- Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').
- multi_
zone_ strsubnet_ policy - Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
- name str
- Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (
-
) and decimal points. - node_
config KubernetesNode Pool Node Config Args - Node config.
- node_
os str - Operating system of the cluster. Please refer to TencentCloud Documentation for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
- node_
os_ strtype - The image version of the node. Valida values are
DOCKER_CUSTOMIZE
andGENERAL
. Default isGENERAL
. This parameter will only affect new nodes, not including the existing nodes. - retry_
policy str - Available values for retry policies include
IMMEDIATE_RETRY
andINCREMENTAL_INTERVALS
. - scale_
tolerance float - Control how many expectations(
desired_capacity
) can be tolerated successfully. Unit is percentage, Default is100
. Only can be set ifwait_node_ready
istrue
. - scaling_
group_ strname - Name of relative scaling group.
- scaling_
group_ floatproject_ id - Project ID the scaling group belongs to.
- scaling_
mode str - Auto scaling mode. Valid values are
CLASSIC_SCALING
(scaling by create/destroy instances),WAKE_UP_STOPPED_SCALING
(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking). - subnet_
ids Sequence[str] - ID list of subnet, and for VPC it is required.
- Mapping[str, str]
- Node pool tag specifications, will passthroughs to the scaling instances.
- taints
Sequence[Kubernetes
Node Pool Taint Args] - Taints of kubernetes node pool created nodes.
- termination_
policies Sequence[str] - Policy of scaling group termination. Available values:
["OLDEST_INSTANCE"]
,["NEWEST_INSTANCE"]
. - timeouts
Kubernetes
Node Pool Timeouts Args - unschedulable float
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- wait_
node_ boolready - Whether to wait for all desired nodes to be ready. Default is false. Only can be set if
enable_auto_scale
isfalse
. - zones Sequence[str]
- List of auto scaling group available zones, for Basic network it is required.
- auto
Scaling Property MapConfig - Auto scaling config parameters.
- cluster
Id String - ID of the cluster.
- max
Size Number - Maximum number of node.
- min
Size Number - Minimum number of node.
- vpc
Id String - ID of VPC network.
- annotations List<Property Map>
- Node Annotation List.
- Boolean
- Automatically update instance tags. The default value is false. After configuration, if the scaling group tags are updated, the tags of the running instances in the scaling group will be updated synchronously (synchronous updates only support adding and modifying tags, and do not support deleting tags for the time being). Synchronous updates do not take effect immediately and there is a certain delay.
- default
Cooldown Number - Seconds of scaling group cool down. Default value is
300
. - delete
Keep BooleanInstance - Indicate to keep the CVM instance when delete the node pool. Default is
true
. - deletion
Protection Boolean - Indicates whether the node pool deletion protection is enabled.
- desired
Capacity Number - Desired capacity of the node. If
enable_auto_scale
is settrue
, this will be a computed parameter. - enable
Auto BooleanScale - Indicate whether to enable auto scaling or not.
- kubernetes
Node StringPool Id - ID of the resource.
- labels Map<String>
- Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').
- multi
Zone StringSubnet Policy - Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
- name String
- Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (
-
) and decimal points. - node
Config Property Map - Node config.
- node
Os String - Operating system of the cluster. Please refer to TencentCloud Documentation for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
- node
Os StringType - The image version of the node. Valida values are
DOCKER_CUSTOMIZE
andGENERAL
. Default isGENERAL
. This parameter will only affect new nodes, not including the existing nodes. - retry
Policy String - Available values for retry policies include
IMMEDIATE_RETRY
andINCREMENTAL_INTERVALS
. - scale
Tolerance Number - Control how many expectations(
desired_capacity
) can be tolerated successfully. Unit is percentage, Default is100
. Only can be set ifwait_node_ready
istrue
. - scaling
Group StringName - Name of relative scaling group.
- scaling
Group NumberProject Id - Project ID the scaling group belongs to.
- scaling
Mode String - Auto scaling mode. Valid values are
CLASSIC_SCALING
(scaling by create/destroy instances),WAKE_UP_STOPPED_SCALING
(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking). - subnet
Ids List<String> - ID list of subnet, and for VPC it is required.
- Map<String>
- Node pool tag specifications, will passthroughs to the scaling instances.
- taints List<Property Map>
- Taints of kubernetes node pool created nodes.
- termination
Policies List<String> - Policy of scaling group termination. Available values:
["OLDEST_INSTANCE"]
,["NEWEST_INSTANCE"]
. - timeouts Property Map
- unschedulable Number
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- wait
Node BooleanReady - Whether to wait for all desired nodes to be ready. Default is false. Only can be set if
enable_auto_scale
isfalse
. - zones List<String>
- List of auto scaling group available zones, for Basic network it is required.
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesNodePool resource produces the following output properties:
- Auto
Scaling stringGroup Id - The auto scaling group ID.
- Autoscaling
Added doubleTotal - The total of autoscaling added node.
- Id string
- The provider-assigned unique ID for this managed resource.
- Launch
Config stringId - The launch config ID.
- Manually
Added doubleTotal - The total of manually added node.
- Node
Count double - The total node count.
- Status string
- Status of the node pool.
- Auto
Scaling stringGroup Id - The auto scaling group ID.
- Autoscaling
Added float64Total - The total of autoscaling added node.
- Id string
- The provider-assigned unique ID for this managed resource.
- Launch
Config stringId - The launch config ID.
- Manually
Added float64Total - The total of manually added node.
- Node
Count float64 - The total node count.
- Status string
- Status of the node pool.
- auto
Scaling StringGroup Id - The auto scaling group ID.
- autoscaling
Added DoubleTotal - The total of autoscaling added node.
- id String
- The provider-assigned unique ID for this managed resource.
- launch
Config StringId - The launch config ID.
- manually
Added DoubleTotal - The total of manually added node.
- node
Count Double - The total node count.
- status String
- Status of the node pool.
- auto
Scaling stringGroup Id - The auto scaling group ID.
- autoscaling
Added numberTotal - The total of autoscaling added node.
- id string
- The provider-assigned unique ID for this managed resource.
- launch
Config stringId - The launch config ID.
- manually
Added numberTotal - The total of manually added node.
- node
Count number - The total node count.
- status string
- Status of the node pool.
- auto_
scaling_ strgroup_ id - The auto scaling group ID.
- autoscaling_
added_ floattotal - The total of autoscaling added node.
- id str
- The provider-assigned unique ID for this managed resource.
- launch_
config_ strid - The launch config ID.
- manually_
added_ floattotal - The total of manually added node.
- node_
count float - The total node count.
- status str
- Status of the node pool.
- auto
Scaling StringGroup Id - The auto scaling group ID.
- autoscaling
Added NumberTotal - The total of autoscaling added node.
- id String
- The provider-assigned unique ID for this managed resource.
- launch
Config StringId - The launch config ID.
- manually
Added NumberTotal - The total of manually added node.
- node
Count Number - The total node count.
- status String
- Status of the node pool.
Look up Existing KubernetesNodePool Resource
Get an existing KubernetesNodePool 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?: KubernetesNodePoolState, opts?: CustomResourceOptions): KubernetesNodePool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
annotations: Optional[Sequence[KubernetesNodePoolAnnotationArgs]] = None,
auto_scaling_config: Optional[KubernetesNodePoolAutoScalingConfigArgs] = None,
auto_scaling_group_id: Optional[str] = None,
auto_update_instance_tags: Optional[bool] = None,
autoscaling_added_total: Optional[float] = None,
cluster_id: Optional[str] = None,
default_cooldown: Optional[float] = None,
delete_keep_instance: Optional[bool] = None,
deletion_protection: Optional[bool] = None,
desired_capacity: Optional[float] = None,
enable_auto_scale: Optional[bool] = None,
kubernetes_node_pool_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
launch_config_id: Optional[str] = None,
manually_added_total: Optional[float] = None,
max_size: Optional[float] = None,
min_size: Optional[float] = None,
multi_zone_subnet_policy: Optional[str] = None,
name: Optional[str] = None,
node_config: Optional[KubernetesNodePoolNodeConfigArgs] = None,
node_count: Optional[float] = None,
node_os: Optional[str] = None,
node_os_type: Optional[str] = None,
retry_policy: Optional[str] = None,
scale_tolerance: Optional[float] = None,
scaling_group_name: Optional[str] = None,
scaling_group_project_id: Optional[float] = None,
scaling_mode: Optional[str] = None,
status: Optional[str] = None,
subnet_ids: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
taints: Optional[Sequence[KubernetesNodePoolTaintArgs]] = None,
termination_policies: Optional[Sequence[str]] = None,
timeouts: Optional[KubernetesNodePoolTimeoutsArgs] = None,
unschedulable: Optional[float] = None,
vpc_id: Optional[str] = None,
wait_node_ready: Optional[bool] = None,
zones: Optional[Sequence[str]] = None) -> KubernetesNodePool
func GetKubernetesNodePool(ctx *Context, name string, id IDInput, state *KubernetesNodePoolState, opts ...ResourceOption) (*KubernetesNodePool, error)
public static KubernetesNodePool Get(string name, Input<string> id, KubernetesNodePoolState? state, CustomResourceOptions? opts = null)
public static KubernetesNodePool get(String name, Output<String> id, KubernetesNodePoolState state, CustomResourceOptions options)
resources: _: type: tencentcloud:KubernetesNodePool 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.
- Annotations
List<Kubernetes
Node Pool Annotation> - Node Annotation List.
- Auto
Scaling KubernetesConfig Node Pool Auto Scaling Config - Auto scaling config parameters.
- Auto
Scaling stringGroup Id - The auto scaling group ID.
- bool
- Automatically update instance tags. The default value is false. After configuration, if the scaling group tags are updated, the tags of the running instances in the scaling group will be updated synchronously (synchronous updates only support adding and modifying tags, and do not support deleting tags for the time being). Synchronous updates do not take effect immediately and there is a certain delay.
- Autoscaling
Added doubleTotal - The total of autoscaling added node.
- Cluster
Id string - ID of the cluster.
- Default
Cooldown double - Seconds of scaling group cool down. Default value is
300
. - Delete
Keep boolInstance - Indicate to keep the CVM instance when delete the node pool. Default is
true
. - Deletion
Protection bool - Indicates whether the node pool deletion protection is enabled.
- Desired
Capacity double - Desired capacity of the node. If
enable_auto_scale
is settrue
, this will be a computed parameter. - Enable
Auto boolScale - Indicate whether to enable auto scaling or not.
- Kubernetes
Node stringPool Id - ID of the resource.
- Labels Dictionary<string, string>
- Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').
- Launch
Config stringId - The launch config ID.
- Manually
Added doubleTotal - The total of manually added node.
- Max
Size double - Maximum number of node.
- Min
Size double - Minimum number of node.
- Multi
Zone stringSubnet Policy - Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
- Name string
- Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (
-
) and decimal points. - Node
Config KubernetesNode Pool Node Config - Node config.
- Node
Count double - The total node count.
- Node
Os string - Operating system of the cluster. Please refer to TencentCloud Documentation for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
- Node
Os stringType - The image version of the node. Valida values are
DOCKER_CUSTOMIZE
andGENERAL
. Default isGENERAL
. This parameter will only affect new nodes, not including the existing nodes. - Retry
Policy string - Available values for retry policies include
IMMEDIATE_RETRY
andINCREMENTAL_INTERVALS
. - Scale
Tolerance double - Control how many expectations(
desired_capacity
) can be tolerated successfully. Unit is percentage, Default is100
. Only can be set ifwait_node_ready
istrue
. - Scaling
Group stringName - Name of relative scaling group.
- Scaling
Group doubleProject Id - Project ID the scaling group belongs to.
- Scaling
Mode string - Auto scaling mode. Valid values are
CLASSIC_SCALING
(scaling by create/destroy instances),WAKE_UP_STOPPED_SCALING
(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking). - Status string
- Status of the node pool.
- Subnet
Ids List<string> - ID list of subnet, and for VPC it is required.
- Dictionary<string, string>
- Node pool tag specifications, will passthroughs to the scaling instances.
- Taints
List<Kubernetes
Node Pool Taint> - Taints of kubernetes node pool created nodes.
- Termination
Policies List<string> - Policy of scaling group termination. Available values:
["OLDEST_INSTANCE"]
,["NEWEST_INSTANCE"]
. - Timeouts
Kubernetes
Node Pool Timeouts - Unschedulable double
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- Vpc
Id string - ID of VPC network.
- Wait
Node boolReady - Whether to wait for all desired nodes to be ready. Default is false. Only can be set if
enable_auto_scale
isfalse
. - Zones List<string>
- List of auto scaling group available zones, for Basic network it is required.
- Annotations
[]Kubernetes
Node Pool Annotation Args - Node Annotation List.
- Auto
Scaling KubernetesConfig Node Pool Auto Scaling Config Args - Auto scaling config parameters.
- Auto
Scaling stringGroup Id - The auto scaling group ID.
- bool
- Automatically update instance tags. The default value is false. After configuration, if the scaling group tags are updated, the tags of the running instances in the scaling group will be updated synchronously (synchronous updates only support adding and modifying tags, and do not support deleting tags for the time being). Synchronous updates do not take effect immediately and there is a certain delay.
- Autoscaling
Added float64Total - The total of autoscaling added node.
- Cluster
Id string - ID of the cluster.
- Default
Cooldown float64 - Seconds of scaling group cool down. Default value is
300
. - Delete
Keep boolInstance - Indicate to keep the CVM instance when delete the node pool. Default is
true
. - Deletion
Protection bool - Indicates whether the node pool deletion protection is enabled.
- Desired
Capacity float64 - Desired capacity of the node. If
enable_auto_scale
is settrue
, this will be a computed parameter. - Enable
Auto boolScale - Indicate whether to enable auto scaling or not.
- Kubernetes
Node stringPool Id - ID of the resource.
- Labels map[string]string
- Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').
- Launch
Config stringId - The launch config ID.
- Manually
Added float64Total - The total of manually added node.
- Max
Size float64 - Maximum number of node.
- Min
Size float64 - Minimum number of node.
- Multi
Zone stringSubnet Policy - Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
- Name string
- Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (
-
) and decimal points. - Node
Config KubernetesNode Pool Node Config Args - Node config.
- Node
Count float64 - The total node count.
- Node
Os string - Operating system of the cluster. Please refer to TencentCloud Documentation for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
- Node
Os stringType - The image version of the node. Valida values are
DOCKER_CUSTOMIZE
andGENERAL
. Default isGENERAL
. This parameter will only affect new nodes, not including the existing nodes. - Retry
Policy string - Available values for retry policies include
IMMEDIATE_RETRY
andINCREMENTAL_INTERVALS
. - Scale
Tolerance float64 - Control how many expectations(
desired_capacity
) can be tolerated successfully. Unit is percentage, Default is100
. Only can be set ifwait_node_ready
istrue
. - Scaling
Group stringName - Name of relative scaling group.
- Scaling
Group float64Project Id - Project ID the scaling group belongs to.
- Scaling
Mode string - Auto scaling mode. Valid values are
CLASSIC_SCALING
(scaling by create/destroy instances),WAKE_UP_STOPPED_SCALING
(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking). - Status string
- Status of the node pool.
- Subnet
Ids []string - ID list of subnet, and for VPC it is required.
- map[string]string
- Node pool tag specifications, will passthroughs to the scaling instances.
- Taints
[]Kubernetes
Node Pool Taint Args - Taints of kubernetes node pool created nodes.
- Termination
Policies []string - Policy of scaling group termination. Available values:
["OLDEST_INSTANCE"]
,["NEWEST_INSTANCE"]
. - Timeouts
Kubernetes
Node Pool Timeouts Args - Unschedulable float64
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- Vpc
Id string - ID of VPC network.
- Wait
Node boolReady - Whether to wait for all desired nodes to be ready. Default is false. Only can be set if
enable_auto_scale
isfalse
. - Zones []string
- List of auto scaling group available zones, for Basic network it is required.
- annotations
List<Kubernetes
Node Pool Annotation> - Node Annotation List.
- auto
Scaling KubernetesConfig Node Pool Auto Scaling Config - Auto scaling config parameters.
- auto
Scaling StringGroup Id - The auto scaling group ID.
- Boolean
- Automatically update instance tags. The default value is false. After configuration, if the scaling group tags are updated, the tags of the running instances in the scaling group will be updated synchronously (synchronous updates only support adding and modifying tags, and do not support deleting tags for the time being). Synchronous updates do not take effect immediately and there is a certain delay.
- autoscaling
Added DoubleTotal - The total of autoscaling added node.
- cluster
Id String - ID of the cluster.
- default
Cooldown Double - Seconds of scaling group cool down. Default value is
300
. - delete
Keep BooleanInstance - Indicate to keep the CVM instance when delete the node pool. Default is
true
. - deletion
Protection Boolean - Indicates whether the node pool deletion protection is enabled.
- desired
Capacity Double - Desired capacity of the node. If
enable_auto_scale
is settrue
, this will be a computed parameter. - enable
Auto BooleanScale - Indicate whether to enable auto scaling or not.
- kubernetes
Node StringPool Id - ID of the resource.
- labels Map<String,String>
- Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').
- launch
Config StringId - The launch config ID.
- manually
Added DoubleTotal - The total of manually added node.
- max
Size Double - Maximum number of node.
- min
Size Double - Minimum number of node.
- multi
Zone StringSubnet Policy - Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
- name String
- Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (
-
) and decimal points. - node
Config KubernetesNode Pool Node Config - Node config.
- node
Count Double - The total node count.
- node
Os String - Operating system of the cluster. Please refer to TencentCloud Documentation for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
- node
Os StringType - The image version of the node. Valida values are
DOCKER_CUSTOMIZE
andGENERAL
. Default isGENERAL
. This parameter will only affect new nodes, not including the existing nodes. - retry
Policy String - Available values for retry policies include
IMMEDIATE_RETRY
andINCREMENTAL_INTERVALS
. - scale
Tolerance Double - Control how many expectations(
desired_capacity
) can be tolerated successfully. Unit is percentage, Default is100
. Only can be set ifwait_node_ready
istrue
. - scaling
Group StringName - Name of relative scaling group.
- scaling
Group DoubleProject Id - Project ID the scaling group belongs to.
- scaling
Mode String - Auto scaling mode. Valid values are
CLASSIC_SCALING
(scaling by create/destroy instances),WAKE_UP_STOPPED_SCALING
(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking). - status String
- Status of the node pool.
- subnet
Ids List<String> - ID list of subnet, and for VPC it is required.
- Map<String,String>
- Node pool tag specifications, will passthroughs to the scaling instances.
- taints
List<Kubernetes
Node Pool Taint> - Taints of kubernetes node pool created nodes.
- termination
Policies List<String> - Policy of scaling group termination. Available values:
["OLDEST_INSTANCE"]
,["NEWEST_INSTANCE"]
. - timeouts
Kubernetes
Node Pool Timeouts - unschedulable Double
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- vpc
Id String - ID of VPC network.
- wait
Node BooleanReady - Whether to wait for all desired nodes to be ready. Default is false. Only can be set if
enable_auto_scale
isfalse
. - zones List<String>
- List of auto scaling group available zones, for Basic network it is required.
- annotations
Kubernetes
Node Pool Annotation[] - Node Annotation List.
- auto
Scaling KubernetesConfig Node Pool Auto Scaling Config - Auto scaling config parameters.
- auto
Scaling stringGroup Id - The auto scaling group ID.
- boolean
- Automatically update instance tags. The default value is false. After configuration, if the scaling group tags are updated, the tags of the running instances in the scaling group will be updated synchronously (synchronous updates only support adding and modifying tags, and do not support deleting tags for the time being). Synchronous updates do not take effect immediately and there is a certain delay.
- autoscaling
Added numberTotal - The total of autoscaling added node.
- cluster
Id string - ID of the cluster.
- default
Cooldown number - Seconds of scaling group cool down. Default value is
300
. - delete
Keep booleanInstance - Indicate to keep the CVM instance when delete the node pool. Default is
true
. - deletion
Protection boolean - Indicates whether the node pool deletion protection is enabled.
- desired
Capacity number - Desired capacity of the node. If
enable_auto_scale
is settrue
, this will be a computed parameter. - enable
Auto booleanScale - Indicate whether to enable auto scaling or not.
- kubernetes
Node stringPool Id - ID of the resource.
- labels {[key: string]: string}
- Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').
- launch
Config stringId - The launch config ID.
- manually
Added numberTotal - The total of manually added node.
- max
Size number - Maximum number of node.
- min
Size number - Minimum number of node.
- multi
Zone stringSubnet Policy - Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
- name string
- Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (
-
) and decimal points. - node
Config KubernetesNode Pool Node Config - Node config.
- node
Count number - The total node count.
- node
Os string - Operating system of the cluster. Please refer to TencentCloud Documentation for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
- node
Os stringType - The image version of the node. Valida values are
DOCKER_CUSTOMIZE
andGENERAL
. Default isGENERAL
. This parameter will only affect new nodes, not including the existing nodes. - retry
Policy string - Available values for retry policies include
IMMEDIATE_RETRY
andINCREMENTAL_INTERVALS
. - scale
Tolerance number - Control how many expectations(
desired_capacity
) can be tolerated successfully. Unit is percentage, Default is100
. Only can be set ifwait_node_ready
istrue
. - scaling
Group stringName - Name of relative scaling group.
- scaling
Group numberProject Id - Project ID the scaling group belongs to.
- scaling
Mode string - Auto scaling mode. Valid values are
CLASSIC_SCALING
(scaling by create/destroy instances),WAKE_UP_STOPPED_SCALING
(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking). - status string
- Status of the node pool.
- subnet
Ids string[] - ID list of subnet, and for VPC it is required.
- {[key: string]: string}
- Node pool tag specifications, will passthroughs to the scaling instances.
- taints
Kubernetes
Node Pool Taint[] - Taints of kubernetes node pool created nodes.
- termination
Policies string[] - Policy of scaling group termination. Available values:
["OLDEST_INSTANCE"]
,["NEWEST_INSTANCE"]
. - timeouts
Kubernetes
Node Pool Timeouts - unschedulable number
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- vpc
Id string - ID of VPC network.
- wait
Node booleanReady - Whether to wait for all desired nodes to be ready. Default is false. Only can be set if
enable_auto_scale
isfalse
. - zones string[]
- List of auto scaling group available zones, for Basic network it is required.
- annotations
Sequence[Kubernetes
Node Pool Annotation Args] - Node Annotation List.
- auto_
scaling_ Kubernetesconfig Node Pool Auto Scaling Config Args - Auto scaling config parameters.
- auto_
scaling_ strgroup_ id - The auto scaling group ID.
- bool
- Automatically update instance tags. The default value is false. After configuration, if the scaling group tags are updated, the tags of the running instances in the scaling group will be updated synchronously (synchronous updates only support adding and modifying tags, and do not support deleting tags for the time being). Synchronous updates do not take effect immediately and there is a certain delay.
- autoscaling_
added_ floattotal - The total of autoscaling added node.
- cluster_
id str - ID of the cluster.
- default_
cooldown float - Seconds of scaling group cool down. Default value is
300
. - delete_
keep_ boolinstance - Indicate to keep the CVM instance when delete the node pool. Default is
true
. - deletion_
protection bool - Indicates whether the node pool deletion protection is enabled.
- desired_
capacity float - Desired capacity of the node. If
enable_auto_scale
is settrue
, this will be a computed parameter. - enable_
auto_ boolscale - Indicate whether to enable auto scaling or not.
- kubernetes_
node_ strpool_ id - ID of the resource.
- labels Mapping[str, str]
- Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').
- launch_
config_ strid - The launch config ID.
- manually_
added_ floattotal - The total of manually added node.
- max_
size float - Maximum number of node.
- min_
size float - Minimum number of node.
- multi_
zone_ strsubnet_ policy - Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
- name str
- Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (
-
) and decimal points. - node_
config KubernetesNode Pool Node Config Args - Node config.
- node_
count float - The total node count.
- node_
os str - Operating system of the cluster. Please refer to TencentCloud Documentation for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
- node_
os_ strtype - The image version of the node. Valida values are
DOCKER_CUSTOMIZE
andGENERAL
. Default isGENERAL
. This parameter will only affect new nodes, not including the existing nodes. - retry_
policy str - Available values for retry policies include
IMMEDIATE_RETRY
andINCREMENTAL_INTERVALS
. - scale_
tolerance float - Control how many expectations(
desired_capacity
) can be tolerated successfully. Unit is percentage, Default is100
. Only can be set ifwait_node_ready
istrue
. - scaling_
group_ strname - Name of relative scaling group.
- scaling_
group_ floatproject_ id - Project ID the scaling group belongs to.
- scaling_
mode str - Auto scaling mode. Valid values are
CLASSIC_SCALING
(scaling by create/destroy instances),WAKE_UP_STOPPED_SCALING
(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking). - status str
- Status of the node pool.
- subnet_
ids Sequence[str] - ID list of subnet, and for VPC it is required.
- Mapping[str, str]
- Node pool tag specifications, will passthroughs to the scaling instances.
- taints
Sequence[Kubernetes
Node Pool Taint Args] - Taints of kubernetes node pool created nodes.
- termination_
policies Sequence[str] - Policy of scaling group termination. Available values:
["OLDEST_INSTANCE"]
,["NEWEST_INSTANCE"]
. - timeouts
Kubernetes
Node Pool Timeouts Args - unschedulable float
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- vpc_
id str - ID of VPC network.
- wait_
node_ boolready - Whether to wait for all desired nodes to be ready. Default is false. Only can be set if
enable_auto_scale
isfalse
. - zones Sequence[str]
- List of auto scaling group available zones, for Basic network it is required.
- annotations List<Property Map>
- Node Annotation List.
- auto
Scaling Property MapConfig - Auto scaling config parameters.
- auto
Scaling StringGroup Id - The auto scaling group ID.
- Boolean
- Automatically update instance tags. The default value is false. After configuration, if the scaling group tags are updated, the tags of the running instances in the scaling group will be updated synchronously (synchronous updates only support adding and modifying tags, and do not support deleting tags for the time being). Synchronous updates do not take effect immediately and there is a certain delay.
- autoscaling
Added NumberTotal - The total of autoscaling added node.
- cluster
Id String - ID of the cluster.
- default
Cooldown Number - Seconds of scaling group cool down. Default value is
300
. - delete
Keep BooleanInstance - Indicate to keep the CVM instance when delete the node pool. Default is
true
. - deletion
Protection Boolean - Indicates whether the node pool deletion protection is enabled.
- desired
Capacity Number - Desired capacity of the node. If
enable_auto_scale
is settrue
, this will be a computed parameter. - enable
Auto BooleanScale - Indicate whether to enable auto scaling or not.
- kubernetes
Node StringPool Id - ID of the resource.
- labels Map<String>
- Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').
- launch
Config StringId - The launch config ID.
- manually
Added NumberTotal - The total of manually added node.
- max
Size Number - Maximum number of node.
- min
Size Number - Minimum number of node.
- multi
Zone StringSubnet Policy - Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY.
- name String
- Name of the node pool. The name does not exceed 25 characters, and only supports Chinese, English, numbers, underscores, separators (
-
) and decimal points. - node
Config Property Map - Node config.
- node
Count Number - The total node count.
- node
Os String - Operating system of the cluster. Please refer to TencentCloud Documentation for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
- node
Os StringType - The image version of the node. Valida values are
DOCKER_CUSTOMIZE
andGENERAL
. Default isGENERAL
. This parameter will only affect new nodes, not including the existing nodes. - retry
Policy String - Available values for retry policies include
IMMEDIATE_RETRY
andINCREMENTAL_INTERVALS
. - scale
Tolerance Number - Control how many expectations(
desired_capacity
) can be tolerated successfully. Unit is percentage, Default is100
. Only can be set ifwait_node_ready
istrue
. - scaling
Group StringName - Name of relative scaling group.
- scaling
Group NumberProject Id - Project ID the scaling group belongs to.
- scaling
Mode String - Auto scaling mode. Valid values are
CLASSIC_SCALING
(scaling by create/destroy instances),WAKE_UP_STOPPED_SCALING
(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking). - status String
- Status of the node pool.
- subnet
Ids List<String> - ID list of subnet, and for VPC it is required.
- Map<String>
- Node pool tag specifications, will passthroughs to the scaling instances.
- taints List<Property Map>
- Taints of kubernetes node pool created nodes.
- termination
Policies List<String> - Policy of scaling group termination. Available values:
["OLDEST_INSTANCE"]
,["NEWEST_INSTANCE"]
. - timeouts Property Map
- unschedulable Number
- Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
- vpc
Id String - ID of VPC network.
- wait
Node BooleanReady - Whether to wait for all desired nodes to be ready. Default is false. Only can be set if
enable_auto_scale
isfalse
. - zones List<String>
- List of auto scaling group available zones, for Basic network it is required.
Supporting Types
KubernetesNodePoolAnnotation, KubernetesNodePoolAnnotationArgs
KubernetesNodePoolAutoScalingConfig, KubernetesNodePoolAutoScalingConfigArgs
- Instance
Type string - Specified types of CVM instance.
- Backup
Instance List<string>Types - Backup CVM instance types if specified instance type sold out or mismatch.
- 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 - Name of cam role.
- Data
Disks List<KubernetesNode Pool Auto Scaling Config Data Disk> - Configurations of data disk.
- 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.
- Host
Name string - The hostname of the cloud server, dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows instances are not supported. Examples of other types (Linux, etc.): The character length is [2, 40], multiple periods are allowed, and there is a paragraph between the dots, and each paragraph is allowed to consist of letters (unlimited case), numbers and dashes (-). Pure numbers are not allowed. For usage, refer to
HostNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - Host
Name stringStyle - The style of the host name of the cloud server, the value range includes ORIGINAL and UNIQUE, and the default is ORIGINAL. For usage, refer to
HostNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - Instance
Charge stringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - Instance
Charge doubleType Prepaid Period - The tenancy (in 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 - Instance name, no more than 60 characters. For usage, refer to
InstanceNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - Instance
Name stringStyle - Type of CVM instance name. Valid values:
ORIGINAL
andUNIQUE
. Default value:ORIGINAL
. For usage, refer toInstanceNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - Internet
Charge stringType - Charge types for network traffic. Valid value:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - Internet
Max doubleBandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - Key
Ids List<string> - ID list of keys.
- Orderly
Security List<string>Group Ids - Ordered security groups to which a CVM instance belongs.
- Password string
- Password to access.
- Public
Ip boolAssigned - Specify whether to assign an Internet IP address.
- Security
Group List<string>Ids - The order of elements in this field cannot be guaranteed. Use
orderly_security_group_ids
instead. Security groups to which a CVM instance belongs. - Spot
Instance stringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - Spot
Max stringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - System
Disk doubleSize - Volume of system disk in GB. Default is
50
. - System
Disk stringType - Type of a CVM disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
,CLOUD_BSSD
andLOCAL_NVME
. Default isCLOUD_PREMIUM
.
- Instance
Type string - Specified types of CVM instance.
- Backup
Instance []stringTypes - Backup CVM instance types if specified instance type sold out or mismatch.
- 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 - Name of cam role.
- Data
Disks []KubernetesNode Pool Auto Scaling Config Data Disk - Configurations of data disk.
- 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.
- Host
Name string - The hostname of the cloud server, dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows instances are not supported. Examples of other types (Linux, etc.): The character length is [2, 40], multiple periods are allowed, and there is a paragraph between the dots, and each paragraph is allowed to consist of letters (unlimited case), numbers and dashes (-). Pure numbers are not allowed. For usage, refer to
HostNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - Host
Name stringStyle - The style of the host name of the cloud server, the value range includes ORIGINAL and UNIQUE, and the default is ORIGINAL. For usage, refer to
HostNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - Instance
Charge stringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - Instance
Charge float64Type Prepaid Period - The tenancy (in 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 - Instance name, no more than 60 characters. For usage, refer to
InstanceNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - Instance
Name stringStyle - Type of CVM instance name. Valid values:
ORIGINAL
andUNIQUE
. Default value:ORIGINAL
. For usage, refer toInstanceNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - Internet
Charge stringType - Charge types for network traffic. Valid value:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - Internet
Max float64Bandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - Key
Ids []string - ID list of keys.
- Orderly
Security []stringGroup Ids - Ordered security groups to which a CVM instance belongs.
- Password string
- Password to access.
- Public
Ip boolAssigned - Specify whether to assign an Internet IP address.
- Security
Group []stringIds - The order of elements in this field cannot be guaranteed. Use
orderly_security_group_ids
instead. Security groups to which a CVM instance belongs. - Spot
Instance stringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - Spot
Max stringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - System
Disk float64Size - Volume of system disk in GB. Default is
50
. - System
Disk stringType - Type of a CVM disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
,CLOUD_BSSD
andLOCAL_NVME
. Default isCLOUD_PREMIUM
.
- instance
Type String - Specified types of CVM instance.
- backup
Instance List<String>Types - Backup CVM instance types if specified instance type sold out or mismatch.
- 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 - Name of cam role.
- data
Disks List<KubernetesNode Pool Auto Scaling Config Data Disk> - Configurations of data disk.
- 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.
- host
Name String - The hostname of the cloud server, dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows instances are not supported. Examples of other types (Linux, etc.): The character length is [2, 40], multiple periods are allowed, and there is a paragraph between the dots, and each paragraph is allowed to consist of letters (unlimited case), numbers and dashes (-). Pure numbers are not allowed. For usage, refer to
HostNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - host
Name StringStyle - The style of the host name of the cloud server, the value range includes ORIGINAL and UNIQUE, and the default is ORIGINAL. For usage, refer to
HostNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - instance
Charge StringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - instance
Charge DoubleType Prepaid Period - The tenancy (in 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 - Instance name, no more than 60 characters. For usage, refer to
InstanceNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - instance
Name StringStyle - Type of CVM instance name. Valid values:
ORIGINAL
andUNIQUE
. Default value:ORIGINAL
. For usage, refer toInstanceNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - internet
Charge StringType - Charge types for network traffic. Valid value:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - internet
Max DoubleBandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - key
Ids List<String> - ID list of keys.
- orderly
Security List<String>Group Ids - Ordered security groups to which a CVM instance belongs.
- password String
- Password to access.
- public
Ip BooleanAssigned - Specify whether to assign an Internet IP address.
- security
Group List<String>Ids - The order of elements in this field cannot be guaranteed. Use
orderly_security_group_ids
instead. Security groups to which a CVM instance belongs. - spot
Instance StringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - spot
Max StringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - system
Disk DoubleSize - Volume of system disk in GB. Default is
50
. - system
Disk StringType - Type of a CVM disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
,CLOUD_BSSD
andLOCAL_NVME
. Default isCLOUD_PREMIUM
.
- instance
Type string - Specified types of CVM instance.
- backup
Instance string[]Types - Backup CVM instance types if specified instance type sold out or mismatch.
- 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 - Name of cam role.
- data
Disks KubernetesNode Pool Auto Scaling Config Data Disk[] - Configurations of data disk.
- 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.
- host
Name string - The hostname of the cloud server, dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows instances are not supported. Examples of other types (Linux, etc.): The character length is [2, 40], multiple periods are allowed, and there is a paragraph between the dots, and each paragraph is allowed to consist of letters (unlimited case), numbers and dashes (-). Pure numbers are not allowed. For usage, refer to
HostNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - host
Name stringStyle - The style of the host name of the cloud server, the value range includes ORIGINAL and UNIQUE, and the default is ORIGINAL. For usage, refer to
HostNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - instance
Charge stringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - instance
Charge numberType Prepaid Period - The tenancy (in 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 - Instance name, no more than 60 characters. For usage, refer to
InstanceNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - instance
Name stringStyle - Type of CVM instance name. Valid values:
ORIGINAL
andUNIQUE
. Default value:ORIGINAL
. For usage, refer toInstanceNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - internet
Charge stringType - Charge types for network traffic. Valid value:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - internet
Max numberBandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - key
Ids string[] - ID list of keys.
- orderly
Security string[]Group Ids - Ordered security groups to which a CVM instance belongs.
- password string
- Password to access.
- public
Ip booleanAssigned - Specify whether to assign an Internet IP address.
- security
Group string[]Ids - The order of elements in this field cannot be guaranteed. Use
orderly_security_group_ids
instead. Security groups to which a CVM instance belongs. - spot
Instance stringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - spot
Max stringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - system
Disk numberSize - Volume of system disk in GB. Default is
50
. - system
Disk stringType - Type of a CVM disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
,CLOUD_BSSD
andLOCAL_NVME
. Default isCLOUD_PREMIUM
.
- instance_
type str - Specified types of CVM instance.
- backup_
instance_ Sequence[str]types - Backup CVM instance types if specified instance type sold out or mismatch.
- 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 - Name of cam role.
- data_
disks Sequence[KubernetesNode Pool Auto Scaling Config Data Disk] - Configurations of data disk.
- 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.
- host_
name str - The hostname of the cloud server, dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows instances are not supported. Examples of other types (Linux, etc.): The character length is [2, 40], multiple periods are allowed, and there is a paragraph between the dots, and each paragraph is allowed to consist of letters (unlimited case), numbers and dashes (-). Pure numbers are not allowed. For usage, refer to
HostNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - host_
name_ strstyle - The style of the host name of the cloud server, the value range includes ORIGINAL and UNIQUE, and the default is ORIGINAL. For usage, refer to
HostNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - instance_
charge_ strtype - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - instance_
charge_ floattype_ prepaid_ period - The tenancy (in 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 - Instance name, no more than 60 characters. For usage, refer to
InstanceNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - instance_
name_ strstyle - Type of CVM instance name. Valid values:
ORIGINAL
andUNIQUE
. Default value:ORIGINAL
. For usage, refer toInstanceNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - internet_
charge_ strtype - Charge types for network traffic. Valid value:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - internet_
max_ floatbandwidth_ out - Max bandwidth of Internet access in Mbps. Default is
0
. - key_
ids Sequence[str] - ID list of keys.
- orderly_
security_ Sequence[str]group_ ids - Ordered security groups to which a CVM instance belongs.
- password str
- Password to access.
- public_
ip_ boolassigned - Specify whether to assign an Internet IP address.
- security_
group_ Sequence[str]ids - The order of elements in this field cannot be guaranteed. Use
orderly_security_group_ids
instead. Security groups to which a CVM instance belongs. - spot_
instance_ strtype - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - spot_
max_ strprice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - system_
disk_ floatsize - Volume of system disk in GB. Default is
50
. - system_
disk_ strtype - Type of a CVM disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
,CLOUD_BSSD
andLOCAL_NVME
. Default isCLOUD_PREMIUM
.
- instance
Type String - Specified types of CVM instance.
- backup
Instance List<String>Types - Backup CVM instance types if specified instance type sold out or mismatch.
- 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 - Name of cam role.
- data
Disks List<Property Map> - Configurations of data disk.
- 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.
- host
Name String - The hostname of the cloud server, dot (.) and dash (-) cannot be used as the first and last characters of HostName and cannot be used consecutively. Windows instances are not supported. Examples of other types (Linux, etc.): The character length is [2, 40], multiple periods are allowed, and there is a paragraph between the dots, and each paragraph is allowed to consist of letters (unlimited case), numbers and dashes (-). Pure numbers are not allowed. For usage, refer to
HostNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - host
Name StringStyle - The style of the host name of the cloud server, the value range includes ORIGINAL and UNIQUE, and the default is ORIGINAL. For usage, refer to
HostNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - instance
Charge StringType - Charge type of instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,SPOTPAID
. The default isPOSTPAID_BY_HOUR
. NOTE:SPOTPAID
instance must setspot_instance_type
andspot_max_price
at the same time. - instance
Charge NumberType Prepaid Period - The tenancy (in 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 - Instance name, no more than 60 characters. For usage, refer to
InstanceNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - instance
Name StringStyle - Type of CVM instance name. Valid values:
ORIGINAL
andUNIQUE
. Default value:ORIGINAL
. For usage, refer toInstanceNameSettings
in https://www.tencentcloud.com/document/product/377/31001. - internet
Charge StringType - Charge types for network traffic. Valid value:
BANDWIDTH_PREPAID
,TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - internet
Max NumberBandwidth Out - Max bandwidth of Internet access in Mbps. Default is
0
. - key
Ids List<String> - ID list of keys.
- orderly
Security List<String>Group Ids - Ordered security groups to which a CVM instance belongs.
- password String
- Password to access.
- public
Ip BooleanAssigned - Specify whether to assign an Internet IP address.
- security
Group List<String>Ids - The order of elements in this field cannot be guaranteed. Use
orderly_security_group_ids
instead. Security groups to which a CVM instance belongs. - spot
Instance StringType - Type of spot instance, only support
one-time
now. Note: it only works when instance_charge_type is set toSPOTPAID
. - spot
Max StringPrice - Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to
SPOTPAID
. - system
Disk NumberSize - Volume of system disk in GB. Default is
50
. - system
Disk StringType - Type of a CVM disk. Valid value:
LOCAL_BASIC
,LOCAL_SSD
,CLOUD_BASIC
,CLOUD_PREMIUM
,CLOUD_SSD
,CLOUD_HSSD
,CLOUD_TSSD
,CLOUD_BSSD
andLOCAL_NVME
. Default isCLOUD_PREMIUM
.
KubernetesNodePoolAutoScalingConfigDataDisk, KubernetesNodePoolAutoScalingConfigDataDiskArgs
- Delete
With boolInstance - Indicates whether the disk remove after instance terminated. Default is
false
. - 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
,CLOUD_BSSD
andLOCAL_NVME
. - Encrypt bool
- Specify whether to encrypt data disk, default: false. NOTE: Make sure the instance type is offering and the cam role
QcloudKMSAccessForCVMRole
was provided. - Snapshot
Id string - Data disk snapshot ID.
- Throughput
Performance double - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
anddata_size
> 460GB.
- Delete
With boolInstance - Indicates whether the disk remove after instance terminated. Default is
false
. - 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
,CLOUD_BSSD
andLOCAL_NVME
. - Encrypt bool
- Specify whether to encrypt data disk, default: false. NOTE: Make sure the instance type is offering and the cam role
QcloudKMSAccessForCVMRole
was provided. - Snapshot
Id string - Data disk snapshot ID.
- Throughput
Performance float64 - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
anddata_size
> 460GB.
- delete
With BooleanInstance - Indicates whether the disk remove after instance terminated. Default is
false
. - 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
,CLOUD_BSSD
andLOCAL_NVME
. - encrypt Boolean
- Specify whether to encrypt data disk, default: false. NOTE: Make sure the instance type is offering and the cam role
QcloudKMSAccessForCVMRole
was provided. - snapshot
Id String - Data disk snapshot ID.
- throughput
Performance Double - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
anddata_size
> 460GB.
- delete
With booleanInstance - Indicates whether the disk remove after instance terminated. Default is
false
. - 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
,CLOUD_BSSD
andLOCAL_NVME
. - encrypt boolean
- Specify whether to encrypt data disk, default: false. NOTE: Make sure the instance type is offering and the cam role
QcloudKMSAccessForCVMRole
was provided. - snapshot
Id string - Data disk snapshot ID.
- throughput
Performance number - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
anddata_size
> 460GB.
- delete_
with_ boolinstance - Indicates whether the disk remove after instance terminated. Default is
false
. - 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
,CLOUD_BSSD
andLOCAL_NVME
. - encrypt bool
- Specify whether to encrypt data disk, default: false. NOTE: Make sure the instance type is offering and the cam role
QcloudKMSAccessForCVMRole
was provided. - snapshot_
id str - Data disk snapshot ID.
- throughput_
performance float - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
anddata_size
> 460GB.
- delete
With BooleanInstance - Indicates whether the disk remove after instance terminated. Default is
false
. - 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
,CLOUD_BSSD
andLOCAL_NVME
. - encrypt Boolean
- Specify whether to encrypt data disk, default: false. NOTE: Make sure the instance type is offering and the cam role
QcloudKMSAccessForCVMRole
was provided. - snapshot
Id String - Data disk snapshot ID.
- throughput
Performance Number - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
anddata_size
> 460GB.
KubernetesNodePoolNodeConfig, KubernetesNodePoolNodeConfigArgs
- Data
Disks List<KubernetesNode Pool Node 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 KubernetesNode Pool Node Config Gpu Args - GPU driver parameters.
- Is
Schedule bool - 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.
- User
Data string - Base64-encoded User Data text, the length limit is 16KB.
- Data
Disks []KubernetesNode Pool Node 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 KubernetesNode Pool Node Config Gpu Args - GPU driver parameters.
- Is
Schedule bool - 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.
- User
Data string - Base64-encoded User Data text, the length limit is 16KB.
- data
Disks List<KubernetesNode Pool Node 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 KubernetesNode Pool Node Config Gpu Args - GPU driver parameters.
- is
Schedule Boolean - 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.
- user
Data String - Base64-encoded User Data text, the length limit is 16KB.
- data
Disks KubernetesNode Pool Node 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 KubernetesNode Pool Node Config Gpu Args - GPU driver parameters.
- is
Schedule boolean - 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.
- user
Data string - Base64-encoded User Data text, the length limit is 16KB.
- data_
disks Sequence[KubernetesNode Pool Node 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 KubernetesNode Pool Node Config Gpu Args - GPU driver parameters.
- is_
schedule bool - 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.
- 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 - 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.
- user
Data String - Base64-encoded User Data text, the length limit is 16KB.
KubernetesNodePoolNodeConfigDataDisk, KubernetesNodePoolNodeConfigDataDiskArgs
- 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
,CLOUD_BSSD
andLOCAL_NVME
. - 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
,CLOUD_BSSD
andLOCAL_NVME
. - 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
,CLOUD_BSSD
andLOCAL_NVME
. - 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
,CLOUD_BSSD
andLOCAL_NVME
. - 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
,CLOUD_BSSD
andLOCAL_NVME
. - 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
,CLOUD_BSSD
andLOCAL_NVME
. - file
System String - File system, e.g.
ext3/ext4/xfs
. - mount
Target String - Mount target.
KubernetesNodePoolNodeConfigGpuArgs, KubernetesNodePoolNodeConfigGpuArgsArgs
- 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.
KubernetesNodePoolTaint, KubernetesNodePoolTaintArgs
KubernetesNodePoolTimeouts, KubernetesNodePoolTimeoutsArgs
Import
tke node pool can be imported, e.g.
$ pulumi import tencentcloud:index/kubernetesNodePool:KubernetesNodePool example cls-d2xdg3io#np-380ay1o8
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.