Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

VirtualNode

Provides a ECI Virtual Node resource.

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

NOTE: Available in v1.145.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-testaccvirtualnode";
        var defaultZones = Output.Create(AliCloud.Eci.GetZones.InvokeAsync());
        var defaultNetworks = Output.Create(AliCloud.Vpc.GetNetworks.InvokeAsync(new AliCloud.Vpc.GetNetworksArgs
        {
            NameRegex = "default-NODELETING",
        }));
        var defaultSwitches = Output.Tuple(defaultNetworks, defaultZones).Apply(values =>
        {
            var defaultNetworks = values.Item1;
            var defaultZones = values.Item2;
            return Output.Create(AliCloud.Vpc.GetSwitches.InvokeAsync(new AliCloud.Vpc.GetSwitchesArgs
            {
                VpcId = defaultNetworks.Ids?[0],
                ZoneId = defaultZones.Zones?[0]?.ZoneIds?[1],
            }));
        });
        var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new AliCloud.Ecs.SecurityGroupArgs
        {
            VpcId = defaultNetworks.Apply(defaultNetworks => defaultNetworks.Ids?[0]),
        });
        var defaultEipAddress = new AliCloud.Ecs.EipAddress("defaultEipAddress", new AliCloud.Ecs.EipAddressArgs
        {
            AddressName = name,
        });
        var defaultResourceGroups = Output.Create(AliCloud.ResourceManager.GetResourceGroups.InvokeAsync());
        var defaultVirtualNode = new AliCloud.Eci.VirtualNode("defaultVirtualNode", new AliCloud.Eci.VirtualNodeArgs
        {
            SecurityGroupId = defaultSecurityGroup.Id,
            VirtualNodeName = name,
            VswitchId = defaultSwitches.Apply(defaultSwitches => defaultSwitches.Ids?[1]),
            EnablePublicNetwork = false,
            EipInstanceId = defaultEipAddress.Id,
            ResourceGroupId = defaultResourceGroups.Apply(defaultResourceGroups => defaultResourceGroups.Groups?[0]?.Id),
            KubeConfig = "kube config",
            Tags = 
            {
                { "Created", "TF" },
            },
            Taints = 
            {
                new AliCloud.Eci.Inputs.VirtualNodeTaintArgs
                {
                    Effect = "NoSchedule",
                    Key = "Tf1",
                    Value = "Test1",
                },
            },
        });
    }

}
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-testaccvirtualnode"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultZones, err := eci.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(defaultZones.Zones[0].ZoneIds[1]),
		}, nil)
		if err != nil {
			return err
		}
		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
			VpcId: pulumi.String(defaultNetworks.Ids[0]),
		})
		if err != nil {
			return err
		}
		defaultEipAddress, err := ecs.NewEipAddress(ctx, "defaultEipAddress", &ecs.EipAddressArgs{
			AddressName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultResourceGroups, err := resourcemanager.GetResourceGroups(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = eci.NewVirtualNode(ctx, "defaultVirtualNode", &eci.VirtualNodeArgs{
			SecurityGroupId:     defaultSecurityGroup.ID(),
			VirtualNodeName:     pulumi.String(name),
			VswitchId:           pulumi.String(defaultSwitches.Ids[1]),
			EnablePublicNetwork: pulumi.Bool(false),
			EipInstanceId:       defaultEipAddress.ID(),
			ResourceGroupId:     pulumi.String(defaultResourceGroups.Groups[0].Id),
			KubeConfig:          pulumi.String("kube config"),
			Tags: pulumi.AnyMap{
				"Created": pulumi.Any("TF"),
			},
			Taints: eci.VirtualNodeTaintArray{
				&eci.VirtualNodeTaintArgs{
					Effect: pulumi.String("NoSchedule"),
					Key:    pulumi.String("Tf1"),
					Value:  pulumi.String("Test1"),
				},
			},
		})
		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.alicloud.eci.EciFunctions;
import com.pulumi.alicloud.adb.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.cloudconnect.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
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-testaccvirtualnode");
        final var defaultZones = EciFunctions.getZones();

        final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
            .nameRegex("default-NODELETING")
            .build());

        final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
            .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
            .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneIds()[1]))
            .build());

        var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()        
            .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
            .build());

        var defaultEipAddress = new EipAddress("defaultEipAddress", EipAddressArgs.builder()        
            .addressName(name)
            .build());

        final var defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups();

        var defaultVirtualNode = new VirtualNode("defaultVirtualNode", VirtualNodeArgs.builder()        
            .securityGroupId(defaultSecurityGroup.id())
            .virtualNodeName(name)
            .vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[1]))
            .enablePublicNetwork(false)
            .eipInstanceId(defaultEipAddress.id())
            .resourceGroupId(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
            .kubeConfig("kube config")
            .tags(Map.of("Created", "TF"))
            .taints(VirtualNodeTaintArgs.builder()
                .effect("NoSchedule")
                .key("Tf1")
                .value("Test1")
                .build())
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-testaccvirtualnode"
default_zones = alicloud.eci.get_zones()
default_networks = alicloud.vpc.get_networks(name_regex="default-NODELETING")
default_switches = alicloud.vpc.get_switches(vpc_id=default_networks.ids[0],
    zone_id=default_zones.zones[0].zone_ids[1])
default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_networks.ids[0])
default_eip_address = alicloud.ecs.EipAddress("defaultEipAddress", address_name=name)
default_resource_groups = alicloud.resourcemanager.get_resource_groups()
default_virtual_node = alicloud.eci.VirtualNode("defaultVirtualNode",
    security_group_id=default_security_group.id,
    virtual_node_name=name,
    vswitch_id=default_switches.ids[1],
    enable_public_network=False,
    eip_instance_id=default_eip_address.id,
    resource_group_id=default_resource_groups.groups[0].id,
    kube_config="kube config",
    tags={
        "Created": "TF",
    },
    taints=[alicloud.eci.VirtualNodeTaintArgs(
        effect="NoSchedule",
        key="Tf1",
        value="Test1",
    )])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "tf-testaccvirtualnode";
const defaultZones = alicloud.eci.getZones({});
const defaultNetworks = alicloud.vpc.getNetworks({
    nameRegex: "default-NODELETING",
});
const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
    vpcId: defaultNetworks.ids?[0],
    zoneId: defaultZones.zones?[0]?.zoneIds?[1],
}));
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?[0])});
const defaultEipAddress = new alicloud.ecs.EipAddress("defaultEipAddress", {addressName: name});
const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({});
const defaultVirtualNode = new alicloud.eci.VirtualNode("defaultVirtualNode", {
    securityGroupId: defaultSecurityGroup.id,
    virtualNodeName: name,
    vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?[1]),
    enablePublicNetwork: false,
    eipInstanceId: defaultEipAddress.id,
    resourceGroupId: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.groups?[0]?.id),
    kubeConfig: "kube config",
    tags: {
        Created: "TF",
    },
    taints: [{
        effect: "NoSchedule",
        key: "Tf1",
        value: "Test1",
    }],
});
configuration:
  name:
    type: string
    default: tf-testaccvirtualnode
resources:
  defaultSecurityGroup:
    type: alicloud:ecs:SecurityGroup
    properties:
      vpcId: ${defaultNetworks.ids[0]}
  defaultEipAddress:
    type: alicloud:ecs:EipAddress
    properties:
      addressName: ${name}
  defaultVirtualNode:
    type: alicloud:eci:VirtualNode
    properties:
      securityGroupId: ${defaultSecurityGroup.id}
      virtualNodeName: ${name}
      vswitchId: ${defaultSwitches.ids[1]}
      enablePublicNetwork: false
      eipInstanceId: ${defaultEipAddress.id}
      resourceGroupId: ${defaultResourceGroups.groups[0].id}
      kubeConfig: kube config
      tags:
        Created: TF
      taints:
        - effect: NoSchedule
          key: Tf1
          value: Test1
variables:
  defaultZones:
    Fn::Invoke:
      Function: alicloud:eci:getZones
      Arguments: {}
  defaultNetworks:
    Fn::Invoke:
      Function: alicloud:vpc:getNetworks
      Arguments:
        nameRegex: default-NODELETING
  defaultSwitches:
    Fn::Invoke:
      Function: alicloud:vpc:getSwitches
      Arguments:
        vpcId: ${defaultNetworks.ids[0]}
        zoneId: ${defaultZones.zones[0].zoneIds[1]}
  defaultResourceGroups:
    Fn::Invoke:
      Function: alicloud:resourcemanager:getResourceGroups
      Arguments: {}

Create a VirtualNode Resource

new VirtualNode(name: string, args: VirtualNodeArgs, opts?: CustomResourceOptions);
@overload
def VirtualNode(resource_name: 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,
                tags: Optional[Mapping[str, Any]] = None,
                taints: Optional[Sequence[VirtualNodeTaintArgs]] = None,
                virtual_node_name: Optional[str] = None,
                vswitch_id: Optional[str] = None,
                zone_id: Optional[str] = None)
@overload
def VirtualNode(resource_name: str,
                args: VirtualNodeArgs,
                opts: Optional[ResourceOptions] = 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.

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.

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

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, object>

A mapping of tags to assign to the resource.

Taints List<Pulumi.AliCloud.Eci.Inputs.VirtualNodeTaintArgs>

The taint. See the following Block taints.

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]interface{}

A mapping of tags to assign to the resource.

Taints []VirtualNodeTaintArgs

The taint. See the following Block taints.

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,Object>

A mapping of tags to assign to the resource.

taints List<VirtualNodeTaintArgs>

The taint. See the following Block taints.

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]: any}

A mapping of tags to assign to the resource.

taints VirtualNodeTaintArgs[]

The taint. See the following Block taints.

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, Any]

A mapping of tags to assign to the resource.

taints Sequence[VirtualNodeTaintArgs]

The taint. See the following Block taints.

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<Any>

A mapping of tags to assign to the resource.

taints List<Property Map>

The taint. See the following Block taints.

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 an 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, Any]] = 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, object>

A mapping of tags to assign to the resource.

Taints List<Pulumi.AliCloud.Eci.Inputs.VirtualNodeTaintArgs>

The taint. See the following Block taints.

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]interface{}

A mapping of tags to assign to the resource.

Taints []VirtualNodeTaintArgs

The taint. See the following Block taints.

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,Object>

A mapping of tags to assign to the resource.

taints List<VirtualNodeTaintArgs>

The taint. See the following Block taints.

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]: any}

A mapping of tags to assign to the resource.

taints VirtualNodeTaintArgs[]

The taint. See the following Block taints.

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, Any]

A mapping of tags to assign to the resource.

taints Sequence[VirtualNodeTaintArgs]

The taint. See the following Block taints.

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<Any>

A mapping of tags to assign to the resource.

taints List<Property Map>

The taint. See the following Block taints.

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

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>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.