1. Packages
  2. Volcengine
  3. API Docs
  4. vke
  5. DefaultNodePool
Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine

volcengine.vke.DefaultNodePool

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine

    Provides a resource to manage vke default node pool

    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 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",
                },
            },
        });
    
    });
    
    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
    		}
    		_, 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
    		}
    		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
    		}
    		_, 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
    		}
    		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 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 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());
    
        }
    }
    
    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])
    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",
        )])
    
    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 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",
        }],
    });
    
    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}
      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
    

    Create DefaultNodePool Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DefaultNodePool(name: string, args: DefaultNodePoolArgs, opts?: CustomResourceOptions);
    @overload
    def DefaultNodePool(resource_name: str,
                        args: DefaultNodePoolArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def DefaultNodePool(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        cluster_id: Optional[str] = None,
                        kubernetes_config: Optional[DefaultNodePoolKubernetesConfigArgs] = None,
                        node_config: Optional[DefaultNodePoolNodeConfigArgs] = None,
                        instances: Optional[Sequence[DefaultNodePoolInstanceArgs]] = None,
                        tags: Optional[Sequence[DefaultNodePoolTagArgs]] = None)
    func NewDefaultNodePool(ctx *Context, name string, args DefaultNodePoolArgs, opts ...ResourceOption) (*DefaultNodePool, error)
    public DefaultNodePool(string name, DefaultNodePoolArgs args, CustomResourceOptions? opts = null)
    public DefaultNodePool(String name, DefaultNodePoolArgs args)
    public DefaultNodePool(String name, DefaultNodePoolArgs args, CustomResourceOptions options)
    
    type: volcengine:vke:DefaultNodePool
    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 DefaultNodePoolArgs
    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 DefaultNodePoolArgs
    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 DefaultNodePoolArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DefaultNodePoolArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DefaultNodePoolArgs
    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 defaultNodePoolResource = new Volcengine.Vke.DefaultNodePool("defaultNodePoolResource", new()
    {
        ClusterId = "string",
        KubernetesConfig = new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigArgs
        {
            Cordon = false,
            Labels = new[]
            {
                new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigLabelArgs
                {
                    Key = "string",
                    Value = "string",
                },
            },
            NamePrefix = "string",
            Taints = new[]
            {
                new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigTaintArgs
                {
                    Effect = "string",
                    Key = "string",
                    Value = "string",
                },
            },
        },
        NodeConfig = new Volcengine.Vke.Inputs.DefaultNodePoolNodeConfigArgs
        {
            Security = new Volcengine.Vke.Inputs.DefaultNodePoolNodeConfigSecurityArgs
            {
                Login = new Volcengine.Vke.Inputs.DefaultNodePoolNodeConfigSecurityLoginArgs
                {
                    Password = "string",
                    SshKeyPairName = "string",
                },
                SecurityGroupIds = new[]
                {
                    "string",
                },
                SecurityStrategies = new[]
                {
                    "string",
                },
            },
            EcsTags = new[]
            {
                new Volcengine.Vke.Inputs.DefaultNodePoolNodeConfigEcsTagArgs
                {
                    Key = "string",
                    Value = "string",
                },
            },
            InitializeScript = "string",
            NamePrefix = "string",
        },
        Instances = new[]
        {
            new Volcengine.Vke.Inputs.DefaultNodePoolInstanceArgs
            {
                InstanceId = "string",
                AdditionalContainerStorageEnabled = false,
                ContainerStoragePath = "string",
                Id = "string",
                ImageId = "string",
                KeepInstanceName = false,
                Phase = "string",
            },
        },
        Tags = new[]
        {
            new Volcengine.Vke.Inputs.DefaultNodePoolTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := vke.NewDefaultNodePool(ctx, "defaultNodePoolResource", &vke.DefaultNodePoolArgs{
    	ClusterId: pulumi.String("string"),
    	KubernetesConfig: &vke.DefaultNodePoolKubernetesConfigArgs{
    		Cordon: pulumi.Bool(false),
    		Labels: vke.DefaultNodePoolKubernetesConfigLabelArray{
    			&vke.DefaultNodePoolKubernetesConfigLabelArgs{
    				Key:   pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		NamePrefix: pulumi.String("string"),
    		Taints: vke.DefaultNodePoolKubernetesConfigTaintArray{
    			&vke.DefaultNodePoolKubernetesConfigTaintArgs{
    				Effect: pulumi.String("string"),
    				Key:    pulumi.String("string"),
    				Value:  pulumi.String("string"),
    			},
    		},
    	},
    	NodeConfig: &vke.DefaultNodePoolNodeConfigArgs{
    		Security: &vke.DefaultNodePoolNodeConfigSecurityArgs{
    			Login: &vke.DefaultNodePoolNodeConfigSecurityLoginArgs{
    				Password:       pulumi.String("string"),
    				SshKeyPairName: pulumi.String("string"),
    			},
    			SecurityGroupIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			SecurityStrategies: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		EcsTags: vke.DefaultNodePoolNodeConfigEcsTagArray{
    			&vke.DefaultNodePoolNodeConfigEcsTagArgs{
    				Key:   pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		InitializeScript: pulumi.String("string"),
    		NamePrefix:       pulumi.String("string"),
    	},
    	Instances: vke.DefaultNodePoolInstanceArray{
    		&vke.DefaultNodePoolInstanceArgs{
    			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"),
    		},
    	},
    	Tags: vke.DefaultNodePoolTagArray{
    		&vke.DefaultNodePoolTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var defaultNodePoolResource = new DefaultNodePool("defaultNodePoolResource", DefaultNodePoolArgs.builder()
        .clusterId("string")
        .kubernetesConfig(DefaultNodePoolKubernetesConfigArgs.builder()
            .cordon(false)
            .labels(DefaultNodePoolKubernetesConfigLabelArgs.builder()
                .key("string")
                .value("string")
                .build())
            .namePrefix("string")
            .taints(DefaultNodePoolKubernetesConfigTaintArgs.builder()
                .effect("string")
                .key("string")
                .value("string")
                .build())
            .build())
        .nodeConfig(DefaultNodePoolNodeConfigArgs.builder()
            .security(DefaultNodePoolNodeConfigSecurityArgs.builder()
                .login(DefaultNodePoolNodeConfigSecurityLoginArgs.builder()
                    .password("string")
                    .sshKeyPairName("string")
                    .build())
                .securityGroupIds("string")
                .securityStrategies("string")
                .build())
            .ecsTags(DefaultNodePoolNodeConfigEcsTagArgs.builder()
                .key("string")
                .value("string")
                .build())
            .initializeScript("string")
            .namePrefix("string")
            .build())
        .instances(DefaultNodePoolInstanceArgs.builder()
            .instanceId("string")
            .additionalContainerStorageEnabled(false)
            .containerStoragePath("string")
            .id("string")
            .imageId("string")
            .keepInstanceName(false)
            .phase("string")
            .build())
        .tags(DefaultNodePoolTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    default_node_pool_resource = volcengine.vke.DefaultNodePool("defaultNodePoolResource",
        cluster_id="string",
        kubernetes_config=volcengine.vke.DefaultNodePoolKubernetesConfigArgs(
            cordon=False,
            labels=[volcengine.vke.DefaultNodePoolKubernetesConfigLabelArgs(
                key="string",
                value="string",
            )],
            name_prefix="string",
            taints=[volcengine.vke.DefaultNodePoolKubernetesConfigTaintArgs(
                effect="string",
                key="string",
                value="string",
            )],
        ),
        node_config=volcengine.vke.DefaultNodePoolNodeConfigArgs(
            security=volcengine.vke.DefaultNodePoolNodeConfigSecurityArgs(
                login=volcengine.vke.DefaultNodePoolNodeConfigSecurityLoginArgs(
                    password="string",
                    ssh_key_pair_name="string",
                ),
                security_group_ids=["string"],
                security_strategies=["string"],
            ),
            ecs_tags=[volcengine.vke.DefaultNodePoolNodeConfigEcsTagArgs(
                key="string",
                value="string",
            )],
            initialize_script="string",
            name_prefix="string",
        ),
        instances=[volcengine.vke.DefaultNodePoolInstanceArgs(
            instance_id="string",
            additional_container_storage_enabled=False,
            container_storage_path="string",
            id="string",
            image_id="string",
            keep_instance_name=False,
            phase="string",
        )],
        tags=[volcengine.vke.DefaultNodePoolTagArgs(
            key="string",
            value="string",
        )])
    
    const defaultNodePoolResource = new volcengine.vke.DefaultNodePool("defaultNodePoolResource", {
        clusterId: "string",
        kubernetesConfig: {
            cordon: false,
            labels: [{
                key: "string",
                value: "string",
            }],
            namePrefix: "string",
            taints: [{
                effect: "string",
                key: "string",
                value: "string",
            }],
        },
        nodeConfig: {
            security: {
                login: {
                    password: "string",
                    sshKeyPairName: "string",
                },
                securityGroupIds: ["string"],
                securityStrategies: ["string"],
            },
            ecsTags: [{
                key: "string",
                value: "string",
            }],
            initializeScript: "string",
            namePrefix: "string",
        },
        instances: [{
            instanceId: "string",
            additionalContainerStorageEnabled: false,
            containerStoragePath: "string",
            id: "string",
            imageId: "string",
            keepInstanceName: false,
            phase: "string",
        }],
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: volcengine:vke:DefaultNodePool
    properties:
        clusterId: string
        instances:
            - additionalContainerStorageEnabled: false
              containerStoragePath: string
              id: string
              imageId: string
              instanceId: string
              keepInstanceName: false
              phase: string
        kubernetesConfig:
            cordon: false
            labels:
                - key: string
                  value: string
            namePrefix: string
            taints:
                - effect: string
                  key: string
                  value: string
        nodeConfig:
            ecsTags:
                - key: string
                  value: string
            initializeScript: string
            namePrefix: string
            security:
                login:
                    password: string
                    sshKeyPairName: string
                securityGroupIds:
                    - string
                securityStrategies:
                    - string
        tags:
            - key: string
              value: string
    

    DefaultNodePool 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 DefaultNodePool resource accepts the following input properties:

    ClusterId string
    The ClusterId of NodePool.
    KubernetesConfig DefaultNodePoolKubernetesConfig
    The KubernetesConfig of NodeConfig.
    NodeConfig DefaultNodePoolNodeConfig
    The Config of NodePool.
    Instances List<DefaultNodePoolInstance>
    The ECS InstanceIds add to NodePool.
    Tags List<DefaultNodePoolTag>
    Tags.
    ClusterId string
    The ClusterId of NodePool.
    KubernetesConfig DefaultNodePoolKubernetesConfigArgs
    The KubernetesConfig of NodeConfig.
    NodeConfig DefaultNodePoolNodeConfigArgs
    The Config of NodePool.
    Instances []DefaultNodePoolInstanceArgs
    The ECS InstanceIds add to NodePool.
    Tags []DefaultNodePoolTagArgs
    Tags.
    clusterId String
    The ClusterId of NodePool.
    kubernetesConfig DefaultNodePoolKubernetesConfig
    The KubernetesConfig of NodeConfig.
    nodeConfig DefaultNodePoolNodeConfig
    The Config of NodePool.
    instances List<DefaultNodePoolInstance>
    The ECS InstanceIds add to NodePool.
    tags List<DefaultNodePoolTag>
    Tags.
    clusterId string
    The ClusterId of NodePool.
    kubernetesConfig DefaultNodePoolKubernetesConfig
    The KubernetesConfig of NodeConfig.
    nodeConfig DefaultNodePoolNodeConfig
    The Config of NodePool.
    instances DefaultNodePoolInstance[]
    The ECS InstanceIds add to NodePool.
    tags DefaultNodePoolTag[]
    Tags.
    cluster_id str
    The ClusterId of NodePool.
    kubernetes_config DefaultNodePoolKubernetesConfigArgs
    The KubernetesConfig of NodeConfig.
    node_config DefaultNodePoolNodeConfigArgs
    The Config of NodePool.
    instances Sequence[DefaultNodePoolInstanceArgs]
    The ECS InstanceIds add to NodePool.
    tags Sequence[DefaultNodePoolTagArgs]
    Tags.
    clusterId String
    The ClusterId of NodePool.
    kubernetesConfig Property Map
    The KubernetesConfig of NodeConfig.
    nodeConfig Property Map
    The Config of NodePool.
    instances List<Property Map>
    The ECS InstanceIds add to NodePool.
    tags List<Property Map>
    Tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DefaultNodePool resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    IsImport bool
    Is import of the DefaultNodePool. It only works when imported, set to true.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsImport bool
    Is import of the DefaultNodePool. It only works when imported, set to true.
    id String
    The provider-assigned unique ID for this managed resource.
    isImport Boolean
    Is import of the DefaultNodePool. It only works when imported, set to true.
    id string
    The provider-assigned unique ID for this managed resource.
    isImport boolean
    Is import of the DefaultNodePool. It only works when imported, set to true.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    isImport Boolean
    Is import of the DefaultNodePool. It only works when imported, set to true.

    Look up Existing DefaultNodePool Resource

    Get an existing DefaultNodePool 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?: DefaultNodePoolState, opts?: CustomResourceOptions): DefaultNodePool
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            instances: Optional[Sequence[DefaultNodePoolInstanceArgs]] = None,
            is_import: Optional[bool] = None,
            kubernetes_config: Optional[DefaultNodePoolKubernetesConfigArgs] = None,
            node_config: Optional[DefaultNodePoolNodeConfigArgs] = None,
            tags: Optional[Sequence[DefaultNodePoolTagArgs]] = None) -> DefaultNodePool
    func GetDefaultNodePool(ctx *Context, name string, id IDInput, state *DefaultNodePoolState, opts ...ResourceOption) (*DefaultNodePool, error)
    public static DefaultNodePool Get(string name, Input<string> id, DefaultNodePoolState? state, CustomResourceOptions? opts = null)
    public static DefaultNodePool get(String name, Output<String> id, DefaultNodePoolState 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.
    The following state arguments are supported:
    ClusterId string
    The ClusterId of NodePool.
    Instances List<DefaultNodePoolInstance>
    The ECS InstanceIds add to NodePool.
    IsImport bool
    Is import of the DefaultNodePool. It only works when imported, set to true.
    KubernetesConfig DefaultNodePoolKubernetesConfig
    The KubernetesConfig of NodeConfig.
    NodeConfig DefaultNodePoolNodeConfig
    The Config of NodePool.
    Tags List<DefaultNodePoolTag>
    Tags.
    ClusterId string
    The ClusterId of NodePool.
    Instances []DefaultNodePoolInstanceArgs
    The ECS InstanceIds add to NodePool.
    IsImport bool
    Is import of the DefaultNodePool. It only works when imported, set to true.
    KubernetesConfig DefaultNodePoolKubernetesConfigArgs
    The KubernetesConfig of NodeConfig.
    NodeConfig DefaultNodePoolNodeConfigArgs
    The Config of NodePool.
    Tags []DefaultNodePoolTagArgs
    Tags.
    clusterId String
    The ClusterId of NodePool.
    instances List<DefaultNodePoolInstance>
    The ECS InstanceIds add to NodePool.
    isImport Boolean
    Is import of the DefaultNodePool. It only works when imported, set to true.
    kubernetesConfig DefaultNodePoolKubernetesConfig
    The KubernetesConfig of NodeConfig.
    nodeConfig DefaultNodePoolNodeConfig
    The Config of NodePool.
    tags List<DefaultNodePoolTag>
    Tags.
    clusterId string
    The ClusterId of NodePool.
    instances DefaultNodePoolInstance[]
    The ECS InstanceIds add to NodePool.
    isImport boolean
    Is import of the DefaultNodePool. It only works when imported, set to true.
    kubernetesConfig DefaultNodePoolKubernetesConfig
    The KubernetesConfig of NodeConfig.
    nodeConfig DefaultNodePoolNodeConfig
    The Config of NodePool.
    tags DefaultNodePoolTag[]
    Tags.
    cluster_id str
    The ClusterId of NodePool.
    instances Sequence[DefaultNodePoolInstanceArgs]
    The ECS InstanceIds add to NodePool.
    is_import bool
    Is import of the DefaultNodePool. It only works when imported, set to true.
    kubernetes_config DefaultNodePoolKubernetesConfigArgs
    The KubernetesConfig of NodeConfig.
    node_config DefaultNodePoolNodeConfigArgs
    The Config of NodePool.
    tags Sequence[DefaultNodePoolTagArgs]
    Tags.
    clusterId String
    The ClusterId of NodePool.
    instances List<Property Map>
    The ECS InstanceIds add to NodePool.
    isImport Boolean
    Is import of the DefaultNodePool. It only works when imported, set to true.
    kubernetesConfig Property Map
    The KubernetesConfig of NodeConfig.
    nodeConfig Property Map
    The Config of NodePool.
    tags List<Property Map>
    Tags.

    Supporting Types

    DefaultNodePoolInstance, DefaultNodePoolInstanceArgs

    InstanceId string
    The instance id.
    AdditionalContainerStorageEnabled bool
    The flag of additional container storage enable, the value is true or false..Default is false.
    ContainerStoragePath string
    The container storage path.When additional_container_storage_enabled is false will ignore.
    Id string
    ID of the resource.
    ImageId string
    The Image Id to the ECS Instance.
    KeepInstanceName bool
    The flag of keep instance name, the value is true or false.Default is false.
    Phase string
    InstanceId string
    The instance id.
    AdditionalContainerStorageEnabled bool
    The flag of additional container storage enable, the value is true or false..Default is false.
    ContainerStoragePath string
    The container storage path.When additional_container_storage_enabled is false will ignore.
    Id string
    ID of the resource.
    ImageId string
    The Image Id to the ECS Instance.
    KeepInstanceName bool
    The flag of keep instance name, the value is true or false.Default is false.
    Phase string
    instanceId String
    The instance id.
    additionalContainerStorageEnabled Boolean
    The flag of additional container storage enable, the value is true or false..Default is false.
    containerStoragePath String
    The container storage path.When additional_container_storage_enabled is false will ignore.
    id String
    ID of the resource.
    imageId String
    The Image Id to the ECS Instance.
    keepInstanceName Boolean
    The flag of keep instance name, the value is true or false.Default is false.
    phase String
    instanceId string
    The instance id.
    additionalContainerStorageEnabled boolean
    The flag of additional container storage enable, the value is true or false..Default is false.
    containerStoragePath string
    The container storage path.When additional_container_storage_enabled is false will ignore.
    id string
    ID of the resource.
    imageId string
    The Image Id to the ECS Instance.
    keepInstanceName boolean
    The flag of keep instance name, the value is true or false.Default is false.
    phase string
    instance_id str
    The instance id.
    additional_container_storage_enabled bool
    The flag of additional container storage enable, the value is true or false..Default is false.
    container_storage_path str
    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_name bool
    The flag of keep instance name, the value is true or false.Default is false.
    phase str
    instanceId String
    The instance id.
    additionalContainerStorageEnabled Boolean
    The flag of additional container storage enable, the value is true or false..Default is false.
    containerStoragePath String
    The container storage path.When additional_container_storage_enabled is false will ignore.
    id String
    ID of the resource.
    imageId String
    The Image Id to the ECS Instance.
    keepInstanceName Boolean
    The flag of keep instance name, the value is true or false.Default is false.
    phase String

    DefaultNodePoolKubernetesConfig, DefaultNodePoolKubernetesConfigArgs

    Cordon bool
    The Cordon of KubernetesConfig.
    Labels List<DefaultNodePoolKubernetesConfigLabel>
    The Labels of KubernetesConfig.
    NamePrefix string
    The NamePrefix of node metadata.
    Taints List<DefaultNodePoolKubernetesConfigTaint>
    The Taints of KubernetesConfig.
    Cordon bool
    The Cordon of KubernetesConfig.
    Labels []DefaultNodePoolKubernetesConfigLabel
    The Labels of KubernetesConfig.
    NamePrefix string
    The NamePrefix of node metadata.
    Taints []DefaultNodePoolKubernetesConfigTaint
    The Taints of KubernetesConfig.
    cordon Boolean
    The Cordon of KubernetesConfig.
    labels List<DefaultNodePoolKubernetesConfigLabel>
    The Labels of KubernetesConfig.
    namePrefix String
    The NamePrefix of node metadata.
    taints List<DefaultNodePoolKubernetesConfigTaint>
    The Taints of KubernetesConfig.
    cordon boolean
    The Cordon of KubernetesConfig.
    labels DefaultNodePoolKubernetesConfigLabel[]
    The Labels of KubernetesConfig.
    namePrefix string
    The NamePrefix of node metadata.
    taints DefaultNodePoolKubernetesConfigTaint[]
    The Taints of KubernetesConfig.
    cordon bool
    The Cordon of KubernetesConfig.
    labels Sequence[DefaultNodePoolKubernetesConfigLabel]
    The Labels of KubernetesConfig.
    name_prefix str
    The NamePrefix of node metadata.
    taints Sequence[DefaultNodePoolKubernetesConfigTaint]
    The Taints of KubernetesConfig.
    cordon Boolean
    The Cordon of KubernetesConfig.
    labels List<Property Map>
    The Labels of KubernetesConfig.
    namePrefix String
    The NamePrefix of node metadata.
    taints List<Property Map>
    The Taints of KubernetesConfig.

    DefaultNodePoolKubernetesConfigLabel, DefaultNodePoolKubernetesConfigLabelArgs

    Key string
    The Key of Labels.
    Value string
    The Value of Labels.
    Key string
    The Key of Labels.
    Value string
    The Value of Labels.
    key String
    The Key of Labels.
    value String
    The Value of Labels.
    key string
    The Key of Labels.
    value string
    The Value of Labels.
    key str
    The Key of Labels.
    value str
    The Value of Labels.
    key String
    The Key of Labels.
    value String
    The Value of Labels.

    DefaultNodePoolKubernetesConfigTaint, DefaultNodePoolKubernetesConfigTaintArgs

    Effect string
    The Effect of Taints.
    Key string
    The Key of Taints.
    Value string
    The Value of Taints.
    Effect string
    The Effect of Taints.
    Key string
    The Key of Taints.
    Value string
    The Value of Taints.
    effect String
    The Effect of Taints.
    key String
    The Key of Taints.
    value String
    The Value of Taints.
    effect string
    The Effect of Taints.
    key string
    The Key of Taints.
    value string
    The Value of Taints.
    effect str
    The Effect of Taints.
    key str
    The Key of Taints.
    value str
    The Value of Taints.
    effect String
    The Effect of Taints.
    key String
    The Key of Taints.
    value String
    The Value of Taints.

    DefaultNodePoolNodeConfig, DefaultNodePoolNodeConfigArgs

    Security DefaultNodePoolNodeConfigSecurity
    The Security of NodeConfig.
    EcsTags List<DefaultNodePoolNodeConfigEcsTag>
    Tags for Ecs.
    InitializeScript string
    The initializeScript of NodeConfig.
    NamePrefix string
    The NamePrefix of NodeConfig.
    Security DefaultNodePoolNodeConfigSecurity
    The Security of NodeConfig.
    EcsTags []DefaultNodePoolNodeConfigEcsTag
    Tags for Ecs.
    InitializeScript string
    The initializeScript of NodeConfig.
    NamePrefix string
    The NamePrefix of NodeConfig.
    security DefaultNodePoolNodeConfigSecurity
    The Security of NodeConfig.
    ecsTags List<DefaultNodePoolNodeConfigEcsTag>
    Tags for Ecs.
    initializeScript String
    The initializeScript of NodeConfig.
    namePrefix String
    The NamePrefix of NodeConfig.
    security DefaultNodePoolNodeConfigSecurity
    The Security of NodeConfig.
    ecsTags DefaultNodePoolNodeConfigEcsTag[]
    Tags for Ecs.
    initializeScript string
    The initializeScript of NodeConfig.
    namePrefix string
    The NamePrefix of NodeConfig.
    security DefaultNodePoolNodeConfigSecurity
    The Security of NodeConfig.
    ecs_tags Sequence[DefaultNodePoolNodeConfigEcsTag]
    Tags for Ecs.
    initialize_script str
    The initializeScript of NodeConfig.
    name_prefix str
    The NamePrefix of NodeConfig.
    security Property Map
    The Security of NodeConfig.
    ecsTags List<Property Map>
    Tags for Ecs.
    initializeScript String
    The initializeScript of NodeConfig.
    namePrefix String
    The NamePrefix of NodeConfig.

    DefaultNodePoolNodeConfigEcsTag, DefaultNodePoolNodeConfigEcsTagArgs

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    DefaultNodePoolNodeConfigSecurity, DefaultNodePoolNodeConfigSecurityArgs

    Login DefaultNodePoolNodeConfigSecurityLogin
    The Login of Security.
    SecurityGroupIds List<string>
    The SecurityGroupIds of Security.
    SecurityStrategies List<string>
    The SecurityStrategies of Security.
    Login DefaultNodePoolNodeConfigSecurityLogin
    The Login of Security.
    SecurityGroupIds []string
    The SecurityGroupIds of Security.
    SecurityStrategies []string
    The SecurityStrategies of Security.
    login DefaultNodePoolNodeConfigSecurityLogin
    The Login of Security.
    securityGroupIds List<String>
    The SecurityGroupIds of Security.
    securityStrategies List<String>
    The SecurityStrategies of Security.
    login DefaultNodePoolNodeConfigSecurityLogin
    The Login of Security.
    securityGroupIds string[]
    The SecurityGroupIds of Security.
    securityStrategies string[]
    The SecurityStrategies of Security.
    login DefaultNodePoolNodeConfigSecurityLogin
    The Login of Security.
    security_group_ids Sequence[str]
    The SecurityGroupIds of Security.
    security_strategies Sequence[str]
    The SecurityStrategies of Security.
    login Property Map
    The Login of Security.
    securityGroupIds List<String>
    The SecurityGroupIds of Security.
    securityStrategies List<String>
    The SecurityStrategies of Security.

    DefaultNodePoolNodeConfigSecurityLogin, DefaultNodePoolNodeConfigSecurityLoginArgs

    Password string
    The Password of Security.
    SshKeyPairName string
    The SshKeyPairName of Security.
    Password string
    The Password of Security.
    SshKeyPairName string
    The SshKeyPairName of Security.
    password String
    The Password of Security.
    sshKeyPairName String
    The SshKeyPairName of Security.
    password string
    The Password of Security.
    sshKeyPairName string
    The SshKeyPairName of Security.
    password str
    The Password of Security.
    ssh_key_pair_name str
    The SshKeyPairName of Security.
    password String
    The Password of Security.
    sshKeyPairName String
    The SshKeyPairName of Security.

    DefaultNodePoolTag, DefaultNodePoolTagArgs

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Import

    VKE default node can be imported using the node id, e.g.

     $ pulumi import volcengine:vke/defaultNodePool:DefaultNodePool default nc5t5epmrsf****
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine