volcengine.vke.DefaultNodePoolBatchAttach
Explore with Pulumi AI
Provides a resource to manage vke default node pool batch attach
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
{
VpcName = "acc-test-project1",
CidrBlock = "172.16.0.0/16",
});
var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
{
SubnetName = "acc-subnet-test-2",
CidrBlock = "172.16.0.0/24",
ZoneId = "cn-beijing-a",
VpcId = fooVpc.Id,
});
var fooSecurityGroup = new Volcengine.Vpc.SecurityGroup("fooSecurityGroup", new()
{
VpcId = fooVpc.Id,
SecurityGroupName = "acc-test-security-group2",
});
var fooInstance = new Volcengine.Ecs.Instance("fooInstance", new()
{
ImageId = "image-ybqi99s7yq8rx7mnk44b",
InstanceType = "ecs.g1ie.large",
InstanceName = "acc-test-ecs-name2",
Password = "93f0cb0614Aab12",
InstanceChargeType = "PostPaid",
SystemVolumeType = "ESSD_PL0",
SystemVolumeSize = 40,
SubnetId = fooSubnet.Id,
SecurityGroupIds = new[]
{
fooSecurityGroup.Id,
},
});
var foo2 = new Volcengine.Ecs.Instance("foo2", new()
{
ImageId = "image-ybqi99s7yq8rx7mnk44b",
InstanceType = "ecs.g1ie.large",
InstanceName = "acc-test-ecs-name2",
Password = "93f0cb0614Aab12",
InstanceChargeType = "PostPaid",
SystemVolumeType = "ESSD_PL0",
SystemVolumeSize = 40,
SubnetId = fooSubnet.Id,
SecurityGroupIds = new[]
{
fooSecurityGroup.Id,
},
});
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 fooDefaultNodePool = new Volcengine.Vke.DefaultNodePool("fooDefaultNodePool", new()
{
ClusterId = fooCluster.Id,
NodeConfig = new Volcengine.Vke.Inputs.DefaultNodePoolNodeConfigArgs
{
Security = new Volcengine.Vke.Inputs.DefaultNodePoolNodeConfigSecurityArgs
{
Login = new Volcengine.Vke.Inputs.DefaultNodePoolNodeConfigSecurityLoginArgs
{
Password = "amw4WTdVcTRJVVFsUXpVTw==",
},
SecurityGroupIds = new[]
{
fooSecurityGroup.Id,
},
SecurityStrategies = new[]
{
"Hids",
},
},
InitializeScript = "ISMvYmluL2Jhc2gKZWNobyAx",
},
KubernetesConfig = new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigArgs
{
Labels = new[]
{
new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigLabelArgs
{
Key = "tf-key1",
Value = "tf-value1",
},
new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigLabelArgs
{
Key = "tf-key2",
Value = "tf-value2",
},
},
Taints = new[]
{
new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigTaintArgs
{
Key = "tf-key3",
Value = "tf-value3",
Effect = "NoSchedule",
},
new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigTaintArgs
{
Key = "tf-key4",
Value = "tf-value4",
Effect = "NoSchedule",
},
},
Cordon = true,
},
Tags = new[]
{
new Volcengine.Vke.Inputs.DefaultNodePoolTagArgs
{
Key = "tf-k1",
Value = "tf-v1",
},
},
});
var fooDefaultNodePoolBatchAttach = new Volcengine.Vke.DefaultNodePoolBatchAttach("fooDefaultNodePoolBatchAttach", new()
{
ClusterId = fooCluster.Id,
DefaultNodePoolId = fooDefaultNodePool.Id,
Instances = new[]
{
new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachInstanceArgs
{
InstanceId = fooInstance.Id,
KeepInstanceName = true,
AdditionalContainerStorageEnabled = false,
},
new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachInstanceArgs
{
InstanceId = foo2.Id,
KeepInstanceName = true,
AdditionalContainerStorageEnabled = false,
},
},
KubernetesConfig = new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigArgs
{
Labels = new[]
{
new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs
{
Key = "tf-key1",
Value = "tf-value1",
},
new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs
{
Key = "tf-key2",
Value = "tf-value2",
},
},
Taints = new[]
{
new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs
{
Key = "tf-key3",
Value = "tf-value3",
Effect = "NoSchedule",
},
new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs
{
Key = "tf-key4",
Value = "tf-value4",
Effect = "NoSchedule",
},
},
Cordon = true,
},
});
});
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 {
fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-project1"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-subnet-test-2"),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String("cn-beijing-a"),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
fooSecurityGroup, err := vpc.NewSecurityGroup(ctx, "fooSecurityGroup", &vpc.SecurityGroupArgs{
VpcId: fooVpc.ID(),
SecurityGroupName: pulumi.String("acc-test-security-group2"),
})
if err != nil {
return err
}
fooInstance, err := ecs.NewInstance(ctx, "fooInstance", &ecs.InstanceArgs{
ImageId: pulumi.String("image-ybqi99s7yq8rx7mnk44b"),
InstanceType: pulumi.String("ecs.g1ie.large"),
InstanceName: pulumi.String("acc-test-ecs-name2"),
Password: pulumi.String("93f0cb0614Aab12"),
InstanceChargeType: pulumi.String("PostPaid"),
SystemVolumeType: pulumi.String("ESSD_PL0"),
SystemVolumeSize: pulumi.Int(40),
SubnetId: fooSubnet.ID(),
SecurityGroupIds: pulumi.StringArray{
fooSecurityGroup.ID(),
},
})
if err != nil {
return err
}
foo2, err := ecs.NewInstance(ctx, "foo2", &ecs.InstanceArgs{
ImageId: pulumi.String("image-ybqi99s7yq8rx7mnk44b"),
InstanceType: pulumi.String("ecs.g1ie.large"),
InstanceName: pulumi.String("acc-test-ecs-name2"),
Password: pulumi.String("93f0cb0614Aab12"),
InstanceChargeType: pulumi.String("PostPaid"),
SystemVolumeType: pulumi.String("ESSD_PL0"),
SystemVolumeSize: pulumi.Int(40),
SubnetId: fooSubnet.ID(),
SecurityGroupIds: pulumi.StringArray{
fooSecurityGroup.ID(),
},
})
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
}
fooDefaultNodePool, err := vke.NewDefaultNodePool(ctx, "fooDefaultNodePool", &vke.DefaultNodePoolArgs{
ClusterId: fooCluster.ID(),
NodeConfig: &vke.DefaultNodePoolNodeConfigArgs{
Security: &vke.DefaultNodePoolNodeConfigSecurityArgs{
Login: &vke.DefaultNodePoolNodeConfigSecurityLoginArgs{
Password: pulumi.String("amw4WTdVcTRJVVFsUXpVTw=="),
},
SecurityGroupIds: pulumi.StringArray{
fooSecurityGroup.ID(),
},
SecurityStrategies: pulumi.StringArray{
pulumi.String("Hids"),
},
},
InitializeScript: pulumi.String("ISMvYmluL2Jhc2gKZWNobyAx"),
},
KubernetesConfig: &vke.DefaultNodePoolKubernetesConfigArgs{
Labels: vke.DefaultNodePoolKubernetesConfigLabelArray{
&vke.DefaultNodePoolKubernetesConfigLabelArgs{
Key: pulumi.String("tf-key1"),
Value: pulumi.String("tf-value1"),
},
&vke.DefaultNodePoolKubernetesConfigLabelArgs{
Key: pulumi.String("tf-key2"),
Value: pulumi.String("tf-value2"),
},
},
Taints: vke.DefaultNodePoolKubernetesConfigTaintArray{
&vke.DefaultNodePoolKubernetesConfigTaintArgs{
Key: pulumi.String("tf-key3"),
Value: pulumi.String("tf-value3"),
Effect: pulumi.String("NoSchedule"),
},
&vke.DefaultNodePoolKubernetesConfigTaintArgs{
Key: pulumi.String("tf-key4"),
Value: pulumi.String("tf-value4"),
Effect: pulumi.String("NoSchedule"),
},
},
Cordon: pulumi.Bool(true),
},
Tags: vke.DefaultNodePoolTagArray{
&vke.DefaultNodePoolTagArgs{
Key: pulumi.String("tf-k1"),
Value: pulumi.String("tf-v1"),
},
},
})
if err != nil {
return err
}
_, err = vke.NewDefaultNodePoolBatchAttach(ctx, "fooDefaultNodePoolBatchAttach", &vke.DefaultNodePoolBatchAttachArgs{
ClusterId: fooCluster.ID(),
DefaultNodePoolId: fooDefaultNodePool.ID(),
Instances: vke.DefaultNodePoolBatchAttachInstanceArray{
&vke.DefaultNodePoolBatchAttachInstanceArgs{
InstanceId: fooInstance.ID(),
KeepInstanceName: pulumi.Bool(true),
AdditionalContainerStorageEnabled: pulumi.Bool(false),
},
&vke.DefaultNodePoolBatchAttachInstanceArgs{
InstanceId: foo2.ID(),
KeepInstanceName: pulumi.Bool(true),
AdditionalContainerStorageEnabled: pulumi.Bool(false),
},
},
KubernetesConfig: &vke.DefaultNodePoolBatchAttachKubernetesConfigArgs{
Labels: vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArray{
&vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs{
Key: pulumi.String("tf-key1"),
Value: pulumi.String("tf-value1"),
},
&vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs{
Key: pulumi.String("tf-key2"),
Value: pulumi.String("tf-value2"),
},
},
Taints: vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArray{
&vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs{
Key: pulumi.String("tf-key3"),
Value: pulumi.String("tf-value3"),
Effect: pulumi.String("NoSchedule"),
},
&vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs{
Key: pulumi.String("tf-key4"),
Value: pulumi.String("tf-value4"),
Effect: pulumi.String("NoSchedule"),
},
},
Cordon: pulumi.Bool(true),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.vpc.SecurityGroup;
import com.pulumi.volcengine.vpc.SecurityGroupArgs;
import com.pulumi.volcengine.ecs.Instance;
import com.pulumi.volcengine.ecs.InstanceArgs;
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.DefaultNodePool;
import com.pulumi.volcengine.vke.DefaultNodePoolArgs;
import com.pulumi.volcengine.vke.inputs.DefaultNodePoolNodeConfigArgs;
import com.pulumi.volcengine.vke.inputs.DefaultNodePoolNodeConfigSecurityArgs;
import com.pulumi.volcengine.vke.inputs.DefaultNodePoolNodeConfigSecurityLoginArgs;
import com.pulumi.volcengine.vke.inputs.DefaultNodePoolKubernetesConfigArgs;
import com.pulumi.volcengine.vke.inputs.DefaultNodePoolTagArgs;
import com.pulumi.volcengine.vke.DefaultNodePoolBatchAttach;
import com.pulumi.volcengine.vke.DefaultNodePoolBatchAttachArgs;
import com.pulumi.volcengine.vke.inputs.DefaultNodePoolBatchAttachInstanceArgs;
import com.pulumi.volcengine.vke.inputs.DefaultNodePoolBatchAttachKubernetesConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.vpcName("acc-test-project1")
.cidrBlock("172.16.0.0/16")
.build());
var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
.subnetName("acc-subnet-test-2")
.cidrBlock("172.16.0.0/24")
.zoneId("cn-beijing-a")
.vpcId(fooVpc.id())
.build());
var fooSecurityGroup = new SecurityGroup("fooSecurityGroup", SecurityGroupArgs.builder()
.vpcId(fooVpc.id())
.securityGroupName("acc-test-security-group2")
.build());
var fooInstance = new Instance("fooInstance", InstanceArgs.builder()
.imageId("image-ybqi99s7yq8rx7mnk44b")
.instanceType("ecs.g1ie.large")
.instanceName("acc-test-ecs-name2")
.password("93f0cb0614Aab12")
.instanceChargeType("PostPaid")
.systemVolumeType("ESSD_PL0")
.systemVolumeSize(40)
.subnetId(fooSubnet.id())
.securityGroupIds(fooSecurityGroup.id())
.build());
var foo2 = new Instance("foo2", InstanceArgs.builder()
.imageId("image-ybqi99s7yq8rx7mnk44b")
.instanceType("ecs.g1ie.large")
.instanceName("acc-test-ecs-name2")
.password("93f0cb0614Aab12")
.instanceChargeType("PostPaid")
.systemVolumeType("ESSD_PL0")
.systemVolumeSize(40)
.subnetId(fooSubnet.id())
.securityGroupIds(fooSecurityGroup.id())
.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());
var fooDefaultNodePool = new DefaultNodePool("fooDefaultNodePool", DefaultNodePoolArgs.builder()
.clusterId(fooCluster.id())
.nodeConfig(DefaultNodePoolNodeConfigArgs.builder()
.security(DefaultNodePoolNodeConfigSecurityArgs.builder()
.login(DefaultNodePoolNodeConfigSecurityLoginArgs.builder()
.password("amw4WTdVcTRJVVFsUXpVTw==")
.build())
.securityGroupIds(fooSecurityGroup.id())
.securityStrategies("Hids")
.build())
.initializeScript("ISMvYmluL2Jhc2gKZWNobyAx")
.build())
.kubernetesConfig(DefaultNodePoolKubernetesConfigArgs.builder()
.labels(
DefaultNodePoolKubernetesConfigLabelArgs.builder()
.key("tf-key1")
.value("tf-value1")
.build(),
DefaultNodePoolKubernetesConfigLabelArgs.builder()
.key("tf-key2")
.value("tf-value2")
.build())
.taints(
DefaultNodePoolKubernetesConfigTaintArgs.builder()
.key("tf-key3")
.value("tf-value3")
.effect("NoSchedule")
.build(),
DefaultNodePoolKubernetesConfigTaintArgs.builder()
.key("tf-key4")
.value("tf-value4")
.effect("NoSchedule")
.build())
.cordon(true)
.build())
.tags(DefaultNodePoolTagArgs.builder()
.key("tf-k1")
.value("tf-v1")
.build())
.build());
var fooDefaultNodePoolBatchAttach = new DefaultNodePoolBatchAttach("fooDefaultNodePoolBatchAttach", DefaultNodePoolBatchAttachArgs.builder()
.clusterId(fooCluster.id())
.defaultNodePoolId(fooDefaultNodePool.id())
.instances(
DefaultNodePoolBatchAttachInstanceArgs.builder()
.instanceId(fooInstance.id())
.keepInstanceName(true)
.additionalContainerStorageEnabled(false)
.build(),
DefaultNodePoolBatchAttachInstanceArgs.builder()
.instanceId(foo2.id())
.keepInstanceName(true)
.additionalContainerStorageEnabled(false)
.build())
.kubernetesConfig(DefaultNodePoolBatchAttachKubernetesConfigArgs.builder()
.labels(
DefaultNodePoolBatchAttachKubernetesConfigLabelArgs.builder()
.key("tf-key1")
.value("tf-value1")
.build(),
DefaultNodePoolBatchAttachKubernetesConfigLabelArgs.builder()
.key("tf-key2")
.value("tf-value2")
.build())
.taints(
DefaultNodePoolBatchAttachKubernetesConfigTaintArgs.builder()
.key("tf-key3")
.value("tf-value3")
.effect("NoSchedule")
.build(),
DefaultNodePoolBatchAttachKubernetesConfigTaintArgs.builder()
.key("tf-key4")
.value("tf-value4")
.effect("NoSchedule")
.build())
.cordon(true)
.build())
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo_vpc = volcengine.vpc.Vpc("fooVpc",
vpc_name="acc-test-project1",
cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
subnet_name="acc-subnet-test-2",
cidr_block="172.16.0.0/24",
zone_id="cn-beijing-a",
vpc_id=foo_vpc.id)
foo_security_group = volcengine.vpc.SecurityGroup("fooSecurityGroup",
vpc_id=foo_vpc.id,
security_group_name="acc-test-security-group2")
foo_instance = volcengine.ecs.Instance("fooInstance",
image_id="image-ybqi99s7yq8rx7mnk44b",
instance_type="ecs.g1ie.large",
instance_name="acc-test-ecs-name2",
password="93f0cb0614Aab12",
instance_charge_type="PostPaid",
system_volume_type="ESSD_PL0",
system_volume_size=40,
subnet_id=foo_subnet.id,
security_group_ids=[foo_security_group.id])
foo2 = volcengine.ecs.Instance("foo2",
image_id="image-ybqi99s7yq8rx7mnk44b",
instance_type="ecs.g1ie.large",
instance_name="acc-test-ecs-name2",
password="93f0cb0614Aab12",
instance_charge_type="PostPaid",
system_volume_type="ESSD_PL0",
system_volume_size=40,
subnet_id=foo_subnet.id,
security_group_ids=[foo_security_group.id])
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_default_node_pool = volcengine.vke.DefaultNodePool("fooDefaultNodePool",
cluster_id=foo_cluster.id,
node_config=volcengine.vke.DefaultNodePoolNodeConfigArgs(
security=volcengine.vke.DefaultNodePoolNodeConfigSecurityArgs(
login=volcengine.vke.DefaultNodePoolNodeConfigSecurityLoginArgs(
password="amw4WTdVcTRJVVFsUXpVTw==",
),
security_group_ids=[foo_security_group.id],
security_strategies=["Hids"],
),
initialize_script="ISMvYmluL2Jhc2gKZWNobyAx",
),
kubernetes_config=volcengine.vke.DefaultNodePoolKubernetesConfigArgs(
labels=[
volcengine.vke.DefaultNodePoolKubernetesConfigLabelArgs(
key="tf-key1",
value="tf-value1",
),
volcengine.vke.DefaultNodePoolKubernetesConfigLabelArgs(
key="tf-key2",
value="tf-value2",
),
],
taints=[
volcengine.vke.DefaultNodePoolKubernetesConfigTaintArgs(
key="tf-key3",
value="tf-value3",
effect="NoSchedule",
),
volcengine.vke.DefaultNodePoolKubernetesConfigTaintArgs(
key="tf-key4",
value="tf-value4",
effect="NoSchedule",
),
],
cordon=True,
),
tags=[volcengine.vke.DefaultNodePoolTagArgs(
key="tf-k1",
value="tf-v1",
)])
foo_default_node_pool_batch_attach = volcengine.vke.DefaultNodePoolBatchAttach("fooDefaultNodePoolBatchAttach",
cluster_id=foo_cluster.id,
default_node_pool_id=foo_default_node_pool.id,
instances=[
volcengine.vke.DefaultNodePoolBatchAttachInstanceArgs(
instance_id=foo_instance.id,
keep_instance_name=True,
additional_container_storage_enabled=False,
),
volcengine.vke.DefaultNodePoolBatchAttachInstanceArgs(
instance_id=foo2.id,
keep_instance_name=True,
additional_container_storage_enabled=False,
),
],
kubernetes_config=volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigArgs(
labels=[
volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs(
key="tf-key1",
value="tf-value1",
),
volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs(
key="tf-key2",
value="tf-value2",
),
],
taints=[
volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs(
key="tf-key3",
value="tf-value3",
effect="NoSchedule",
),
volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs(
key="tf-key4",
value="tf-value4",
effect="NoSchedule",
),
],
cordon=True,
))
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
vpcName: "acc-test-project1",
cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
subnetName: "acc-subnet-test-2",
cidrBlock: "172.16.0.0/24",
zoneId: "cn-beijing-a",
vpcId: fooVpc.id,
});
const fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
vpcId: fooVpc.id,
securityGroupName: "acc-test-security-group2",
});
const fooInstance = new volcengine.ecs.Instance("fooInstance", {
imageId: "image-ybqi99s7yq8rx7mnk44b",
instanceType: "ecs.g1ie.large",
instanceName: "acc-test-ecs-name2",
password: "93f0cb0614Aab12",
instanceChargeType: "PostPaid",
systemVolumeType: "ESSD_PL0",
systemVolumeSize: 40,
subnetId: fooSubnet.id,
securityGroupIds: [fooSecurityGroup.id],
});
const foo2 = new volcengine.ecs.Instance("foo2", {
imageId: "image-ybqi99s7yq8rx7mnk44b",
instanceType: "ecs.g1ie.large",
instanceName: "acc-test-ecs-name2",
password: "93f0cb0614Aab12",
instanceChargeType: "PostPaid",
systemVolumeType: "ESSD_PL0",
systemVolumeSize: 40,
subnetId: fooSubnet.id,
securityGroupIds: [fooSecurityGroup.id],
});
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 fooDefaultNodePool = new volcengine.vke.DefaultNodePool("fooDefaultNodePool", {
clusterId: fooCluster.id,
nodeConfig: {
security: {
login: {
password: "amw4WTdVcTRJVVFsUXpVTw==",
},
securityGroupIds: [fooSecurityGroup.id],
securityStrategies: ["Hids"],
},
initializeScript: "ISMvYmluL2Jhc2gKZWNobyAx",
},
kubernetesConfig: {
labels: [
{
key: "tf-key1",
value: "tf-value1",
},
{
key: "tf-key2",
value: "tf-value2",
},
],
taints: [
{
key: "tf-key3",
value: "tf-value3",
effect: "NoSchedule",
},
{
key: "tf-key4",
value: "tf-value4",
effect: "NoSchedule",
},
],
cordon: true,
},
tags: [{
key: "tf-k1",
value: "tf-v1",
}],
});
const fooDefaultNodePoolBatchAttach = new volcengine.vke.DefaultNodePoolBatchAttach("fooDefaultNodePoolBatchAttach", {
clusterId: fooCluster.id,
defaultNodePoolId: fooDefaultNodePool.id,
instances: [
{
instanceId: fooInstance.id,
keepInstanceName: true,
additionalContainerStorageEnabled: false,
},
{
instanceId: foo2.id,
keepInstanceName: true,
additionalContainerStorageEnabled: false,
},
],
kubernetesConfig: {
labels: [
{
key: "tf-key1",
value: "tf-value1",
},
{
key: "tf-key2",
value: "tf-value2",
},
],
taints: [
{
key: "tf-key3",
value: "tf-value3",
effect: "NoSchedule",
},
{
key: "tf-key4",
value: "tf-value4",
effect: "NoSchedule",
},
],
cordon: true,
},
});
resources:
fooVpc:
type: volcengine:vpc:Vpc
properties:
vpcName: acc-test-project1
cidrBlock: 172.16.0.0/16
fooSubnet:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-subnet-test-2
cidrBlock: 172.16.0.0/24
zoneId: cn-beijing-a
vpcId: ${fooVpc.id}
fooSecurityGroup:
type: volcengine:vpc:SecurityGroup
properties:
vpcId: ${fooVpc.id}
securityGroupName: acc-test-security-group2
fooInstance:
type: volcengine:ecs:Instance
properties:
imageId: image-ybqi99s7yq8rx7mnk44b
instanceType: ecs.g1ie.large
instanceName: acc-test-ecs-name2
password: 93f0cb0614Aab12
instanceChargeType: PostPaid
systemVolumeType: ESSD_PL0
systemVolumeSize: 40
subnetId: ${fooSubnet.id}
securityGroupIds:
- ${fooSecurityGroup.id}
foo2:
type: volcengine:ecs:Instance
properties:
imageId: image-ybqi99s7yq8rx7mnk44b
instanceType: ecs.g1ie.large
instanceName: acc-test-ecs-name2
password: 93f0cb0614Aab12
instanceChargeType: PostPaid
systemVolumeType: ESSD_PL0
systemVolumeSize: 40
subnetId: ${fooSubnet.id}
securityGroupIds:
- ${fooSecurityGroup.id}
fooCluster:
type: volcengine:vke:Cluster
properties:
description: created by terraform
deleteProtectionEnabled: false
clusterConfig:
subnetIds:
- ${fooSubnet.id}
apiServerPublicAccessEnabled: true
apiServerPublicAccessConfig:
publicAccessNetworkConfig:
billingType: PostPaidByBandwidth
bandwidth: 1
resourcePublicAccessDefaultEnabled: true
podsConfig:
podNetworkMode: VpcCniShared
vpcCniConfig:
subnetIds:
- ${fooSubnet.id}
servicesConfig:
serviceCidrsv4s:
- 172.30.0.0/18
tags:
- key: tf-k1
value: tf-v1
fooDefaultNodePool:
type: volcengine:vke:DefaultNodePool
properties:
clusterId: ${fooCluster.id}
nodeConfig:
security:
login:
password: amw4WTdVcTRJVVFsUXpVTw==
securityGroupIds:
- ${fooSecurityGroup.id}
securityStrategies:
- Hids
initializeScript: ISMvYmluL2Jhc2gKZWNobyAx
kubernetesConfig:
labels:
- key: tf-key1
value: tf-value1
- key: tf-key2
value: tf-value2
taints:
- key: tf-key3
value: tf-value3
effect: NoSchedule
- key: tf-key4
value: tf-value4
effect: NoSchedule
cordon: true
tags:
- key: tf-k1
value: tf-v1
fooDefaultNodePoolBatchAttach:
type: volcengine:vke:DefaultNodePoolBatchAttach
properties:
clusterId: ${fooCluster.id}
defaultNodePoolId: ${fooDefaultNodePool.id}
instances:
- instanceId: ${fooInstance.id}
keepInstanceName: true
additionalContainerStorageEnabled: false
- instanceId: ${foo2.id}
keepInstanceName: true
additionalContainerStorageEnabled: false
kubernetesConfig:
labels:
- key: tf-key1
value: tf-value1
- key: tf-key2
value: tf-value2
taints:
- key: tf-key3
value: tf-value3
effect: NoSchedule
- key: tf-key4
value: tf-value4
effect: NoSchedule
cordon: true
Create DefaultNodePoolBatchAttach Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DefaultNodePoolBatchAttach(name: string, args: DefaultNodePoolBatchAttachArgs, opts?: CustomResourceOptions);
@overload
def DefaultNodePoolBatchAttach(resource_name: str,
args: DefaultNodePoolBatchAttachArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DefaultNodePoolBatchAttach(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
default_node_pool_id: Optional[str] = None,
instances: Optional[Sequence[DefaultNodePoolBatchAttachInstanceArgs]] = None,
kubernetes_config: Optional[DefaultNodePoolBatchAttachKubernetesConfigArgs] = None)
func NewDefaultNodePoolBatchAttach(ctx *Context, name string, args DefaultNodePoolBatchAttachArgs, opts ...ResourceOption) (*DefaultNodePoolBatchAttach, error)
public DefaultNodePoolBatchAttach(string name, DefaultNodePoolBatchAttachArgs args, CustomResourceOptions? opts = null)
public DefaultNodePoolBatchAttach(String name, DefaultNodePoolBatchAttachArgs args)
public DefaultNodePoolBatchAttach(String name, DefaultNodePoolBatchAttachArgs args, CustomResourceOptions options)
type: volcengine:vke:DefaultNodePoolBatchAttach
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 DefaultNodePoolBatchAttachArgs
- 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 DefaultNodePoolBatchAttachArgs
- 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 DefaultNodePoolBatchAttachArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefaultNodePoolBatchAttachArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DefaultNodePoolBatchAttachArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var defaultNodePoolBatchAttachResource = new Volcengine.Vke.DefaultNodePoolBatchAttach("defaultNodePoolBatchAttachResource", new()
{
ClusterId = "string",
DefaultNodePoolId = "string",
Instances = new[]
{
new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachInstanceArgs
{
InstanceId = "string",
AdditionalContainerStorageEnabled = false,
ContainerStoragePath = "string",
Id = "string",
ImageId = "string",
KeepInstanceName = false,
Phase = "string",
},
},
KubernetesConfig = new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigArgs
{
Cordon = false,
Labels = new[]
{
new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs
{
Key = "string",
Value = "string",
},
},
Taints = new[]
{
new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs
{
Key = "string",
Effect = "string",
Value = "string",
},
},
},
});
example, err := vke.NewDefaultNodePoolBatchAttach(ctx, "defaultNodePoolBatchAttachResource", &vke.DefaultNodePoolBatchAttachArgs{
ClusterId: pulumi.String("string"),
DefaultNodePoolId: pulumi.String("string"),
Instances: vke.DefaultNodePoolBatchAttachInstanceArray{
&vke.DefaultNodePoolBatchAttachInstanceArgs{
InstanceId: pulumi.String("string"),
AdditionalContainerStorageEnabled: pulumi.Bool(false),
ContainerStoragePath: pulumi.String("string"),
Id: pulumi.String("string"),
ImageId: pulumi.String("string"),
KeepInstanceName: pulumi.Bool(false),
Phase: pulumi.String("string"),
},
},
KubernetesConfig: &vke.DefaultNodePoolBatchAttachKubernetesConfigArgs{
Cordon: pulumi.Bool(false),
Labels: vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArray{
&vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Taints: vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArray{
&vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs{
Key: pulumi.String("string"),
Effect: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
})
var defaultNodePoolBatchAttachResource = new DefaultNodePoolBatchAttach("defaultNodePoolBatchAttachResource", DefaultNodePoolBatchAttachArgs.builder()
.clusterId("string")
.defaultNodePoolId("string")
.instances(DefaultNodePoolBatchAttachInstanceArgs.builder()
.instanceId("string")
.additionalContainerStorageEnabled(false)
.containerStoragePath("string")
.id("string")
.imageId("string")
.keepInstanceName(false)
.phase("string")
.build())
.kubernetesConfig(DefaultNodePoolBatchAttachKubernetesConfigArgs.builder()
.cordon(false)
.labels(DefaultNodePoolBatchAttachKubernetesConfigLabelArgs.builder()
.key("string")
.value("string")
.build())
.taints(DefaultNodePoolBatchAttachKubernetesConfigTaintArgs.builder()
.key("string")
.effect("string")
.value("string")
.build())
.build())
.build());
default_node_pool_batch_attach_resource = volcengine.vke.DefaultNodePoolBatchAttach("defaultNodePoolBatchAttachResource",
cluster_id="string",
default_node_pool_id="string",
instances=[volcengine.vke.DefaultNodePoolBatchAttachInstanceArgs(
instance_id="string",
additional_container_storage_enabled=False,
container_storage_path="string",
id="string",
image_id="string",
keep_instance_name=False,
phase="string",
)],
kubernetes_config=volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigArgs(
cordon=False,
labels=[volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs(
key="string",
value="string",
)],
taints=[volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs(
key="string",
effect="string",
value="string",
)],
))
const defaultNodePoolBatchAttachResource = new volcengine.vke.DefaultNodePoolBatchAttach("defaultNodePoolBatchAttachResource", {
clusterId: "string",
defaultNodePoolId: "string",
instances: [{
instanceId: "string",
additionalContainerStorageEnabled: false,
containerStoragePath: "string",
id: "string",
imageId: "string",
keepInstanceName: false,
phase: "string",
}],
kubernetesConfig: {
cordon: false,
labels: [{
key: "string",
value: "string",
}],
taints: [{
key: "string",
effect: "string",
value: "string",
}],
},
});
type: volcengine:vke:DefaultNodePoolBatchAttach
properties:
clusterId: string
defaultNodePoolId: string
instances:
- additionalContainerStorageEnabled: false
containerStoragePath: string
id: string
imageId: string
instanceId: string
keepInstanceName: false
phase: string
kubernetesConfig:
cordon: false
labels:
- key: string
value: string
taints:
- effect: string
key: string
value: string
DefaultNodePoolBatchAttach Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DefaultNodePoolBatchAttach resource accepts the following input properties:
- Cluster
Id string - The ClusterId of NodePool.
- Default
Node stringPool Id - The default NodePool ID.
- Instances
List<Default
Node Pool Batch Attach Instance> - The ECS InstanceIds add to NodePool.
- Kubernetes
Config DefaultNode Pool Batch Attach Kubernetes Config - The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
- Cluster
Id string - The ClusterId of NodePool.
- Default
Node stringPool Id - The default NodePool ID.
- Instances
[]Default
Node Pool Batch Attach Instance Args - The ECS InstanceIds add to NodePool.
- Kubernetes
Config DefaultNode Pool Batch Attach Kubernetes Config Args - The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
- cluster
Id String - The ClusterId of NodePool.
- default
Node StringPool Id - The default NodePool ID.
- instances
List<Default
Node Pool Batch Attach Instance> - The ECS InstanceIds add to NodePool.
- kubernetes
Config DefaultNode Pool Batch Attach Kubernetes Config - The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
- cluster
Id string - The ClusterId of NodePool.
- default
Node stringPool Id - The default NodePool ID.
- instances
Default
Node Pool Batch Attach Instance[] - The ECS InstanceIds add to NodePool.
- kubernetes
Config DefaultNode Pool Batch Attach Kubernetes Config - The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
- cluster_
id str - The ClusterId of NodePool.
- default_
node_ strpool_ id - The default NodePool ID.
- instances
Sequence[Default
Node Pool Batch Attach Instance Args] - The ECS InstanceIds add to NodePool.
- kubernetes_
config DefaultNode Pool Batch Attach Kubernetes Config Args - The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
- cluster
Id String - The ClusterId of NodePool.
- default
Node StringPool Id - The default NodePool ID.
- instances List<Property Map>
- The ECS InstanceIds add to NodePool.
- kubernetes
Config Property Map - The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
Outputs
All input properties are implicitly available as output properties. Additionally, the DefaultNodePoolBatchAttach resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Import bool - Is import of the DefaultNodePool. It only works when imported, set to true.
- Node
Configs List<DefaultNode Pool Batch Attach Node Config> - The Config of NodePool.
- List<Default
Node Pool Batch Attach Tag> - Tags.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Import bool - Is import of the DefaultNodePool. It only works when imported, set to true.
- Node
Configs []DefaultNode Pool Batch Attach Node Config - The Config of NodePool.
- []Default
Node Pool Batch Attach Tag - Tags.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Import Boolean - Is import of the DefaultNodePool. It only works when imported, set to true.
- node
Configs List<DefaultNode Pool Batch Attach Node Config> - The Config of NodePool.
- List<Default
Node Pool Batch Attach Tag> - Tags.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Import boolean - Is import of the DefaultNodePool. It only works when imported, set to true.
- node
Configs DefaultNode Pool Batch Attach Node Config[] - The Config of NodePool.
- Default
Node Pool Batch Attach Tag[] - Tags.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
import bool - Is import of the DefaultNodePool. It only works when imported, set to true.
- node_
configs Sequence[DefaultNode Pool Batch Attach Node Config] - The Config of NodePool.
- Sequence[Default
Node Pool Batch Attach Tag] - Tags.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Import Boolean - Is import of the DefaultNodePool. It only works when imported, set to true.
- node
Configs List<Property Map> - The Config of NodePool.
- List<Property Map>
- Tags.
Look up Existing DefaultNodePoolBatchAttach Resource
Get an existing DefaultNodePoolBatchAttach 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?: DefaultNodePoolBatchAttachState, opts?: CustomResourceOptions): DefaultNodePoolBatchAttach
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
default_node_pool_id: Optional[str] = None,
instances: Optional[Sequence[DefaultNodePoolBatchAttachInstanceArgs]] = None,
is_import: Optional[bool] = None,
kubernetes_config: Optional[DefaultNodePoolBatchAttachKubernetesConfigArgs] = None,
node_configs: Optional[Sequence[DefaultNodePoolBatchAttachNodeConfigArgs]] = None,
tags: Optional[Sequence[DefaultNodePoolBatchAttachTagArgs]] = None) -> DefaultNodePoolBatchAttach
func GetDefaultNodePoolBatchAttach(ctx *Context, name string, id IDInput, state *DefaultNodePoolBatchAttachState, opts ...ResourceOption) (*DefaultNodePoolBatchAttach, error)
public static DefaultNodePoolBatchAttach Get(string name, Input<string> id, DefaultNodePoolBatchAttachState? state, CustomResourceOptions? opts = null)
public static DefaultNodePoolBatchAttach get(String name, Output<String> id, DefaultNodePoolBatchAttachState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Id string - The ClusterId of NodePool.
- Default
Node stringPool Id - The default NodePool ID.
- Instances
List<Default
Node Pool Batch Attach Instance> - The ECS InstanceIds add to NodePool.
- Is
Import bool - Is import of the DefaultNodePool. It only works when imported, set to true.
- Kubernetes
Config DefaultNode Pool Batch Attach Kubernetes Config - The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
- Node
Configs List<DefaultNode Pool Batch Attach Node Config> - The Config of NodePool.
- List<Default
Node Pool Batch Attach Tag> - Tags.
- Cluster
Id string - The ClusterId of NodePool.
- Default
Node stringPool Id - The default NodePool ID.
- Instances
[]Default
Node Pool Batch Attach Instance Args - The ECS InstanceIds add to NodePool.
- Is
Import bool - Is import of the DefaultNodePool. It only works when imported, set to true.
- Kubernetes
Config DefaultNode Pool Batch Attach Kubernetes Config Args - The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
- Node
Configs []DefaultNode Pool Batch Attach Node Config Args - The Config of NodePool.
- []Default
Node Pool Batch Attach Tag Args - Tags.
- cluster
Id String - The ClusterId of NodePool.
- default
Node StringPool Id - The default NodePool ID.
- instances
List<Default
Node Pool Batch Attach Instance> - The ECS InstanceIds add to NodePool.
- is
Import Boolean - Is import of the DefaultNodePool. It only works when imported, set to true.
- kubernetes
Config DefaultNode Pool Batch Attach Kubernetes Config - The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
- node
Configs List<DefaultNode Pool Batch Attach Node Config> - The Config of NodePool.
- List<Default
Node Pool Batch Attach Tag> - Tags.
- cluster
Id string - The ClusterId of NodePool.
- default
Node stringPool Id - The default NodePool ID.
- instances
Default
Node Pool Batch Attach Instance[] - The ECS InstanceIds add to NodePool.
- is
Import boolean - Is import of the DefaultNodePool. It only works when imported, set to true.
- kubernetes
Config DefaultNode Pool Batch Attach Kubernetes Config - The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
- node
Configs DefaultNode Pool Batch Attach Node Config[] - The Config of NodePool.
- Default
Node Pool Batch Attach Tag[] - Tags.
- cluster_
id str - The ClusterId of NodePool.
- default_
node_ strpool_ id - The default NodePool ID.
- instances
Sequence[Default
Node Pool Batch Attach Instance Args] - The ECS InstanceIds add to NodePool.
- is_
import bool - Is import of the DefaultNodePool. It only works when imported, set to true.
- kubernetes_
config DefaultNode Pool Batch Attach Kubernetes Config Args - The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
- node_
configs Sequence[DefaultNode Pool Batch Attach Node Config Args] - The Config of NodePool.
- Sequence[Default
Node Pool Batch Attach Tag Args] - Tags.
- cluster
Id String - The ClusterId of NodePool.
- default
Node StringPool Id - The default NodePool ID.
- instances List<Property Map>
- The ECS InstanceIds add to NodePool.
- is
Import Boolean - Is import of the DefaultNodePool. It only works when imported, set to true.
- kubernetes
Config Property Map - The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
- node
Configs List<Property Map> - The Config of NodePool.
- List<Property Map>
- Tags.
Supporting Types
DefaultNodePoolBatchAttachInstance, DefaultNodePoolBatchAttachInstanceArgs
- Instance
Id string - The instance id.
- Additional
Container boolStorage Enabled - The flag of additional container storage enable, the value is
true
orfalse
..Default isfalse
. - Container
Storage stringPath - The container storage path.When additional_container_storage_enabled is
false
will ignore. - Id string
- ID of the resource.
- Image
Id string - The Image Id to the ECS Instance.
- Keep
Instance boolName - The flag of keep instance name, the value is
true
orfalse
.Default isfalse
. - Phase string
- Instance
Id string - The instance id.
- Additional
Container boolStorage Enabled - The flag of additional container storage enable, the value is
true
orfalse
..Default isfalse
. - Container
Storage stringPath - The container storage path.When additional_container_storage_enabled is
false
will ignore. - Id string
- ID of the resource.
- Image
Id string - The Image Id to the ECS Instance.
- Keep
Instance boolName - The flag of keep instance name, the value is
true
orfalse
.Default isfalse
. - Phase string
- instance
Id String - The instance id.
- additional
Container BooleanStorage Enabled - The flag of additional container storage enable, the value is
true
orfalse
..Default isfalse
. - container
Storage StringPath - The container storage path.When additional_container_storage_enabled is
false
will ignore. - id String
- ID of the resource.
- image
Id String - The Image Id to the ECS Instance.
- keep
Instance BooleanName - The flag of keep instance name, the value is
true
orfalse
.Default isfalse
. - phase String
- instance
Id string - The instance id.
- additional
Container booleanStorage Enabled - The flag of additional container storage enable, the value is
true
orfalse
..Default isfalse
. - container
Storage stringPath - The container storage path.When additional_container_storage_enabled is
false
will ignore. - id string
- ID of the resource.
- image
Id string - The Image Id to the ECS Instance.
- keep
Instance booleanName - The flag of keep instance name, the value is
true
orfalse
.Default isfalse
. - phase string
- instance_
id str - The instance id.
- additional_
container_ boolstorage_ enabled - The flag of additional container storage enable, the value is
true
orfalse
..Default isfalse
. - container_
storage_ strpath - The container storage path.When additional_container_storage_enabled is
false
will ignore. - id str
- ID of the resource.
- image_
id str - The Image Id to the ECS Instance.
- keep_
instance_ boolname - The flag of keep instance name, the value is
true
orfalse
.Default isfalse
. - phase str
- instance
Id String - The instance id.
- additional
Container BooleanStorage Enabled - The flag of additional container storage enable, the value is
true
orfalse
..Default isfalse
. - container
Storage StringPath - The container storage path.When additional_container_storage_enabled is
false
will ignore. - id String
- ID of the resource.
- image
Id String - The Image Id to the ECS Instance.
- keep
Instance BooleanName - The flag of keep instance name, the value is
true
orfalse
.Default isfalse
. - phase String
DefaultNodePoolBatchAttachKubernetesConfig, DefaultNodePoolBatchAttachKubernetesConfigArgs
- Cordon bool
- The Cordon of KubernetesConfig.
- Labels
List<Default
Node Pool Batch Attach Kubernetes Config Label> - The Labels of KubernetesConfig.
- Taints
List<Default
Node Pool Batch Attach Kubernetes Config Taint> - The Taints of KubernetesConfig.
- Cordon bool
- The Cordon of KubernetesConfig.
- Labels
[]Default
Node Pool Batch Attach Kubernetes Config Label - The Labels of KubernetesConfig.
- Taints
[]Default
Node Pool Batch Attach Kubernetes Config Taint - The Taints of KubernetesConfig.
- cordon Boolean
- The Cordon of KubernetesConfig.
- labels
List<Default
Node Pool Batch Attach Kubernetes Config Label> - The Labels of KubernetesConfig.
- taints
List<Default
Node Pool Batch Attach Kubernetes Config Taint> - The Taints of KubernetesConfig.
- cordon boolean
- The Cordon of KubernetesConfig.
- labels
Default
Node Pool Batch Attach Kubernetes Config Label[] - The Labels of KubernetesConfig.
- taints
Default
Node Pool Batch Attach Kubernetes Config Taint[] - The Taints of KubernetesConfig.
- cordon bool
- The Cordon of KubernetesConfig.
- labels
Sequence[Default
Node Pool Batch Attach Kubernetes Config Label] - The Labels of KubernetesConfig.
- taints
Sequence[Default
Node Pool Batch Attach Kubernetes Config Taint] - The Taints of KubernetesConfig.
- cordon Boolean
- The Cordon of KubernetesConfig.
- labels List<Property Map>
- The Labels of KubernetesConfig.
- taints List<Property Map>
- The Taints of KubernetesConfig.
DefaultNodePoolBatchAttachKubernetesConfigLabel, DefaultNodePoolBatchAttachKubernetesConfigLabelArgs
DefaultNodePoolBatchAttachKubernetesConfigTaint, DefaultNodePoolBatchAttachKubernetesConfigTaintArgs
DefaultNodePoolBatchAttachNodeConfig, DefaultNodePoolBatchAttachNodeConfigArgs
- List<Default
Node Pool Batch Attach Node Config Ecs Tag> - Tags for Ecs.
- Initialize
Script string - The initializeScript of NodeConfig.
- Name
Prefix string - The NamePrefix of NodeConfig.
- Securities
List<Default
Node Pool Batch Attach Node Config Security> - The Security of NodeConfig.
- []Default
Node Pool Batch Attach Node Config Ecs Tag - Tags for Ecs.
- Initialize
Script string - The initializeScript of NodeConfig.
- Name
Prefix string - The NamePrefix of NodeConfig.
- Securities
[]Default
Node Pool Batch Attach Node Config Security - The Security of NodeConfig.
- List<Default
Node Pool Batch Attach Node Config Ecs Tag> - Tags for Ecs.
- initialize
Script String - The initializeScript of NodeConfig.
- name
Prefix String - The NamePrefix of NodeConfig.
- securities
List<Default
Node Pool Batch Attach Node Config Security> - The Security of NodeConfig.
- Default
Node Pool Batch Attach Node Config Ecs Tag[] - Tags for Ecs.
- initialize
Script string - The initializeScript of NodeConfig.
- name
Prefix string - The NamePrefix of NodeConfig.
- securities
Default
Node Pool Batch Attach Node Config Security[] - The Security of NodeConfig.
- Sequence[Default
Node Pool Batch Attach Node Config Ecs Tag] - Tags for Ecs.
- initialize_
script str - The initializeScript of NodeConfig.
- name_
prefix str - The NamePrefix of NodeConfig.
- securities
Sequence[Default
Node Pool Batch Attach Node Config Security] - The Security of NodeConfig.
- List<Property Map>
- Tags for Ecs.
- initialize
Script String - The initializeScript of NodeConfig.
- name
Prefix String - The NamePrefix of NodeConfig.
- securities List<Property Map>
- The Security of NodeConfig.
DefaultNodePoolBatchAttachNodeConfigEcsTag, DefaultNodePoolBatchAttachNodeConfigEcsTagArgs
DefaultNodePoolBatchAttachNodeConfigSecurity, DefaultNodePoolBatchAttachNodeConfigSecurityArgs
- Logins
List<Default
Node Pool Batch Attach Node Config Security Login> - The Login of Security.
- Security
Group List<string>Ids - The SecurityGroupIds of Security.
- Security
Strategies List<string> - The SecurityStrategies of Security.
- Logins
[]Default
Node Pool Batch Attach Node Config Security Login - The Login of Security.
- Security
Group []stringIds - The SecurityGroupIds of Security.
- Security
Strategies []string - The SecurityStrategies of Security.
- logins
List<Default
Node Pool Batch Attach Node Config Security Login> - The Login of Security.
- security
Group List<String>Ids - The SecurityGroupIds of Security.
- security
Strategies List<String> - The SecurityStrategies of Security.
- logins
Default
Node Pool Batch Attach Node Config Security Login[] - The Login of Security.
- security
Group string[]Ids - The SecurityGroupIds of Security.
- security
Strategies string[] - The SecurityStrategies of Security.
- logins
Sequence[Default
Node Pool Batch Attach Node Config Security Login] - The Login of Security.
- security_
group_ Sequence[str]ids - The SecurityGroupIds of Security.
- security_
strategies Sequence[str] - The SecurityStrategies of Security.
- logins List<Property Map>
- The Login of Security.
- security
Group List<String>Ids - The SecurityGroupIds of Security.
- security
Strategies List<String> - The SecurityStrategies of Security.
DefaultNodePoolBatchAttachNodeConfigSecurityLogin, DefaultNodePoolBatchAttachNodeConfigSecurityLoginArgs
- Password string
- The Password of Security.
- Ssh
Key stringPair Name - The SshKeyPairName of Security.
- Password string
- The Password of Security.
- Ssh
Key stringPair Name - The SshKeyPairName of Security.
- password String
- The Password of Security.
- ssh
Key StringPair Name - The SshKeyPairName of Security.
- password string
- The Password of Security.
- ssh
Key stringPair Name - The SshKeyPairName of Security.
- password str
- The Password of Security.
- ssh_
key_ strpair_ name - The SshKeyPairName of Security.
- password String
- The Password of Security.
- ssh
Key StringPair Name - The SshKeyPairName of Security.
DefaultNodePoolBatchAttachTag, DefaultNodePoolBatchAttachTagArgs
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.