1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. eci
  5. VirtualNode
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.eci.VirtualNode

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a ECI Virtual Node resource.

    For information about ECI Virtual Node and how to use it, see What is Virtual Node.

    NOTE: Available since v1.145.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const default = alicloud.eci.getZones({});
    const defaultNetwork = new alicloud.vpc.Network("default", {
        vpcName: name,
        cidrBlock: "10.0.0.0/8",
    });
    const defaultSwitch = new alicloud.vpc.Switch("default", {
        vswitchName: name,
        cidrBlock: "10.1.0.0/16",
        vpcId: defaultNetwork.id,
        zoneId: _default.then(_default => _default.zones?.[0]?.zoneIds?.[0]),
    });
    const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
        name: name,
        vpcId: defaultNetwork.id,
    });
    const defaultEipAddress = new alicloud.ecs.EipAddress("default", {
        isp: "BGP",
        addressName: name,
        netmode: "public",
        bandwidth: "1",
        securityProtectionTypes: ["AntiDDoS_Enhanced"],
        paymentType: "PayAsYouGo",
    });
    const defaultGetResourceGroups = alicloud.resourcemanager.getResourceGroups({});
    const defaultVirtualNode = new alicloud.eci.VirtualNode("default", {
        securityGroupId: defaultSecurityGroup.id,
        virtualNodeName: name,
        vswitchId: defaultSwitch.id,
        enablePublicNetwork: false,
        eipInstanceId: defaultEipAddress.id,
        resourceGroupId: defaultGetResourceGroups.then(defaultGetResourceGroups => defaultGetResourceGroups.groups?.[0]?.id),
        kubeConfig: "kube_config",
        tags: {
            Created: "TF",
        },
        taints: [{
            effect: "NoSchedule",
            key: "TF",
            value: "example",
        }],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default = alicloud.eci.get_zones()
    default_network = alicloud.vpc.Network("default",
        vpc_name=name,
        cidr_block="10.0.0.0/8")
    default_switch = alicloud.vpc.Switch("default",
        vswitch_name=name,
        cidr_block="10.1.0.0/16",
        vpc_id=default_network.id,
        zone_id=default.zones[0].zone_ids[0])
    default_security_group = alicloud.ecs.SecurityGroup("default",
        name=name,
        vpc_id=default_network.id)
    default_eip_address = alicloud.ecs.EipAddress("default",
        isp="BGP",
        address_name=name,
        netmode="public",
        bandwidth="1",
        security_protection_types=["AntiDDoS_Enhanced"],
        payment_type="PayAsYouGo")
    default_get_resource_groups = alicloud.resourcemanager.get_resource_groups()
    default_virtual_node = alicloud.eci.VirtualNode("default",
        security_group_id=default_security_group.id,
        virtual_node_name=name,
        vswitch_id=default_switch.id,
        enable_public_network=False,
        eip_instance_id=default_eip_address.id,
        resource_group_id=default_get_resource_groups.groups[0].id,
        kube_config="kube_config",
        tags={
            "Created": "TF",
        },
        taints=[{
            "effect": "NoSchedule",
            "key": "TF",
            "value": "example",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eci"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := eci.GetZones(ctx, &eci.GetZonesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.0.0.0/8"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.1.0.0/16"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      pulumi.String(_default.Zones[0].ZoneIds[0]),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
    			Name:  pulumi.String(name),
    			VpcId: defaultNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		defaultEipAddress, err := ecs.NewEipAddress(ctx, "default", &ecs.EipAddressArgs{
    			Isp:         pulumi.String("BGP"),
    			AddressName: pulumi.String(name),
    			Netmode:     pulumi.String("public"),
    			Bandwidth:   pulumi.String("1"),
    			SecurityProtectionTypes: pulumi.StringArray{
    				pulumi.String("AntiDDoS_Enhanced"),
    			},
    			PaymentType: pulumi.String("PayAsYouGo"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultGetResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = eci.NewVirtualNode(ctx, "default", &eci.VirtualNodeArgs{
    			SecurityGroupId:     defaultSecurityGroup.ID(),
    			VirtualNodeName:     pulumi.String(name),
    			VswitchId:           defaultSwitch.ID(),
    			EnablePublicNetwork: pulumi.Bool(false),
    			EipInstanceId:       defaultEipAddress.ID(),
    			ResourceGroupId:     pulumi.String(defaultGetResourceGroups.Groups[0].Id),
    			KubeConfig:          pulumi.String("kube_config"),
    			Tags: pulumi.StringMap{
    				"Created": pulumi.String("TF"),
    			},
    			Taints: eci.VirtualNodeTaintArray{
    				&eci.VirtualNodeTaintArgs{
    					Effect: pulumi.String("NoSchedule"),
    					Key:    pulumi.String("TF"),
    					Value:  pulumi.String("example"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-example";
        var @default = AliCloud.Eci.GetZones.Invoke();
    
        var defaultNetwork = new AliCloud.Vpc.Network("default", new()
        {
            VpcName = name,
            CidrBlock = "10.0.0.0/8",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
        {
            VswitchName = name,
            CidrBlock = "10.1.0.0/16",
            VpcId = defaultNetwork.Id,
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneIds[0])),
        });
    
        var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
        {
            Name = name,
            VpcId = defaultNetwork.Id,
        });
    
        var defaultEipAddress = new AliCloud.Ecs.EipAddress("default", new()
        {
            Isp = "BGP",
            AddressName = name,
            Netmode = "public",
            Bandwidth = "1",
            SecurityProtectionTypes = new[]
            {
                "AntiDDoS_Enhanced",
            },
            PaymentType = "PayAsYouGo",
        });
    
        var defaultGetResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke();
    
        var defaultVirtualNode = new AliCloud.Eci.VirtualNode("default", new()
        {
            SecurityGroupId = defaultSecurityGroup.Id,
            VirtualNodeName = name,
            VswitchId = defaultSwitch.Id,
            EnablePublicNetwork = false,
            EipInstanceId = defaultEipAddress.Id,
            ResourceGroupId = defaultGetResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id),
            KubeConfig = "kube_config",
            Tags = 
            {
                { "Created", "TF" },
            },
            Taints = new[]
            {
                new AliCloud.Eci.Inputs.VirtualNodeTaintArgs
                {
                    Effect = "NoSchedule",
                    Key = "TF",
                    Value = "example",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.eci.EciFunctions;
    import com.pulumi.alicloud.eci.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.ecs.SecurityGroup;
    import com.pulumi.alicloud.ecs.SecurityGroupArgs;
    import com.pulumi.alicloud.ecs.EipAddress;
    import com.pulumi.alicloud.ecs.EipAddressArgs;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    import com.pulumi.alicloud.eci.VirtualNode;
    import com.pulumi.alicloud.eci.VirtualNodeArgs;
    import com.pulumi.alicloud.eci.inputs.VirtualNodeTaintArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf-example");
            final var default = EciFunctions.getZones();
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
                .vpcName(name)
                .cidrBlock("10.0.0.0/8")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
                .vswitchName(name)
                .cidrBlock("10.1.0.0/16")
                .vpcId(defaultNetwork.id())
                .zoneId(default_.zones()[0].zoneIds()[0])
                .build());
    
            var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
                .name(name)
                .vpcId(defaultNetwork.id())
                .build());
    
            var defaultEipAddress = new EipAddress("defaultEipAddress", EipAddressArgs.builder()
                .isp("BGP")
                .addressName(name)
                .netmode("public")
                .bandwidth("1")
                .securityProtectionTypes("AntiDDoS_Enhanced")
                .paymentType("PayAsYouGo")
                .build());
    
            final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
    
            var defaultVirtualNode = new VirtualNode("defaultVirtualNode", VirtualNodeArgs.builder()
                .securityGroupId(defaultSecurityGroup.id())
                .virtualNodeName(name)
                .vswitchId(defaultSwitch.id())
                .enablePublicNetwork(false)
                .eipInstanceId(defaultEipAddress.id())
                .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
                .kubeConfig("kube_config")
                .tags(Map.of("Created", "TF"))
                .taints(VirtualNodeTaintArgs.builder()
                    .effect("NoSchedule")
                    .key("TF")
                    .value("example")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        name: default
        properties:
          vpcName: ${name}
          cidrBlock: 10.0.0.0/8
      defaultSwitch:
        type: alicloud:vpc:Switch
        name: default
        properties:
          vswitchName: ${name}
          cidrBlock: 10.1.0.0/16
          vpcId: ${defaultNetwork.id}
          zoneId: ${default.zones[0].zoneIds[0]}
      defaultSecurityGroup:
        type: alicloud:ecs:SecurityGroup
        name: default
        properties:
          name: ${name}
          vpcId: ${defaultNetwork.id}
      defaultEipAddress:
        type: alicloud:ecs:EipAddress
        name: default
        properties:
          isp: BGP
          addressName: ${name}
          netmode: public
          bandwidth: '1'
          securityProtectionTypes:
            - AntiDDoS_Enhanced
          paymentType: PayAsYouGo
      defaultVirtualNode:
        type: alicloud:eci:VirtualNode
        name: default
        properties:
          securityGroupId: ${defaultSecurityGroup.id}
          virtualNodeName: ${name}
          vswitchId: ${defaultSwitch.id}
          enablePublicNetwork: false
          eipInstanceId: ${defaultEipAddress.id}
          resourceGroupId: ${defaultGetResourceGroups.groups[0].id}
          kubeConfig: kube_config
          tags:
            Created: TF
          taints:
            - effect: NoSchedule
              key: TF
              value: example
    variables:
      default:
        fn::invoke:
          Function: alicloud:eci:getZones
          Arguments: {}
      defaultGetResourceGroups:
        fn::invoke:
          Function: alicloud:resourcemanager:getResourceGroups
          Arguments: {}
    

    Create VirtualNode Resource

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

    Constructor syntax

    new VirtualNode(name: string, args: VirtualNodeArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualNode(resource_name: str,
                    args: VirtualNodeArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualNode(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    kube_config: Optional[str] = None,
                    security_group_id: Optional[str] = None,
                    vswitch_id: Optional[str] = None,
                    eip_instance_id: Optional[str] = None,
                    enable_public_network: Optional[bool] = None,
                    resource_group_id: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    taints: Optional[Sequence[VirtualNodeTaintArgs]] = None,
                    virtual_node_name: Optional[str] = None,
                    zone_id: Optional[str] = None)
    func NewVirtualNode(ctx *Context, name string, args VirtualNodeArgs, opts ...ResourceOption) (*VirtualNode, error)
    public VirtualNode(string name, VirtualNodeArgs args, CustomResourceOptions? opts = null)
    public VirtualNode(String name, VirtualNodeArgs args)
    public VirtualNode(String name, VirtualNodeArgs args, CustomResourceOptions options)
    
    type: alicloud:eci:VirtualNode
    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 VirtualNodeArgs
    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 VirtualNodeArgs
    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 VirtualNodeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualNodeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualNodeArgs
    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 virtualNodeResource = new AliCloud.Eci.VirtualNode("virtualNodeResource", new()
    {
        KubeConfig = "string",
        SecurityGroupId = "string",
        VswitchId = "string",
        EipInstanceId = "string",
        EnablePublicNetwork = false,
        ResourceGroupId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Taints = new[]
        {
            new AliCloud.Eci.Inputs.VirtualNodeTaintArgs
            {
                Effect = "string",
                Key = "string",
                Value = "string",
            },
        },
        VirtualNodeName = "string",
        ZoneId = "string",
    });
    
    example, err := eci.NewVirtualNode(ctx, "virtualNodeResource", &eci.VirtualNodeArgs{
    	KubeConfig:          pulumi.String("string"),
    	SecurityGroupId:     pulumi.String("string"),
    	VswitchId:           pulumi.String("string"),
    	EipInstanceId:       pulumi.String("string"),
    	EnablePublicNetwork: pulumi.Bool(false),
    	ResourceGroupId:     pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Taints: eci.VirtualNodeTaintArray{
    		&eci.VirtualNodeTaintArgs{
    			Effect: pulumi.String("string"),
    			Key:    pulumi.String("string"),
    			Value:  pulumi.String("string"),
    		},
    	},
    	VirtualNodeName: pulumi.String("string"),
    	ZoneId:          pulumi.String("string"),
    })
    
    var virtualNodeResource = new VirtualNode("virtualNodeResource", VirtualNodeArgs.builder()
        .kubeConfig("string")
        .securityGroupId("string")
        .vswitchId("string")
        .eipInstanceId("string")
        .enablePublicNetwork(false)
        .resourceGroupId("string")
        .tags(Map.of("string", "string"))
        .taints(VirtualNodeTaintArgs.builder()
            .effect("string")
            .key("string")
            .value("string")
            .build())
        .virtualNodeName("string")
        .zoneId("string")
        .build());
    
    virtual_node_resource = alicloud.eci.VirtualNode("virtualNodeResource",
        kube_config="string",
        security_group_id="string",
        vswitch_id="string",
        eip_instance_id="string",
        enable_public_network=False,
        resource_group_id="string",
        tags={
            "string": "string",
        },
        taints=[{
            "effect": "string",
            "key": "string",
            "value": "string",
        }],
        virtual_node_name="string",
        zone_id="string")
    
    const virtualNodeResource = new alicloud.eci.VirtualNode("virtualNodeResource", {
        kubeConfig: "string",
        securityGroupId: "string",
        vswitchId: "string",
        eipInstanceId: "string",
        enablePublicNetwork: false,
        resourceGroupId: "string",
        tags: {
            string: "string",
        },
        taints: [{
            effect: "string",
            key: "string",
            value: "string",
        }],
        virtualNodeName: "string",
        zoneId: "string",
    });
    
    type: alicloud:eci:VirtualNode
    properties:
        eipInstanceId: string
        enablePublicNetwork: false
        kubeConfig: string
        resourceGroupId: string
        securityGroupId: string
        tags:
            string: string
        taints:
            - effect: string
              key: string
              value: string
        virtualNodeName: string
        vswitchId: string
        zoneId: string
    

    VirtualNode Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VirtualNode resource accepts the following input properties:

    KubeConfig string
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    SecurityGroupId string
    The security group ID.
    VswitchId string
    The vswitch id.
    EipInstanceId string
    The Id of eip.
    EnablePublicNetwork bool
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    ResourceGroupId string
    The resource group ID.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    Taints List<Pulumi.AliCloud.Eci.Inputs.VirtualNodeTaint>
    The taint. See taints below.
    VirtualNodeName string
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    ZoneId string
    The Zone.
    KubeConfig string
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    SecurityGroupId string
    The security group ID.
    VswitchId string
    The vswitch id.
    EipInstanceId string
    The Id of eip.
    EnablePublicNetwork bool
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    ResourceGroupId string
    The resource group ID.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    Taints []VirtualNodeTaintArgs
    The taint. See taints below.
    VirtualNodeName string
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    ZoneId string
    The Zone.
    kubeConfig String
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    securityGroupId String
    The security group ID.
    vswitchId String
    The vswitch id.
    eipInstanceId String
    The Id of eip.
    enablePublicNetwork Boolean
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    resourceGroupId String
    The resource group ID.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    taints List<VirtualNodeTaint>
    The taint. See taints below.
    virtualNodeName String
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    zoneId String
    The Zone.
    kubeConfig string
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    securityGroupId string
    The security group ID.
    vswitchId string
    The vswitch id.
    eipInstanceId string
    The Id of eip.
    enablePublicNetwork boolean
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    resourceGroupId string
    The resource group ID.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    taints VirtualNodeTaint[]
    The taint. See taints below.
    virtualNodeName string
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    zoneId string
    The Zone.
    kube_config str
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    security_group_id str
    The security group ID.
    vswitch_id str
    The vswitch id.
    eip_instance_id str
    The Id of eip.
    enable_public_network bool
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    resource_group_id str
    The resource group ID.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    taints Sequence[VirtualNodeTaintArgs]
    The taint. See taints below.
    virtual_node_name str
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    zone_id str
    The Zone.
    kubeConfig String
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    securityGroupId String
    The security group ID.
    vswitchId String
    The vswitch id.
    eipInstanceId String
    The Id of eip.
    enablePublicNetwork Boolean
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    resourceGroupId String
    The resource group ID.
    tags Map<String>
    A mapping of tags to assign to the resource.
    taints List<Property Map>
    The taint. See taints below.
    virtualNodeName String
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    zoneId String
    The Zone.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.

    Look up Existing VirtualNode Resource

    Get an existing VirtualNode 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?: VirtualNodeState, opts?: CustomResourceOptions): VirtualNode
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            eip_instance_id: Optional[str] = None,
            enable_public_network: Optional[bool] = None,
            kube_config: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            security_group_id: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            taints: Optional[Sequence[VirtualNodeTaintArgs]] = None,
            virtual_node_name: Optional[str] = None,
            vswitch_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> VirtualNode
    func GetVirtualNode(ctx *Context, name string, id IDInput, state *VirtualNodeState, opts ...ResourceOption) (*VirtualNode, error)
    public static VirtualNode Get(string name, Input<string> id, VirtualNodeState? state, CustomResourceOptions? opts = null)
    public static VirtualNode get(String name, Output<String> id, VirtualNodeState 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:
    EipInstanceId string
    The Id of eip.
    EnablePublicNetwork bool
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    KubeConfig string
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    ResourceGroupId string
    The resource group ID.
    SecurityGroupId string
    The security group ID.
    Status string
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    Taints List<Pulumi.AliCloud.Eci.Inputs.VirtualNodeTaint>
    The taint. See taints below.
    VirtualNodeName string
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    VswitchId string
    The vswitch id.
    ZoneId string
    The Zone.
    EipInstanceId string
    The Id of eip.
    EnablePublicNetwork bool
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    KubeConfig string
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    ResourceGroupId string
    The resource group ID.
    SecurityGroupId string
    The security group ID.
    Status string
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    Taints []VirtualNodeTaintArgs
    The taint. See taints below.
    VirtualNodeName string
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    VswitchId string
    The vswitch id.
    ZoneId string
    The Zone.
    eipInstanceId String
    The Id of eip.
    enablePublicNetwork Boolean
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    kubeConfig String
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    resourceGroupId String
    The resource group ID.
    securityGroupId String
    The security group ID.
    status String
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    taints List<VirtualNodeTaint>
    The taint. See taints below.
    virtualNodeName String
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    vswitchId String
    The vswitch id.
    zoneId String
    The Zone.
    eipInstanceId string
    The Id of eip.
    enablePublicNetwork boolean
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    kubeConfig string
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    resourceGroupId string
    The resource group ID.
    securityGroupId string
    The security group ID.
    status string
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    taints VirtualNodeTaint[]
    The taint. See taints below.
    virtualNodeName string
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    vswitchId string
    The vswitch id.
    zoneId string
    The Zone.
    eip_instance_id str
    The Id of eip.
    enable_public_network bool
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    kube_config str
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    resource_group_id str
    The resource group ID.
    security_group_id str
    The security group ID.
    status str
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    taints Sequence[VirtualNodeTaintArgs]
    The taint. See taints below.
    virtual_node_name str
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    vswitch_id str
    The vswitch id.
    zone_id str
    The Zone.
    eipInstanceId String
    The Id of eip.
    enablePublicNetwork Boolean
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    kubeConfig String
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    resourceGroupId String
    The resource group ID.
    securityGroupId String
    The security group ID.
    status String
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    tags Map<String>
    A mapping of tags to assign to the resource.
    taints List<Property Map>
    The taint. See taints below.
    virtualNodeName String
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    vswitchId String
    The vswitch id.
    zoneId String
    The Zone.

    Supporting Types

    VirtualNodeTaint, VirtualNodeTaintArgs

    Effect string
    The effect of the taint. Valid values: NoSchedule, NoExecute and PreferNoSchedule.
    Key string
    The key of the taint.
    Value string
    The value of the taint.
    Effect string
    The effect of the taint. Valid values: NoSchedule, NoExecute and PreferNoSchedule.
    Key string
    The key of the taint.
    Value string
    The value of the taint.
    effect String
    The effect of the taint. Valid values: NoSchedule, NoExecute and PreferNoSchedule.
    key String
    The key of the taint.
    value String
    The value of the taint.
    effect string
    The effect of the taint. Valid values: NoSchedule, NoExecute and PreferNoSchedule.
    key string
    The key of the taint.
    value string
    The value of the taint.
    effect str
    The effect of the taint. Valid values: NoSchedule, NoExecute and PreferNoSchedule.
    key str
    The key of the taint.
    value str
    The value of the taint.
    effect String
    The effect of the taint. Valid values: NoSchedule, NoExecute and PreferNoSchedule.
    key String
    The key of the taint.
    value String
    The value of the taint.

    Import

    ECI Virtual Node can be imported using the id, e.g.

    $ pulumi import alicloud:eci/virtualNode:VirtualNode example <id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi