Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.vke.NodePools
Explore with Pulumi AI
Use this data source to query detailed information of vke node pools
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.ecs.Zones({});
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
vpcName: "acc-test-vpc",
cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
subnetName: "acc-test-subnet",
cidrBlock: "172.16.0.0/24",
zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
vpcId: fooVpc.id,
});
const fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
securityGroupName: "acc-test-security-group",
vpcId: fooVpc.id,
});
const fooImages = volcengine.ecs.Images({
nameRegex: "veLinux 1.0 CentOS兼容版 64位",
});
const fooCluster = new volcengine.vke.Cluster("fooCluster", {
description: "created by terraform",
deleteProtectionEnabled: false,
clusterConfig: {
subnetIds: [fooSubnet.id],
apiServerPublicAccessEnabled: true,
apiServerPublicAccessConfig: {
publicAccessNetworkConfig: {
billingType: "PostPaidByBandwidth",
bandwidth: 1,
},
},
resourcePublicAccessDefaultEnabled: true,
},
podsConfig: {
podNetworkMode: "VpcCniShared",
vpcCniConfig: {
subnetIds: [fooSubnet.id],
},
},
servicesConfig: {
serviceCidrsv4s: ["172.30.0.0/18"],
},
tags: [{
key: "tf-k1",
value: "tf-v1",
}],
});
const fooNodePool: volcengine.vke.NodePool[] = [];
for (const range = {value: 0}; range.value < 3; range.value++) {
fooNodePool.push(new volcengine.vke.NodePool(`fooNodePool-${range.value}`, {
clusterId: fooCluster.id,
autoScaling: {
enabled: true,
minReplicas: 0,
maxReplicas: 5,
desiredReplicas: 0,
priority: 5,
subnetPolicy: "ZoneBalance",
},
nodeConfig: {
instanceTypeIds: ["ecs.g1ie.xlarge"],
subnetIds: [fooSubnet.id],
imageId: fooImages.then(fooImages => .filter(image => image.imageName == "veLinux 1.0 CentOS兼容版 64位").map(image => (image.imageId))[0]),
systemVolume: {
type: "ESSD_PL0",
size: 60,
},
dataVolumes: [
{
type: "ESSD_PL0",
size: 60,
mountPoint: "/tf1",
},
{
type: "ESSD_PL0",
size: 60,
mountPoint: "/tf2",
},
],
initializeScript: "ZWNobyBoZWxsbyB0ZXJyYWZvcm0h",
security: {
login: {
password: "UHdkMTIzNDU2",
},
securityStrategies: ["Hids"],
securityGroupIds: [fooSecurityGroup.id],
},
additionalContainerStorageEnabled: true,
instanceChargeType: "PostPaid",
namePrefix: "acc-test",
ecsTags: [{
key: "ecs_k1",
value: "ecs_v1",
}],
},
kubernetesConfig: {
labels: [{
key: "label1",
value: "value1",
}],
taints: [{
key: "taint-key/node-type",
value: "taint-value",
effect: "NoSchedule",
}],
cordon: true,
},
tags: [{
key: "node-pool-k1",
value: "node-pool-v1",
}],
}));
}
const fooNodePools = volcengine.vke.NodePoolsOutput({
ids: fooNodePool.map(__item => __item.id),
});
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.ecs.zones()
foo_vpc = volcengine.vpc.Vpc("fooVpc",
vpc_name="acc-test-vpc",
cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
subnet_name="acc-test-subnet",
cidr_block="172.16.0.0/24",
zone_id=foo_zones.zones[0].id,
vpc_id=foo_vpc.id)
foo_security_group = volcengine.vpc.SecurityGroup("fooSecurityGroup",
security_group_name="acc-test-security-group",
vpc_id=foo_vpc.id)
foo_images = volcengine.ecs.images(name_regex="veLinux 1.0 CentOS兼容版 64位")
foo_cluster = volcengine.vke.Cluster("fooCluster",
description="created by terraform",
delete_protection_enabled=False,
cluster_config=volcengine.vke.ClusterClusterConfigArgs(
subnet_ids=[foo_subnet.id],
api_server_public_access_enabled=True,
api_server_public_access_config=volcengine.vke.ClusterClusterConfigApiServerPublicAccessConfigArgs(
public_access_network_config=volcengine.vke.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs(
billing_type="PostPaidByBandwidth",
bandwidth=1,
),
),
resource_public_access_default_enabled=True,
),
pods_config=volcengine.vke.ClusterPodsConfigArgs(
pod_network_mode="VpcCniShared",
vpc_cni_config=volcengine.vke.ClusterPodsConfigVpcCniConfigArgs(
subnet_ids=[foo_subnet.id],
),
),
services_config=volcengine.vke.ClusterServicesConfigArgs(
service_cidrsv4s=["172.30.0.0/18"],
),
tags=[volcengine.vke.ClusterTagArgs(
key="tf-k1",
value="tf-v1",
)])
foo_node_pool = []
for range in [{"value": i} for i in range(0, 3)]:
foo_node_pool.append(volcengine.vke.NodePool(f"fooNodePool-{range['value']}",
cluster_id=foo_cluster.id,
auto_scaling=volcengine.vke.NodePoolAutoScalingArgs(
enabled=True,
min_replicas=0,
max_replicas=5,
desired_replicas=0,
priority=5,
subnet_policy="ZoneBalance",
),
node_config=volcengine.vke.NodePoolNodeConfigArgs(
instance_type_ids=["ecs.g1ie.xlarge"],
subnet_ids=[foo_subnet.id],
image_id=[image.image_id for image in foo_images.images if image.image_name == "veLinux 1.0 CentOS兼容版 64位"][0],
system_volume=volcengine.vke.NodePoolNodeConfigSystemVolumeArgs(
type="ESSD_PL0",
size=60,
),
data_volumes=[
volcengine.vke.NodePoolNodeConfigDataVolumeArgs(
type="ESSD_PL0",
size=60,
mount_point="/tf1",
),
volcengine.vke.NodePoolNodeConfigDataVolumeArgs(
type="ESSD_PL0",
size=60,
mount_point="/tf2",
),
],
initialize_script="ZWNobyBoZWxsbyB0ZXJyYWZvcm0h",
security=volcengine.vke.NodePoolNodeConfigSecurityArgs(
login=volcengine.vke.NodePoolNodeConfigSecurityLoginArgs(
password="UHdkMTIzNDU2",
),
security_strategies=["Hids"],
security_group_ids=[foo_security_group.id],
),
additional_container_storage_enabled=True,
instance_charge_type="PostPaid",
name_prefix="acc-test",
ecs_tags=[volcengine.vke.NodePoolNodeConfigEcsTagArgs(
key="ecs_k1",
value="ecs_v1",
)],
),
kubernetes_config=volcengine.vke.NodePoolKubernetesConfigArgs(
labels=[volcengine.vke.NodePoolKubernetesConfigLabelArgs(
key="label1",
value="value1",
)],
taints=[volcengine.vke.NodePoolKubernetesConfigTaintArgs(
key="taint-key/node-type",
value="taint-value",
effect="NoSchedule",
)],
cordon=True,
),
tags=[volcengine.vke.NodePoolTagArgs(
key="node-pool-k1",
value="node-pool-v1",
)]))
foo_node_pools = volcengine.vke.node_pools_output(ids=[__item.id for __item in foo_node_pool])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vke"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooZones, err := ecs.Zones(ctx, nil, nil);
if err != nil {
return err
}
fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet"),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String(fooZones.Zones[0].Id),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
fooSecurityGroup, err := vpc.NewSecurityGroup(ctx, "fooSecurityGroup", &vpc.SecurityGroupArgs{
SecurityGroupName: pulumi.String("acc-test-security-group"),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
fooImages, err := ecs.Images(ctx, &ecs.ImagesArgs{
NameRegex: pulumi.StringRef("veLinux 1.0 CentOS兼容版 64位"),
}, nil);
if err != nil {
return err
}
fooCluster, err := vke.NewCluster(ctx, "fooCluster", &vke.ClusterArgs{
Description: pulumi.String("created by terraform"),
DeleteProtectionEnabled: pulumi.Bool(false),
ClusterConfig: &vke.ClusterClusterConfigArgs{
SubnetIds: pulumi.StringArray{
fooSubnet.ID(),
},
ApiServerPublicAccessEnabled: pulumi.Bool(true),
ApiServerPublicAccessConfig: &vke.ClusterClusterConfigApiServerPublicAccessConfigArgs{
PublicAccessNetworkConfig: &vke.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs{
BillingType: pulumi.String("PostPaidByBandwidth"),
Bandwidth: pulumi.Int(1),
},
},
ResourcePublicAccessDefaultEnabled: pulumi.Bool(true),
},
PodsConfig: &vke.ClusterPodsConfigArgs{
PodNetworkMode: pulumi.String("VpcCniShared"),
VpcCniConfig: &vke.ClusterPodsConfigVpcCniConfigArgs{
SubnetIds: pulumi.StringArray{
fooSubnet.ID(),
},
},
},
ServicesConfig: &vke.ClusterServicesConfigArgs{
ServiceCidrsv4s: pulumi.StringArray{
pulumi.String("172.30.0.0/18"),
},
},
Tags: vke.ClusterTagArray{
&vke.ClusterTagArgs{
Key: pulumi.String("tf-k1"),
Value: pulumi.String("tf-v1"),
},
},
})
if err != nil {
return err
}
var fooNodePool []*vke.NodePool
for index := 0; index < 3; index++ {
key0 := index
_ := index
__res, err := vke.NewNodePool(ctx, fmt.Sprintf("fooNodePool-%v", key0), &vke.NodePoolArgs{
ClusterId: fooCluster.ID(),
AutoScaling: &vke.NodePoolAutoScalingArgs{
Enabled: pulumi.Bool(true),
MinReplicas: pulumi.Int(0),
MaxReplicas: pulumi.Int(5),
DesiredReplicas: pulumi.Int(0),
Priority: pulumi.Int(5),
SubnetPolicy: pulumi.String("ZoneBalance"),
},
NodeConfig: &vke.NodePoolNodeConfigArgs{
InstanceTypeIds: pulumi.StringArray{
pulumi.String("ecs.g1ie.xlarge"),
},
SubnetIds: pulumi.StringArray{
fooSubnet.ID(),
},
ImageId: "TODO: For expression"[0],
SystemVolume: &vke.NodePoolNodeConfigSystemVolumeArgs{
Type: pulumi.String("ESSD_PL0"),
Size: pulumi.Int(60),
},
DataVolumes: vke.NodePoolNodeConfigDataVolumeArray{
&vke.NodePoolNodeConfigDataVolumeArgs{
Type: pulumi.String("ESSD_PL0"),
Size: pulumi.Int(60),
MountPoint: pulumi.String("/tf1"),
},
&vke.NodePoolNodeConfigDataVolumeArgs{
Type: pulumi.String("ESSD_PL0"),
Size: pulumi.Int(60),
MountPoint: pulumi.String("/tf2"),
},
},
InitializeScript: pulumi.String("ZWNobyBoZWxsbyB0ZXJyYWZvcm0h"),
Security: &vke.NodePoolNodeConfigSecurityArgs{
Login: &vke.NodePoolNodeConfigSecurityLoginArgs{
Password: pulumi.String("UHdkMTIzNDU2"),
},
SecurityStrategies: pulumi.StringArray{
pulumi.String("Hids"),
},
SecurityGroupIds: pulumi.StringArray{
fooSecurityGroup.ID(),
},
},
AdditionalContainerStorageEnabled: pulumi.Bool(true),
InstanceChargeType: pulumi.String("PostPaid"),
NamePrefix: pulumi.String("acc-test"),
EcsTags: vke.NodePoolNodeConfigEcsTagArray{
&vke.NodePoolNodeConfigEcsTagArgs{
Key: pulumi.String("ecs_k1"),
Value: pulumi.String("ecs_v1"),
},
},
},
KubernetesConfig: &vke.NodePoolKubernetesConfigArgs{
Labels: vke.NodePoolKubernetesConfigLabelArray{
&vke.NodePoolKubernetesConfigLabelArgs{
Key: pulumi.String("label1"),
Value: pulumi.String("value1"),
},
},
Taints: vke.NodePoolKubernetesConfigTaintArray{
&vke.NodePoolKubernetesConfigTaintArgs{
Key: pulumi.String("taint-key/node-type"),
Value: pulumi.String("taint-value"),
Effect: pulumi.String("NoSchedule"),
},
},
Cordon: pulumi.Bool(true),
},
Tags: vke.NodePoolTagArray{
&vke.NodePoolTagArgs{
Key: pulumi.String("node-pool-k1"),
Value: pulumi.String("node-pool-v1"),
},
},
})
if err != nil {
return err
}
fooNodePool = append(fooNodePool, __res)
}
_ = vke.NodePoolsOutput(ctx, vke.NodePoolsOutputArgs{
Ids: %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ #-functions-volcengine:vke-nodePools:NodePools.pp:113,9-26),
}, nil);
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooZones = Volcengine.Ecs.Zones.Invoke();
var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
{
VpcName = "acc-test-vpc",
CidrBlock = "172.16.0.0/16",
});
var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
{
SubnetName = "acc-test-subnet",
CidrBlock = "172.16.0.0/24",
ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
VpcId = fooVpc.Id,
});
var fooSecurityGroup = new Volcengine.Vpc.SecurityGroup("fooSecurityGroup", new()
{
SecurityGroupName = "acc-test-security-group",
VpcId = fooVpc.Id,
});
var fooImages = Volcengine.Ecs.Images.Invoke(new()
{
NameRegex = "veLinux 1.0 CentOS兼容版 64位",
});
var fooCluster = new Volcengine.Vke.Cluster("fooCluster", new()
{
Description = "created by terraform",
DeleteProtectionEnabled = false,
ClusterConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigArgs
{
SubnetIds = new[]
{
fooSubnet.Id,
},
ApiServerPublicAccessEnabled = true,
ApiServerPublicAccessConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigApiServerPublicAccessConfigArgs
{
PublicAccessNetworkConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs
{
BillingType = "PostPaidByBandwidth",
Bandwidth = 1,
},
},
ResourcePublicAccessDefaultEnabled = true,
},
PodsConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigArgs
{
PodNetworkMode = "VpcCniShared",
VpcCniConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigVpcCniConfigArgs
{
SubnetIds = new[]
{
fooSubnet.Id,
},
},
},
ServicesConfig = new Volcengine.Vke.Inputs.ClusterServicesConfigArgs
{
ServiceCidrsv4s = new[]
{
"172.30.0.0/18",
},
},
Tags = new[]
{
new Volcengine.Vke.Inputs.ClusterTagArgs
{
Key = "tf-k1",
Value = "tf-v1",
},
},
});
var fooNodePool = new List<Volcengine.Vke.NodePool>();
for (var rangeIndex = 0; rangeIndex < 3; rangeIndex++)
{
var range = new { Value = rangeIndex };
fooNodePool.Add(new Volcengine.Vke.NodePool($"fooNodePool-{range.Value}", new()
{
ClusterId = fooCluster.Id,
AutoScaling = new Volcengine.Vke.Inputs.NodePoolAutoScalingArgs
{
Enabled = true,
MinReplicas = 0,
MaxReplicas = 5,
DesiredReplicas = 0,
Priority = 5,
SubnetPolicy = "ZoneBalance",
},
NodeConfig = new Volcengine.Vke.Inputs.NodePoolNodeConfigArgs
{
InstanceTypeIds = new[]
{
"ecs.g1ie.xlarge",
},
SubnetIds = new[]
{
fooSubnet.Id,
},
ImageId = .Where(image => image.ImageName == "veLinux 1.0 CentOS兼容版 64位").Select(image =>
{
return image.ImageId;
}).ToList()[0],
SystemVolume = new Volcengine.Vke.Inputs.NodePoolNodeConfigSystemVolumeArgs
{
Type = "ESSD_PL0",
Size = 60,
},
DataVolumes = new[]
{
new Volcengine.Vke.Inputs.NodePoolNodeConfigDataVolumeArgs
{
Type = "ESSD_PL0",
Size = 60,
MountPoint = "/tf1",
},
new Volcengine.Vke.Inputs.NodePoolNodeConfigDataVolumeArgs
{
Type = "ESSD_PL0",
Size = 60,
MountPoint = "/tf2",
},
},
InitializeScript = "ZWNobyBoZWxsbyB0ZXJyYWZvcm0h",
Security = new Volcengine.Vke.Inputs.NodePoolNodeConfigSecurityArgs
{
Login = new Volcengine.Vke.Inputs.NodePoolNodeConfigSecurityLoginArgs
{
Password = "UHdkMTIzNDU2",
},
SecurityStrategies = new[]
{
"Hids",
},
SecurityGroupIds = new[]
{
fooSecurityGroup.Id,
},
},
AdditionalContainerStorageEnabled = true,
InstanceChargeType = "PostPaid",
NamePrefix = "acc-test",
EcsTags = new[]
{
new Volcengine.Vke.Inputs.NodePoolNodeConfigEcsTagArgs
{
Key = "ecs_k1",
Value = "ecs_v1",
},
},
},
KubernetesConfig = new Volcengine.Vke.Inputs.NodePoolKubernetesConfigArgs
{
Labels = new[]
{
new Volcengine.Vke.Inputs.NodePoolKubernetesConfigLabelArgs
{
Key = "label1",
Value = "value1",
},
},
Taints = new[]
{
new Volcengine.Vke.Inputs.NodePoolKubernetesConfigTaintArgs
{
Key = "taint-key/node-type",
Value = "taint-value",
Effect = "NoSchedule",
},
},
Cordon = true,
},
Tags = new[]
{
new Volcengine.Vke.Inputs.NodePoolTagArgs
{
Key = "node-pool-k1",
Value = "node-pool-v1",
},
},
}));
}
var fooNodePools = Volcengine.Vke.NodePools.Invoke(new()
{
Ids = fooNodePool.Select(__item => __item.Id).ToList(),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.vpc.SecurityGroup;
import com.pulumi.volcengine.vpc.SecurityGroupArgs;
import com.pulumi.volcengine.ecs.inputs.ImagesArgs;
import com.pulumi.volcengine.vke.Cluster;
import com.pulumi.volcengine.vke.ClusterArgs;
import com.pulumi.volcengine.vke.inputs.ClusterClusterConfigArgs;
import com.pulumi.volcengine.vke.inputs.ClusterClusterConfigApiServerPublicAccessConfigArgs;
import com.pulumi.volcengine.vke.inputs.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs;
import com.pulumi.volcengine.vke.inputs.ClusterPodsConfigArgs;
import com.pulumi.volcengine.vke.inputs.ClusterPodsConfigVpcCniConfigArgs;
import com.pulumi.volcengine.vke.inputs.ClusterServicesConfigArgs;
import com.pulumi.volcengine.vke.inputs.ClusterTagArgs;
import com.pulumi.volcengine.vke.NodePool;
import com.pulumi.volcengine.vke.NodePoolArgs;
import com.pulumi.volcengine.vke.inputs.NodePoolAutoScalingArgs;
import com.pulumi.volcengine.vke.inputs.NodePoolNodeConfigArgs;
import com.pulumi.volcengine.vke.inputs.NodePoolNodeConfigSystemVolumeArgs;
import com.pulumi.volcengine.vke.inputs.NodePoolNodeConfigSecurityArgs;
import com.pulumi.volcengine.vke.inputs.NodePoolNodeConfigSecurityLoginArgs;
import com.pulumi.volcengine.vke.inputs.NodePoolKubernetesConfigArgs;
import com.pulumi.volcengine.vke.inputs.NodePoolTagArgs;
import com.pulumi.volcengine.vke.VkeFunctions;
import com.pulumi.volcengine.vke.inputs.NodePoolsArgs;
import com.pulumi.codegen.internal.KeyedValue;
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 fooZones = EcsFunctions.Zones();
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.vpcName("acc-test-vpc")
.cidrBlock("172.16.0.0/16")
.build());
var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
.subnetName("acc-test-subnet")
.cidrBlock("172.16.0.0/24")
.zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
.vpcId(fooVpc.id())
.build());
var fooSecurityGroup = new SecurityGroup("fooSecurityGroup", SecurityGroupArgs.builder()
.securityGroupName("acc-test-security-group")
.vpcId(fooVpc.id())
.build());
final var fooImages = EcsFunctions.Images(ImagesArgs.builder()
.nameRegex("veLinux 1.0 CentOS兼容版 64位")
.build());
var fooCluster = new Cluster("fooCluster", ClusterArgs.builder()
.description("created by terraform")
.deleteProtectionEnabled(false)
.clusterConfig(ClusterClusterConfigArgs.builder()
.subnetIds(fooSubnet.id())
.apiServerPublicAccessEnabled(true)
.apiServerPublicAccessConfig(ClusterClusterConfigApiServerPublicAccessConfigArgs.builder()
.publicAccessNetworkConfig(ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs.builder()
.billingType("PostPaidByBandwidth")
.bandwidth(1)
.build())
.build())
.resourcePublicAccessDefaultEnabled(true)
.build())
.podsConfig(ClusterPodsConfigArgs.builder()
.podNetworkMode("VpcCniShared")
.vpcCniConfig(ClusterPodsConfigVpcCniConfigArgs.builder()
.subnetIds(fooSubnet.id())
.build())
.build())
.servicesConfig(ClusterServicesConfigArgs.builder()
.serviceCidrsv4s("172.30.0.0/18")
.build())
.tags(ClusterTagArgs.builder()
.key("tf-k1")
.value("tf-v1")
.build())
.build());
for (var i = 0; i < 3; i++) {
new NodePool("fooNodePool-" + i, NodePoolArgs.builder()
.clusterId(fooCluster.id())
.autoScaling(NodePoolAutoScalingArgs.builder()
.enabled(true)
.minReplicas(0)
.maxReplicas(5)
.desiredReplicas(0)
.priority(5)
.subnetPolicy("ZoneBalance")
.build())
.nodeConfig(NodePoolNodeConfigArgs.builder()
.instanceTypeIds("ecs.g1ie.xlarge")
.subnetIds(fooSubnet.id())
.imageId("TODO: ForExpression"[0])
.systemVolume(NodePoolNodeConfigSystemVolumeArgs.builder()
.type("ESSD_PL0")
.size("60")
.build())
.dataVolumes(
NodePoolNodeConfigDataVolumeArgs.builder()
.type("ESSD_PL0")
.size("60")
.mountPoint("/tf1")
.build(),
NodePoolNodeConfigDataVolumeArgs.builder()
.type("ESSD_PL0")
.size("60")
.mountPoint("/tf2")
.build())
.initializeScript("ZWNobyBoZWxsbyB0ZXJyYWZvcm0h")
.security(NodePoolNodeConfigSecurityArgs.builder()
.login(NodePoolNodeConfigSecurityLoginArgs.builder()
.password("UHdkMTIzNDU2")
.build())
.securityStrategies("Hids")
.securityGroupIds(fooSecurityGroup.id())
.build())
.additionalContainerStorageEnabled(true)
.instanceChargeType("PostPaid")
.namePrefix("acc-test")
.ecsTags(NodePoolNodeConfigEcsTagArgs.builder()
.key("ecs_k1")
.value("ecs_v1")
.build())
.build())
.kubernetesConfig(NodePoolKubernetesConfigArgs.builder()
.labels(NodePoolKubernetesConfigLabelArgs.builder()
.key("label1")
.value("value1")
.build())
.taints(NodePoolKubernetesConfigTaintArgs.builder()
.key("taint-key/node-type")
.value("taint-value")
.effect("NoSchedule")
.build())
.cordon(true)
.build())
.tags(NodePoolTagArgs.builder()
.key("node-pool-k1")
.value("node-pool-v1")
.build())
.build());
}
final var fooNodePools = VkeFunctions.NodePools(NodePoolsArgs.builder()
.ids(fooNodePool.stream().map(element -> element.id()).collect(toList()))
.build());
}
}
Coming soon!
Using NodePools
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function nodePools(args: NodePoolsArgs, opts?: InvokeOptions): Promise<NodePoolsResult>
function nodePoolsOutput(args: NodePoolsOutputArgs, opts?: InvokeOptions): Output<NodePoolsResult>
def node_pools(auto_scaling_enabled: Optional[bool] = None,
cluster_id: Optional[str] = None,
cluster_ids: Optional[Sequence[str]] = None,
create_client_token: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
statuses: Optional[Sequence[NodePoolsStatus]] = None,
tags: Optional[Sequence[NodePoolsTag]] = None,
update_client_token: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> NodePoolsResult
def node_pools_output(auto_scaling_enabled: Optional[pulumi.Input[bool]] = None,
cluster_id: Optional[pulumi.Input[str]] = None,
cluster_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
create_client_token: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
statuses: Optional[pulumi.Input[Sequence[pulumi.Input[NodePoolsStatusArgs]]]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[NodePoolsTagArgs]]]] = None,
update_client_token: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[NodePoolsResult]
func NodePools(ctx *Context, args *NodePoolsArgs, opts ...InvokeOption) (*NodePoolsResult, error)
func NodePoolsOutput(ctx *Context, args *NodePoolsOutputArgs, opts ...InvokeOption) NodePoolsResultOutput
public static class NodePools
{
public static Task<NodePoolsResult> InvokeAsync(NodePoolsArgs args, InvokeOptions? opts = null)
public static Output<NodePoolsResult> Invoke(NodePoolsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<NodePoolsResult> nodePools(NodePoolsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:vke:NodePools
arguments:
# arguments dictionary
The following arguments are supported:
- Auto
Scaling boolEnabled - Is enabled of AutoScaling.
- Cluster
Id string - The ClusterId of NodePool.
- Cluster
Ids List<string> - The ClusterIds of NodePool IDs.
- Create
Client stringToken - The ClientToken when successfully created.
- Ids List<string>
- The IDs of NodePool.
- Name string
- The Name of NodePool.
- Name
Regex string - A Name Regex of NodePool.
- Output
File string - File name where to save data source results.
- Statuses
List<Node
Pools Status> - The Status of NodePool.
- List<Node
Pools Tag> - Tags.
- Update
Client stringToken - The ClientToken when last update was successful.
- Auto
Scaling boolEnabled - Is enabled of AutoScaling.
- Cluster
Id string - The ClusterId of NodePool.
- Cluster
Ids []string - The ClusterIds of NodePool IDs.
- Create
Client stringToken - The ClientToken when successfully created.
- Ids []string
- The IDs of NodePool.
- Name string
- The Name of NodePool.
- Name
Regex string - A Name Regex of NodePool.
- Output
File string - File name where to save data source results.
- Statuses
[]Node
Pools Status - The Status of NodePool.
- []Node
Pools Tag - Tags.
- Update
Client stringToken - The ClientToken when last update was successful.
- auto
Scaling BooleanEnabled - Is enabled of AutoScaling.
- cluster
Id String - The ClusterId of NodePool.
- cluster
Ids List<String> - The ClusterIds of NodePool IDs.
- create
Client StringToken - The ClientToken when successfully created.
- ids List<String>
- The IDs of NodePool.
- name String
- The Name of NodePool.
- name
Regex String - A Name Regex of NodePool.
- output
File String - File name where to save data source results.
- statuses
List<Node
Pools Status> - The Status of NodePool.
- List<Node
Pools Tag> - Tags.
- update
Client StringToken - The ClientToken when last update was successful.
- auto
Scaling booleanEnabled - Is enabled of AutoScaling.
- cluster
Id string - The ClusterId of NodePool.
- cluster
Ids string[] - The ClusterIds of NodePool IDs.
- create
Client stringToken - The ClientToken when successfully created.
- ids string[]
- The IDs of NodePool.
- name string
- The Name of NodePool.
- name
Regex string - A Name Regex of NodePool.
- output
File string - File name where to save data source results.
- statuses
Node
Pools Status[] - The Status of NodePool.
- Node
Pools Tag[] - Tags.
- update
Client stringToken - The ClientToken when last update was successful.
- auto_
scaling_ boolenabled - Is enabled of AutoScaling.
- cluster_
id str - The ClusterId of NodePool.
- cluster_
ids Sequence[str] - The ClusterIds of NodePool IDs.
- create_
client_ strtoken - The ClientToken when successfully created.
- ids Sequence[str]
- The IDs of NodePool.
- name str
- The Name of NodePool.
- name_
regex str - A Name Regex of NodePool.
- output_
file str - File name where to save data source results.
- statuses
Sequence[Node
Pools Status] - The Status of NodePool.
- Sequence[Node
Pools Tag] - Tags.
- update_
client_ strtoken - The ClientToken when last update was successful.
- auto
Scaling BooleanEnabled - Is enabled of AutoScaling.
- cluster
Id String - The ClusterId of NodePool.
- cluster
Ids List<String> - The ClusterIds of NodePool IDs.
- create
Client StringToken - The ClientToken when successfully created.
- ids List<String>
- The IDs of NodePool.
- name String
- The Name of NodePool.
- name
Regex String - A Name Regex of NodePool.
- output
File String - File name where to save data source results.
- statuses List<Property Map>
- The Status of NodePool.
- List<Property Map>
- Tags.
- update
Client StringToken - The ClientToken when last update was successful.
NodePools Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Pools List<NodePools Node Pool> - The collection of NodePools query.
- Total
Count int - Returns the total amount of the data list.
- Auto
Scaling boolEnabled - Cluster
Id string - The ClusterId of NodePool.
- Cluster
Ids List<string> - Create
Client stringToken - The ClientToken when successfully created.
- Ids List<string>
- Name string
- The Name of NodePool.
- Name
Regex string - Output
File string - Statuses
List<Node
Pools Status> - List<Node
Pools Tag> - Tags of the NodePool.
- Update
Client stringToken - The ClientToken when last update was successful.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Pools []NodePools Node Pool - The collection of NodePools query.
- Total
Count int - Returns the total amount of the data list.
- Auto
Scaling boolEnabled - Cluster
Id string - The ClusterId of NodePool.
- Cluster
Ids []string - Create
Client stringToken - The ClientToken when successfully created.
- Ids []string
- Name string
- The Name of NodePool.
- Name
Regex string - Output
File string - Statuses
[]Node
Pools Status - []Node
Pools Tag - Tags of the NodePool.
- Update
Client stringToken - The ClientToken when last update was successful.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Pools List<NodePools Node Pool> - The collection of NodePools query.
- total
Count Integer - Returns the total amount of the data list.
- auto
Scaling BooleanEnabled - cluster
Id String - The ClusterId of NodePool.
- cluster
Ids List<String> - create
Client StringToken - The ClientToken when successfully created.
- ids List<String>
- name String
- The Name of NodePool.
- name
Regex String - output
File String - statuses
List<Node
Pools Status> - List<Node
Pools Tag> - Tags of the NodePool.
- update
Client StringToken - The ClientToken when last update was successful.
- id string
- The provider-assigned unique ID for this managed resource.
- node
Pools NodePools Node Pool[] - The collection of NodePools query.
- total
Count number - Returns the total amount of the data list.
- auto
Scaling booleanEnabled - cluster
Id string - The ClusterId of NodePool.
- cluster
Ids string[] - create
Client stringToken - The ClientToken when successfully created.
- ids string[]
- name string
- The Name of NodePool.
- name
Regex string - output
File string - statuses
Node
Pools Status[] - Node
Pools Tag[] - Tags of the NodePool.
- update
Client stringToken - The ClientToken when last update was successful.
- id str
- The provider-assigned unique ID for this managed resource.
- node_
pools Sequence[NodePools Node Pool] - The collection of NodePools query.
- total_
count int - Returns the total amount of the data list.
- auto_
scaling_ boolenabled - cluster_
id str - The ClusterId of NodePool.
- cluster_
ids Sequence[str] - create_
client_ strtoken - The ClientToken when successfully created.
- ids Sequence[str]
- name str
- The Name of NodePool.
- name_
regex str - output_
file str - statuses
Sequence[Node
Pools Status] - Sequence[Node
Pools Tag] - Tags of the NodePool.
- update_
client_ strtoken - The ClientToken when last update was successful.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Pools List<Property Map> - The collection of NodePools query.
- total
Count Number - Returns the total amount of the data list.
- auto
Scaling BooleanEnabled - cluster
Id String - The ClusterId of NodePool.
- cluster
Ids List<String> - create
Client StringToken - The ClientToken when successfully created.
- ids List<String>
- name String
- The Name of NodePool.
- name
Regex String - output
File String - statuses List<Property Map>
- List<Property Map>
- Tags of the NodePool.
- update
Client StringToken - The ClientToken when last update was successful.
Supporting Types
NodePoolsNodePool
- Additional
Container boolStorage Enabled - Is AdditionalContainerStorageEnabled of NodeConfig.
- Auto
Renew bool - Is auto renew of the PrePaid instance of NodeConfig.
- Auto
Renew intPeriod - The AutoRenewPeriod of the PrePaid instance of NodeConfig.
- Cluster
Id string - The ClusterId of NodePool.
- Condition
Types List<string> - The Condition of Status.
- Cordon bool
- The Cordon of KubernetesConfig.
- Create
Client stringToken - The ClientToken when successfully created.
- Create
Time string - The CreateTime of NodePool.
- Data
Volumes List<NodePools Node Pool Data Volume> - The DataVolume of NodeConfig.
- Desired
Replicas int - The DesiredReplicas of AutoScaling.
- List<Node
Pools Node Pool Ecs Tag> - Tags for Ecs.
- Enabled bool
- Is Enabled of AutoScaling.
- Hpc
Cluster List<string>Ids - The IDs of HpcCluster.
- Id string
- The Id of NodePool.
- Image
Id string - The ImageId of NodeConfig.
- Initialize
Script string - The InitializeScript of NodeConfig.
- Instance
Charge stringType - The InstanceChargeType of NodeConfig.
- Instance
Type List<string>Ids - The InstanceTypeIds of NodeConfig.
- Kube
Config stringName Prefix - The NamePrefix of node metadata.
- Label
Contents List<NodePools Node Pool Label Content> - The LabelContent of KubernetesConfig.
- Login
Key stringPair Name - The login SshKeyPairName of NodeConfig.
- Login
Type string - The login type of NodeConfig.
- Max
Replicas int - The MaxReplicas of AutoScaling.
- Min
Replicas int - The MinReplicas of AutoScaling.
- Name string
- The Name of NodePool.
- Name
Prefix string - The NamePrefix of NodeConfig.
- Node
Statistics List<NodePools Node Pool Node Statistic> - The NodeStatistics of NodeConfig.
- Period int
- The period of the PrePaid instance of NodeConfig.
- Phase string
- The Phase of Status.
- Priority int
- The Priority of AutoScaling.
- Security
Group List<string>Ids - The SecurityGroupIds of NodeConfig.
- Security
Strategies List<string> - The SecurityStrategies of NodeConfig.
- Security
Strategy boolEnabled - The SecurityStrategyEnabled of NodeConfig.
- Subnet
Ids List<string> - The SubnetId of NodeConfig.
- Subnet
Policy string - Multi-subnet scheduling strategy for nodes. The value can be
ZoneBalance
orPriority
. - System
Volumes List<NodePools Node Pool System Volume> - The SystemVolume of NodeConfig.
- List<Node
Pools Node Pool Tag> - Tags.
- Taint
Contents List<NodePools Node Pool Taint Content> - The TaintContent of NodeConfig.
- Update
Client stringToken - The ClientToken when last update was successful.
- Update
Time string - The UpdateTime time of NodePool.
- Additional
Container boolStorage Enabled - Is AdditionalContainerStorageEnabled of NodeConfig.
- Auto
Renew bool - Is auto renew of the PrePaid instance of NodeConfig.
- Auto
Renew intPeriod - The AutoRenewPeriod of the PrePaid instance of NodeConfig.
- Cluster
Id string - The ClusterId of NodePool.
- Condition
Types []string - The Condition of Status.
- Cordon bool
- The Cordon of KubernetesConfig.
- Create
Client stringToken - The ClientToken when successfully created.
- Create
Time string - The CreateTime of NodePool.
- Data
Volumes []NodePools Node Pool Data Volume - The DataVolume of NodeConfig.
- Desired
Replicas int - The DesiredReplicas of AutoScaling.
- []Node
Pools Node Pool Ecs Tag - Tags for Ecs.
- Enabled bool
- Is Enabled of AutoScaling.
- Hpc
Cluster []stringIds - The IDs of HpcCluster.
- Id string
- The Id of NodePool.
- Image
Id string - The ImageId of NodeConfig.
- Initialize
Script string - The InitializeScript of NodeConfig.
- Instance
Charge stringType - The InstanceChargeType of NodeConfig.
- Instance
Type []stringIds - The InstanceTypeIds of NodeConfig.
- Kube
Config stringName Prefix - The NamePrefix of node metadata.
- Label
Contents []NodePools Node Pool Label Content - The LabelContent of KubernetesConfig.
- Login
Key stringPair Name - The login SshKeyPairName of NodeConfig.
- Login
Type string - The login type of NodeConfig.
- Max
Replicas int - The MaxReplicas of AutoScaling.
- Min
Replicas int - The MinReplicas of AutoScaling.
- Name string
- The Name of NodePool.
- Name
Prefix string - The NamePrefix of NodeConfig.
- Node
Statistics []NodePools Node Pool Node Statistic - The NodeStatistics of NodeConfig.
- Period int
- The period of the PrePaid instance of NodeConfig.
- Phase string
- The Phase of Status.
- Priority int
- The Priority of AutoScaling.
- Security
Group []stringIds - The SecurityGroupIds of NodeConfig.
- Security
Strategies []string - The SecurityStrategies of NodeConfig.
- Security
Strategy boolEnabled - The SecurityStrategyEnabled of NodeConfig.
- Subnet
Ids []string - The SubnetId of NodeConfig.
- Subnet
Policy string - Multi-subnet scheduling strategy for nodes. The value can be
ZoneBalance
orPriority
. - System
Volumes []NodePools Node Pool System Volume - The SystemVolume of NodeConfig.
- []Node
Pools Node Pool Tag - Tags.
- Taint
Contents []NodePools Node Pool Taint Content - The TaintContent of NodeConfig.
- Update
Client stringToken - The ClientToken when last update was successful.
- Update
Time string - The UpdateTime time of NodePool.
- additional
Container BooleanStorage Enabled - Is AdditionalContainerStorageEnabled of NodeConfig.
- auto
Renew Boolean - Is auto renew of the PrePaid instance of NodeConfig.
- auto
Renew IntegerPeriod - The AutoRenewPeriod of the PrePaid instance of NodeConfig.
- cluster
Id String - The ClusterId of NodePool.
- condition
Types List<String> - The Condition of Status.
- cordon Boolean
- The Cordon of KubernetesConfig.
- create
Client StringToken - The ClientToken when successfully created.
- create
Time String - The CreateTime of NodePool.
- data
Volumes List<NodePools Node Pool Data Volume> - The DataVolume of NodeConfig.
- desired
Replicas Integer - The DesiredReplicas of AutoScaling.
- List<Node
Pools Node Pool Ecs Tag> - Tags for Ecs.
- enabled Boolean
- Is Enabled of AutoScaling.
- hpc
Cluster List<String>Ids - The IDs of HpcCluster.
- id String
- The Id of NodePool.
- image
Id String - The ImageId of NodeConfig.
- initialize
Script String - The InitializeScript of NodeConfig.
- instance
Charge StringType - The InstanceChargeType of NodeConfig.
- instance
Type List<String>Ids - The InstanceTypeIds of NodeConfig.
- kube
Config StringName Prefix - The NamePrefix of node metadata.
- label
Contents List<NodePools Node Pool Label Content> - The LabelContent of KubernetesConfig.
- login
Key StringPair Name - The login SshKeyPairName of NodeConfig.
- login
Type String - The login type of NodeConfig.
- max
Replicas Integer - The MaxReplicas of AutoScaling.
- min
Replicas Integer - The MinReplicas of AutoScaling.
- name String
- The Name of NodePool.
- name
Prefix String - The NamePrefix of NodeConfig.
- node
Statistics List<NodePools Node Pool Node Statistic> - The NodeStatistics of NodeConfig.
- period Integer
- The period of the PrePaid instance of NodeConfig.
- phase String
- The Phase of Status.
- priority Integer
- The Priority of AutoScaling.
- security
Group List<String>Ids - The SecurityGroupIds of NodeConfig.
- security
Strategies List<String> - The SecurityStrategies of NodeConfig.
- security
Strategy BooleanEnabled - The SecurityStrategyEnabled of NodeConfig.
- subnet
Ids List<String> - The SubnetId of NodeConfig.
- subnet
Policy String - Multi-subnet scheduling strategy for nodes. The value can be
ZoneBalance
orPriority
. - system
Volumes List<NodePools Node Pool System Volume> - The SystemVolume of NodeConfig.
- List<Node
Pools Node Pool Tag> - Tags.
- taint
Contents List<NodePools Node Pool Taint Content> - The TaintContent of NodeConfig.
- update
Client StringToken - The ClientToken when last update was successful.
- update
Time String - The UpdateTime time of NodePool.
- additional
Container booleanStorage Enabled - Is AdditionalContainerStorageEnabled of NodeConfig.
- auto
Renew boolean - Is auto renew of the PrePaid instance of NodeConfig.
- auto
Renew numberPeriod - The AutoRenewPeriod of the PrePaid instance of NodeConfig.
- cluster
Id string - The ClusterId of NodePool.
- condition
Types string[] - The Condition of Status.
- cordon boolean
- The Cordon of KubernetesConfig.
- create
Client stringToken - The ClientToken when successfully created.
- create
Time string - The CreateTime of NodePool.
- data
Volumes NodePools Node Pool Data Volume[] - The DataVolume of NodeConfig.
- desired
Replicas number - The DesiredReplicas of AutoScaling.
- Node
Pools Node Pool Ecs Tag[] - Tags for Ecs.
- enabled boolean
- Is Enabled of AutoScaling.
- hpc
Cluster string[]Ids - The IDs of HpcCluster.
- id string
- The Id of NodePool.
- image
Id string - The ImageId of NodeConfig.
- initialize
Script string - The InitializeScript of NodeConfig.
- instance
Charge stringType - The InstanceChargeType of NodeConfig.
- instance
Type string[]Ids - The InstanceTypeIds of NodeConfig.
- kube
Config stringName Prefix - The NamePrefix of node metadata.
- label
Contents NodePools Node Pool Label Content[] - The LabelContent of KubernetesConfig.
- login
Key stringPair Name - The login SshKeyPairName of NodeConfig.
- login
Type string - The login type of NodeConfig.
- max
Replicas number - The MaxReplicas of AutoScaling.
- min
Replicas number - The MinReplicas of AutoScaling.
- name string
- The Name of NodePool.
- name
Prefix string - The NamePrefix of NodeConfig.
- node
Statistics NodePools Node Pool Node Statistic[] - The NodeStatistics of NodeConfig.
- period number
- The period of the PrePaid instance of NodeConfig.
- phase string
- The Phase of Status.
- priority number
- The Priority of AutoScaling.
- security
Group string[]Ids - The SecurityGroupIds of NodeConfig.
- security
Strategies string[] - The SecurityStrategies of NodeConfig.
- security
Strategy booleanEnabled - The SecurityStrategyEnabled of NodeConfig.
- subnet
Ids string[] - The SubnetId of NodeConfig.
- subnet
Policy string - Multi-subnet scheduling strategy for nodes. The value can be
ZoneBalance
orPriority
. - system
Volumes NodePools Node Pool System Volume[] - The SystemVolume of NodeConfig.
- Node
Pools Node Pool Tag[] - Tags.
- taint
Contents NodePools Node Pool Taint Content[] - The TaintContent of NodeConfig.
- update
Client stringToken - The ClientToken when last update was successful.
- update
Time string - The UpdateTime time of NodePool.
- additional_
container_ boolstorage_ enabled - Is AdditionalContainerStorageEnabled of NodeConfig.
- auto_
renew bool - Is auto renew of the PrePaid instance of NodeConfig.
- auto_
renew_ intperiod - The AutoRenewPeriod of the PrePaid instance of NodeConfig.
- cluster_
id str - The ClusterId of NodePool.
- condition_
types Sequence[str] - The Condition of Status.
- cordon bool
- The Cordon of KubernetesConfig.
- create_
client_ strtoken - The ClientToken when successfully created.
- create_
time str - The CreateTime of NodePool.
- data_
volumes Sequence[NodePools Node Pool Data Volume] - The DataVolume of NodeConfig.
- desired_
replicas int - The DesiredReplicas of AutoScaling.
- Sequence[Node
Pools Node Pool Ecs Tag] - Tags for Ecs.
- enabled bool
- Is Enabled of AutoScaling.
- hpc_
cluster_ Sequence[str]ids - The IDs of HpcCluster.
- id str
- The Id of NodePool.
- image_
id str - The ImageId of NodeConfig.
- initialize_
script str - The InitializeScript of NodeConfig.
- instance_
charge_ strtype - The InstanceChargeType of NodeConfig.
- instance_
type_ Sequence[str]ids - The InstanceTypeIds of NodeConfig.
- kube_
config_ strname_ prefix - The NamePrefix of node metadata.
- label_
contents Sequence[NodePools Node Pool Label Content] - The LabelContent of KubernetesConfig.
- login_
key_ strpair_ name - The login SshKeyPairName of NodeConfig.
- login_
type str - The login type of NodeConfig.
- max_
replicas int - The MaxReplicas of AutoScaling.
- min_
replicas int - The MinReplicas of AutoScaling.
- name str
- The Name of NodePool.
- name_
prefix str - The NamePrefix of NodeConfig.
- node_
statistics Sequence[NodePools Node Pool Node Statistic] - The NodeStatistics of NodeConfig.
- period int
- The period of the PrePaid instance of NodeConfig.
- phase str
- The Phase of Status.
- priority int
- The Priority of AutoScaling.
- security_
group_ Sequence[str]ids - The SecurityGroupIds of NodeConfig.
- security_
strategies Sequence[str] - The SecurityStrategies of NodeConfig.
- security_
strategy_ boolenabled - The SecurityStrategyEnabled of NodeConfig.
- subnet_
ids Sequence[str] - The SubnetId of NodeConfig.
- subnet_
policy str - Multi-subnet scheduling strategy for nodes. The value can be
ZoneBalance
orPriority
. - system_
volumes Sequence[NodePools Node Pool System Volume] - The SystemVolume of NodeConfig.
- Sequence[Node
Pools Node Pool Tag] - Tags.
- taint_
contents Sequence[NodePools Node Pool Taint Content] - The TaintContent of NodeConfig.
- update_
client_ strtoken - The ClientToken when last update was successful.
- update_
time str - The UpdateTime time of NodePool.
- additional
Container BooleanStorage Enabled - Is AdditionalContainerStorageEnabled of NodeConfig.
- auto
Renew Boolean - Is auto renew of the PrePaid instance of NodeConfig.
- auto
Renew NumberPeriod - The AutoRenewPeriod of the PrePaid instance of NodeConfig.
- cluster
Id String - The ClusterId of NodePool.
- condition
Types List<String> - The Condition of Status.
- cordon Boolean
- The Cordon of KubernetesConfig.
- create
Client StringToken - The ClientToken when successfully created.
- create
Time String - The CreateTime of NodePool.
- data
Volumes List<Property Map> - The DataVolume of NodeConfig.
- desired
Replicas Number - The DesiredReplicas of AutoScaling.
- List<Property Map>
- Tags for Ecs.
- enabled Boolean
- Is Enabled of AutoScaling.
- hpc
Cluster List<String>Ids - The IDs of HpcCluster.
- id String
- The Id of NodePool.
- image
Id String - The ImageId of NodeConfig.
- initialize
Script String - The InitializeScript of NodeConfig.
- instance
Charge StringType - The InstanceChargeType of NodeConfig.
- instance
Type List<String>Ids - The InstanceTypeIds of NodeConfig.
- kube
Config StringName Prefix - The NamePrefix of node metadata.
- label
Contents List<Property Map> - The LabelContent of KubernetesConfig.
- login
Key StringPair Name - The login SshKeyPairName of NodeConfig.
- login
Type String - The login type of NodeConfig.
- max
Replicas Number - The MaxReplicas of AutoScaling.
- min
Replicas Number - The MinReplicas of AutoScaling.
- name String
- The Name of NodePool.
- name
Prefix String - The NamePrefix of NodeConfig.
- node
Statistics List<Property Map> - The NodeStatistics of NodeConfig.
- period Number
- The period of the PrePaid instance of NodeConfig.
- phase String
- The Phase of Status.
- priority Number
- The Priority of AutoScaling.
- security
Group List<String>Ids - The SecurityGroupIds of NodeConfig.
- security
Strategies List<String> - The SecurityStrategies of NodeConfig.
- security
Strategy BooleanEnabled - The SecurityStrategyEnabled of NodeConfig.
- subnet
Ids List<String> - The SubnetId of NodeConfig.
- subnet
Policy String - Multi-subnet scheduling strategy for nodes. The value can be
ZoneBalance
orPriority
. - system
Volumes List<Property Map> - The SystemVolume of NodeConfig.
- List<Property Map>
- Tags.
- taint
Contents List<Property Map> - The TaintContent of NodeConfig.
- update
Client StringToken - The ClientToken when last update was successful.
- update
Time String - The UpdateTime time of NodePool.
NodePoolsNodePoolDataVolume
- Mount
Point string - The target mount directory of the disk.
- Size string
- The Size of SystemVolume.
- Type string
- The Type of Tags.
- Mount
Point string - The target mount directory of the disk.
- Size string
- The Size of SystemVolume.
- Type string
- The Type of Tags.
- mount
Point String - The target mount directory of the disk.
- size String
- The Size of SystemVolume.
- type String
- The Type of Tags.
- mount
Point string - The target mount directory of the disk.
- size string
- The Size of SystemVolume.
- type string
- The Type of Tags.
- mount_
point str - The target mount directory of the disk.
- size str
- The Size of SystemVolume.
- type str
- The Type of Tags.
- mount
Point String - The target mount directory of the disk.
- size String
- The Size of SystemVolume.
- type String
- The Type of Tags.
NodePoolsNodePoolEcsTag
NodePoolsNodePoolLabelContent
NodePoolsNodePoolNodeStatistic
- Creating
Count int - The CreatingCount of Node.
- Deleting
Count int - The DeletingCount of Node.
- Failed
Count int - The FailedCount of Node.
- Running
Count int - The RunningCount of Node.
- Starting
Count int - (Deprecated) This field has been deprecated and is not recommended for use. The StartingCount of Node.
- Stopped
Count int - (Deprecated) This field has been deprecated and is not recommended for use. The StoppedCount of Node.
- Stopping
Count int - (Deprecated) This field has been deprecated and is not recommended for use. The StoppingCount of Node.
- Total
Count int - Returns the total amount of the data list.
- Updating
Count int - The UpdatingCount of Node.
- Creating
Count int - The CreatingCount of Node.
- Deleting
Count int - The DeletingCount of Node.
- Failed
Count int - The FailedCount of Node.
- Running
Count int - The RunningCount of Node.
- Starting
Count int - (Deprecated) This field has been deprecated and is not recommended for use. The StartingCount of Node.
- Stopped
Count int - (Deprecated) This field has been deprecated and is not recommended for use. The StoppedCount of Node.
- Stopping
Count int - (Deprecated) This field has been deprecated and is not recommended for use. The StoppingCount of Node.
- Total
Count int - Returns the total amount of the data list.
- Updating
Count int - The UpdatingCount of Node.
- creating
Count Integer - The CreatingCount of Node.
- deleting
Count Integer - The DeletingCount of Node.
- failed
Count Integer - The FailedCount of Node.
- running
Count Integer - The RunningCount of Node.
- starting
Count Integer - (Deprecated) This field has been deprecated and is not recommended for use. The StartingCount of Node.
- stopped
Count Integer - (Deprecated) This field has been deprecated and is not recommended for use. The StoppedCount of Node.
- stopping
Count Integer - (Deprecated) This field has been deprecated and is not recommended for use. The StoppingCount of Node.
- total
Count Integer - Returns the total amount of the data list.
- updating
Count Integer - The UpdatingCount of Node.
- creating
Count number - The CreatingCount of Node.
- deleting
Count number - The DeletingCount of Node.
- failed
Count number - The FailedCount of Node.
- running
Count number - The RunningCount of Node.
- starting
Count number - (Deprecated) This field has been deprecated and is not recommended for use. The StartingCount of Node.
- stopped
Count number - (Deprecated) This field has been deprecated and is not recommended for use. The StoppedCount of Node.
- stopping
Count number - (Deprecated) This field has been deprecated and is not recommended for use. The StoppingCount of Node.
- total
Count number - Returns the total amount of the data list.
- updating
Count number - The UpdatingCount of Node.
- creating_
count int - The CreatingCount of Node.
- deleting_
count int - The DeletingCount of Node.
- failed_
count int - The FailedCount of Node.
- running_
count int - The RunningCount of Node.
- starting_
count int - (Deprecated) This field has been deprecated and is not recommended for use. The StartingCount of Node.
- stopped_
count int - (Deprecated) This field has been deprecated and is not recommended for use. The StoppedCount of Node.
- stopping_
count int - (Deprecated) This field has been deprecated and is not recommended for use. The StoppingCount of Node.
- total_
count int - Returns the total amount of the data list.
- updating_
count int - The UpdatingCount of Node.
- creating
Count Number - The CreatingCount of Node.
- deleting
Count Number - The DeletingCount of Node.
- failed
Count Number - The FailedCount of Node.
- running
Count Number - The RunningCount of Node.
- starting
Count Number - (Deprecated) This field has been deprecated and is not recommended for use. The StartingCount of Node.
- stopped
Count Number - (Deprecated) This field has been deprecated and is not recommended for use. The StoppedCount of Node.
- stopping
Count Number - (Deprecated) This field has been deprecated and is not recommended for use. The StoppingCount of Node.
- total
Count Number - Returns the total amount of the data list.
- updating
Count Number - The UpdatingCount of Node.
NodePoolsNodePoolSystemVolume
NodePoolsNodePoolTag
NodePoolsNodePoolTaintContent
NodePoolsStatus
- Conditions
Type string - Indicates the status condition of the node pool in the active state. The value can be
Progressing
orOk
orVersionPartlyUpgraded
orStockOut
orLimitedByQuota
orBalance
orDegraded
orClusterVersionUpgrading
orCluster
orResourceCleanupFailed
orUnknown
orClusterNotRunning
orSetByProvider
. - Phase string
- The Phase of Status. The value can be
Creating
orRunning
orUpdating
orDeleting
orFailed
orScaling
.
- Conditions
Type string - Indicates the status condition of the node pool in the active state. The value can be
Progressing
orOk
orVersionPartlyUpgraded
orStockOut
orLimitedByQuota
orBalance
orDegraded
orClusterVersionUpgrading
orCluster
orResourceCleanupFailed
orUnknown
orClusterNotRunning
orSetByProvider
. - Phase string
- The Phase of Status. The value can be
Creating
orRunning
orUpdating
orDeleting
orFailed
orScaling
.
- conditions
Type String - Indicates the status condition of the node pool in the active state. The value can be
Progressing
orOk
orVersionPartlyUpgraded
orStockOut
orLimitedByQuota
orBalance
orDegraded
orClusterVersionUpgrading
orCluster
orResourceCleanupFailed
orUnknown
orClusterNotRunning
orSetByProvider
. - phase String
- The Phase of Status. The value can be
Creating
orRunning
orUpdating
orDeleting
orFailed
orScaling
.
- conditions
Type string - Indicates the status condition of the node pool in the active state. The value can be
Progressing
orOk
orVersionPartlyUpgraded
orStockOut
orLimitedByQuota
orBalance
orDegraded
orClusterVersionUpgrading
orCluster
orResourceCleanupFailed
orUnknown
orClusterNotRunning
orSetByProvider
. - phase string
- The Phase of Status. The value can be
Creating
orRunning
orUpdating
orDeleting
orFailed
orScaling
.
- conditions_
type str - Indicates the status condition of the node pool in the active state. The value can be
Progressing
orOk
orVersionPartlyUpgraded
orStockOut
orLimitedByQuota
orBalance
orDegraded
orClusterVersionUpgrading
orCluster
orResourceCleanupFailed
orUnknown
orClusterNotRunning
orSetByProvider
. - phase str
- The Phase of Status. The value can be
Creating
orRunning
orUpdating
orDeleting
orFailed
orScaling
.
- conditions
Type String - Indicates the status condition of the node pool in the active state. The value can be
Progressing
orOk
orVersionPartlyUpgraded
orStockOut
orLimitedByQuota
orBalance
orDegraded
orClusterVersionUpgrading
orCluster
orResourceCleanupFailed
orUnknown
orClusterNotRunning
orSetByProvider
. - phase String
- The Phase of Status. The value can be
Creating
orRunning
orUpdating
orDeleting
orFailed
orScaling
.
NodePoolsTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.