1. Packages
  2. Ucloud Provider
  3. API Docs
  4. Uk8sNode
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

ucloud.Uk8sNode

Explore with Pulumi AI

ucloud logo
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

    Provides an UK8S Node resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const fooVpc = new ucloud.Vpc("fooVpc", {
        cidrBlocks: ["192.168.0.0/16"],
        tag: "tf-acc",
    });
    const fooSubnet = new ucloud.Subnet("fooSubnet", {
        cidrBlock: "192.168.1.0/24",
        tag: "tf-acc",
        vpcId: fooVpc.vpcId,
    });
    const _default = ucloud.getZones({});
    const fooUk8sCluster = new ucloud.Uk8sCluster("fooUk8sCluster", {
        chargeType: "dynamic",
        master: {
            availabilityZones: [
                _default.then(_default => _default.zones?.[0]?.id),
                _default.then(_default => _default.zones?.[0]?.id),
                _default.then(_default => _default.zones?.[0]?.id),
            ],
            instanceType: "n-basic-2",
        },
        password: "ucloud_2021",
        serviceCidr: "172.16.0.0/16",
        subnetId: fooSubnet.subnetId,
        vpcId: fooVpc.vpcId,
    });
    const fooUk8sNode: ucloud.Uk8sNode[] = [];
    for (const range = {value: 0}; range.value < 2; range.value++) {
        fooUk8sNode.push(new ucloud.Uk8sNode(`fooUk8sNode-${range.value}`, {
            availabilityZone: _default.then(_default => _default.zones?.[0]?.id),
            chargeType: "dynamic",
            clusterId: fooUk8sCluster.uk8sClusterId,
            instanceType: "n-basic-2",
            password: "ucloud_2021",
            subnetId: fooSubnet.subnetId,
        }));
    }
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    foo_vpc = ucloud.Vpc("fooVpc",
        cidr_blocks=["192.168.0.0/16"],
        tag="tf-acc")
    foo_subnet = ucloud.Subnet("fooSubnet",
        cidr_block="192.168.1.0/24",
        tag="tf-acc",
        vpc_id=foo_vpc.vpc_id)
    default = ucloud.get_zones()
    foo_uk8s_cluster = ucloud.Uk8sCluster("fooUk8sCluster",
        charge_type="dynamic",
        master={
            "availability_zones": [
                default.zones[0].id,
                default.zones[0].id,
                default.zones[0].id,
            ],
            "instance_type": "n-basic-2",
        },
        password="ucloud_2021",
        service_cidr="172.16.0.0/16",
        subnet_id=foo_subnet.subnet_id,
        vpc_id=foo_vpc.vpc_id)
    foo_uk8s_node = []
    for range in [{"value": i} for i in range(0, 2)]:
        foo_uk8s_node.append(ucloud.Uk8sNode(f"fooUk8sNode-{range['value']}",
            availability_zone=default.zones[0].id,
            charge_type="dynamic",
            cluster_id=foo_uk8s_cluster.uk8s_cluster_id,
            instance_type="n-basic-2",
            password="ucloud_2021",
            subnet_id=foo_subnet.subnet_id))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooVpc, err := ucloud.NewVpc(ctx, "fooVpc", &ucloud.VpcArgs{
    			CidrBlocks: pulumi.StringArray{
    				pulumi.String("192.168.0.0/16"),
    			},
    			Tag: pulumi.String("tf-acc"),
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := ucloud.NewSubnet(ctx, "fooSubnet", &ucloud.SubnetArgs{
    			CidrBlock: pulumi.String("192.168.1.0/24"),
    			Tag:       pulumi.String("tf-acc"),
    			VpcId:     fooVpc.VpcId,
    		})
    		if err != nil {
    			return err
    		}
    		_default, err := ucloud.GetZones(ctx, &ucloud.GetZonesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		fooUk8sCluster, err := ucloud.NewUk8sCluster(ctx, "fooUk8sCluster", &ucloud.Uk8sClusterArgs{
    			ChargeType: pulumi.String("dynamic"),
    			Master: &ucloud.Uk8sClusterMasterArgs{
    				AvailabilityZones: pulumi.StringArray{
    					pulumi.String(_default.Zones[0].Id),
    					pulumi.String(_default.Zones[0].Id),
    					pulumi.String(_default.Zones[0].Id),
    				},
    				InstanceType: pulumi.String("n-basic-2"),
    			},
    			Password:    pulumi.String("ucloud_2021"),
    			ServiceCidr: pulumi.String("172.16.0.0/16"),
    			SubnetId:    fooSubnet.SubnetId,
    			VpcId:       fooVpc.VpcId,
    		})
    		if err != nil {
    			return err
    		}
    		var fooUk8sNode []*ucloud.Uk8sNode
    		for index := 0; index < 2; index++ {
    			key0 := index
    			_ := index
    			__res, err := ucloud.NewUk8sNode(ctx, fmt.Sprintf("fooUk8sNode-%v", key0), &ucloud.Uk8sNodeArgs{
    				AvailabilityZone: pulumi.String(_default.Zones[0].Id),
    				ChargeType:       pulumi.String("dynamic"),
    				ClusterId:        fooUk8sCluster.Uk8sClusterId,
    				InstanceType:     pulumi.String("n-basic-2"),
    				Password:         pulumi.String("ucloud_2021"),
    				SubnetId:         fooSubnet.SubnetId,
    			})
    			if err != nil {
    				return err
    			}
    			fooUk8sNode = append(fooUk8sNode, __res)
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ucloud = Pulumi.Ucloud;
    
    return await Deployment.RunAsync(() => 
    {
        var fooVpc = new Ucloud.Vpc("fooVpc", new()
        {
            CidrBlocks = new[]
            {
                "192.168.0.0/16",
            },
            Tag = "tf-acc",
        });
    
        var fooSubnet = new Ucloud.Subnet("fooSubnet", new()
        {
            CidrBlock = "192.168.1.0/24",
            Tag = "tf-acc",
            VpcId = fooVpc.VpcId,
        });
    
        var @default = Ucloud.GetZones.Invoke();
    
        var fooUk8sCluster = new Ucloud.Uk8sCluster("fooUk8sCluster", new()
        {
            ChargeType = "dynamic",
            Master = new Ucloud.Inputs.Uk8sClusterMasterArgs
            {
                AvailabilityZones = new[]
                {
                    @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
                    @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
                    @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
                },
                InstanceType = "n-basic-2",
            },
            Password = "ucloud_2021",
            ServiceCidr = "172.16.0.0/16",
            SubnetId = fooSubnet.SubnetId,
            VpcId = fooVpc.VpcId,
        });
    
        var fooUk8sNode = new List<Ucloud.Uk8sNode>();
        for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            fooUk8sNode.Add(new Ucloud.Uk8sNode($"fooUk8sNode-{range.Value}", new()
            {
                AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
                ChargeType = "dynamic",
                ClusterId = fooUk8sCluster.Uk8sClusterId,
                InstanceType = "n-basic-2",
                Password = "ucloud_2021",
                SubnetId = fooSubnet.SubnetId,
            }));
        }
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ucloud.Vpc;
    import com.pulumi.ucloud.VpcArgs;
    import com.pulumi.ucloud.Subnet;
    import com.pulumi.ucloud.SubnetArgs;
    import com.pulumi.ucloud.UcloudFunctions;
    import com.pulumi.ucloud.inputs.GetZonesArgs;
    import com.pulumi.ucloud.Uk8sCluster;
    import com.pulumi.ucloud.Uk8sClusterArgs;
    import com.pulumi.ucloud.inputs.Uk8sClusterMasterArgs;
    import com.pulumi.ucloud.Uk8sNode;
    import com.pulumi.ucloud.Uk8sNodeArgs;
    import com.pulumi.codegen.internal.KeyedValue;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
                .cidrBlocks("192.168.0.0/16")
                .tag("tf-acc")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
                .cidrBlock("192.168.1.0/24")
                .tag("tf-acc")
                .vpcId(fooVpc.vpcId())
                .build());
    
            final var default = UcloudFunctions.getZones();
    
            var fooUk8sCluster = new Uk8sCluster("fooUk8sCluster", Uk8sClusterArgs.builder()
                .chargeType("dynamic")
                .master(Uk8sClusterMasterArgs.builder()
                    .availabilityZones(                
                        default_.zones()[0].id(),
                        default_.zones()[0].id(),
                        default_.zones()[0].id())
                    .instanceType("n-basic-2")
                    .build())
                .password("ucloud_2021")
                .serviceCidr("172.16.0.0/16")
                .subnetId(fooSubnet.subnetId())
                .vpcId(fooVpc.vpcId())
                .build());
    
            for (var i = 0; i < 2; i++) {
                new Uk8sNode("fooUk8sNode-" + i, Uk8sNodeArgs.builder()
                    .availabilityZone(default_.zones()[0].id())
                    .chargeType("dynamic")
                    .clusterId(fooUk8sCluster.uk8sClusterId())
                    .instanceType("n-basic-2")
                    .password("ucloud_2021")
                    .subnetId(fooSubnet.subnetId())
                    .build());
    
            
    }
        }
    }
    
    resources:
      fooVpc:
        type: ucloud:Vpc
        properties:
          cidrBlocks:
            - 192.168.0.0/16
          tag: tf-acc
      fooSubnet:
        type: ucloud:Subnet
        properties:
          cidrBlock: 192.168.1.0/24
          tag: tf-acc
          vpcId: ${fooVpc.vpcId}
      fooUk8sCluster:
        type: ucloud:Uk8sCluster
        properties:
          chargeType: dynamic
          master:
            availabilityZones:
              - ${default.zones[0].id}
              - ${default.zones[0].id}
              - ${default.zones[0].id}
            instanceType: n-basic-2
          password: ucloud_2021
          serviceCidr: 172.16.0.0/16
          subnetId: ${fooSubnet.subnetId}
          vpcId: ${fooVpc.vpcId}
      fooUk8sNode:
        type: ucloud:Uk8sNode
        properties:
          availabilityZone: ${default.zones[0].id}
          chargeType: dynamic
          clusterId: ${fooUk8sCluster.uk8sClusterId}
          instanceType: n-basic-2
          password: ucloud_2021
          subnetId: ${fooSubnet.subnetId}
        options: {}
    variables:
      default:
        fn::invoke:
          function: ucloud:getZones
          arguments: {}
    

    Create Uk8sNode Resource

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

    Constructor syntax

    new Uk8sNode(name: string, args: Uk8sNodeArgs, opts?: CustomResourceOptions);
    @overload
    def Uk8sNode(resource_name: str,
                 args: Uk8sNodeArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Uk8sNode(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 availability_zone: Optional[str] = None,
                 password: Optional[str] = None,
                 instance_type: Optional[str] = None,
                 cluster_id: Optional[str] = None,
                 duration: Optional[float] = None,
                 charge_type: Optional[str] = None,
                 delete_disks_with_instance: Optional[bool] = None,
                 disable_schedule_on_create: Optional[bool] = None,
                 data_disk_size: Optional[float] = None,
                 image_id: Optional[str] = None,
                 init_script: Optional[str] = None,
                 data_disk_type: Optional[str] = None,
                 isolation_group: Optional[str] = None,
                 min_cpu_platform: Optional[str] = None,
                 boot_disk_type: Optional[str] = None,
                 subnet_id: Optional[str] = None,
                 timeouts: Optional[Uk8sNodeTimeoutsArgs] = None,
                 uk8s_node_id: Optional[str] = None,
                 user_data: Optional[str] = None)
    func NewUk8sNode(ctx *Context, name string, args Uk8sNodeArgs, opts ...ResourceOption) (*Uk8sNode, error)
    public Uk8sNode(string name, Uk8sNodeArgs args, CustomResourceOptions? opts = null)
    public Uk8sNode(String name, Uk8sNodeArgs args)
    public Uk8sNode(String name, Uk8sNodeArgs args, CustomResourceOptions options)
    
    type: ucloud:Uk8sNode
    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 Uk8sNodeArgs
    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 Uk8sNodeArgs
    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 Uk8sNodeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Uk8sNodeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Uk8sNodeArgs
    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 uk8sNodeResource = new Ucloud.Uk8sNode("uk8sNodeResource", new()
    {
        AvailabilityZone = "string",
        Password = "string",
        InstanceType = "string",
        ClusterId = "string",
        Duration = 0,
        ChargeType = "string",
        DeleteDisksWithInstance = false,
        DisableScheduleOnCreate = false,
        DataDiskSize = 0,
        ImageId = "string",
        InitScript = "string",
        DataDiskType = "string",
        IsolationGroup = "string",
        MinCpuPlatform = "string",
        BootDiskType = "string",
        SubnetId = "string",
        Timeouts = new Ucloud.Inputs.Uk8sNodeTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Uk8sNodeId = "string",
        UserData = "string",
    });
    
    example, err := ucloud.NewUk8sNode(ctx, "uk8sNodeResource", &ucloud.Uk8sNodeArgs{
    	AvailabilityZone:        pulumi.String("string"),
    	Password:                pulumi.String("string"),
    	InstanceType:            pulumi.String("string"),
    	ClusterId:               pulumi.String("string"),
    	Duration:                pulumi.Float64(0),
    	ChargeType:              pulumi.String("string"),
    	DeleteDisksWithInstance: pulumi.Bool(false),
    	DisableScheduleOnCreate: pulumi.Bool(false),
    	DataDiskSize:            pulumi.Float64(0),
    	ImageId:                 pulumi.String("string"),
    	InitScript:              pulumi.String("string"),
    	DataDiskType:            pulumi.String("string"),
    	IsolationGroup:          pulumi.String("string"),
    	MinCpuPlatform:          pulumi.String("string"),
    	BootDiskType:            pulumi.String("string"),
    	SubnetId:                pulumi.String("string"),
    	Timeouts: &ucloud.Uk8sNodeTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Uk8sNodeId: pulumi.String("string"),
    	UserData:   pulumi.String("string"),
    })
    
    var uk8sNodeResource = new Uk8sNode("uk8sNodeResource", Uk8sNodeArgs.builder()
        .availabilityZone("string")
        .password("string")
        .instanceType("string")
        .clusterId("string")
        .duration(0)
        .chargeType("string")
        .deleteDisksWithInstance(false)
        .disableScheduleOnCreate(false)
        .dataDiskSize(0)
        .imageId("string")
        .initScript("string")
        .dataDiskType("string")
        .isolationGroup("string")
        .minCpuPlatform("string")
        .bootDiskType("string")
        .subnetId("string")
        .timeouts(Uk8sNodeTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .uk8sNodeId("string")
        .userData("string")
        .build());
    
    uk8s_node_resource = ucloud.Uk8sNode("uk8sNodeResource",
        availability_zone="string",
        password="string",
        instance_type="string",
        cluster_id="string",
        duration=0,
        charge_type="string",
        delete_disks_with_instance=False,
        disable_schedule_on_create=False,
        data_disk_size=0,
        image_id="string",
        init_script="string",
        data_disk_type="string",
        isolation_group="string",
        min_cpu_platform="string",
        boot_disk_type="string",
        subnet_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        uk8s_node_id="string",
        user_data="string")
    
    const uk8sNodeResource = new ucloud.Uk8sNode("uk8sNodeResource", {
        availabilityZone: "string",
        password: "string",
        instanceType: "string",
        clusterId: "string",
        duration: 0,
        chargeType: "string",
        deleteDisksWithInstance: false,
        disableScheduleOnCreate: false,
        dataDiskSize: 0,
        imageId: "string",
        initScript: "string",
        dataDiskType: "string",
        isolationGroup: "string",
        minCpuPlatform: "string",
        bootDiskType: "string",
        subnetId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        uk8sNodeId: "string",
        userData: "string",
    });
    
    type: ucloud:Uk8sNode
    properties:
        availabilityZone: string
        bootDiskType: string
        chargeType: string
        clusterId: string
        dataDiskSize: 0
        dataDiskType: string
        deleteDisksWithInstance: false
        disableScheduleOnCreate: false
        duration: 0
        imageId: string
        initScript: string
        instanceType: string
        isolationGroup: string
        minCpuPlatform: string
        password: string
        subnetId: string
        timeouts:
            create: string
            delete: string
            update: string
        uk8sNodeId: string
        userData: string
    

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

    AvailabilityZone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    ClusterId string
    The ID of uk8s cluster.
    InstanceType string
    The type of instance, please visit the instance type table
    Password string
    BootDiskType string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    ChargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    DataDiskSize double
    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.
    DataDiskType string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details.
    DeleteDisksWithInstance bool
    DisableScheduleOnCreate bool
    Whether disable any pod scheduling on the node is created.
    Duration double
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
    ImageId string
    The ID for the image to use for the instance.
    InitScript string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    IsolationGroup string
    The ID of the associated isolation group.
    MinCpuPlatform string
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    SubnetId string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    Timeouts Uk8sNodeTimeouts
    Uk8sNodeId string
    The ID of the resource instance.
    UserData string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    AvailabilityZone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    ClusterId string
    The ID of uk8s cluster.
    InstanceType string
    The type of instance, please visit the instance type table
    Password string
    BootDiskType string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    ChargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    DataDiskSize float64
    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.
    DataDiskType string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details.
    DeleteDisksWithInstance bool
    DisableScheduleOnCreate bool
    Whether disable any pod scheduling on the node is created.
    Duration float64
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
    ImageId string
    The ID for the image to use for the instance.
    InitScript string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    IsolationGroup string
    The ID of the associated isolation group.
    MinCpuPlatform string
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    SubnetId string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    Timeouts Uk8sNodeTimeoutsArgs
    Uk8sNodeId string
    The ID of the resource instance.
    UserData string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    availabilityZone String
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    clusterId String
    The ID of uk8s cluster.
    instanceType String
    The type of instance, please visit the instance type table
    password String
    bootDiskType String
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    chargeType String
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    dataDiskSize Double
    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.
    dataDiskType String
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details.
    deleteDisksWithInstance Boolean
    disableScheduleOnCreate Boolean
    Whether disable any pod scheduling on the node is created.
    duration Double
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
    imageId String
    The ID for the image to use for the instance.
    initScript String
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    isolationGroup String
    The ID of the associated isolation group.
    minCpuPlatform String
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    subnetId String
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    timeouts Uk8sNodeTimeouts
    uk8sNodeId String
    The ID of the resource instance.
    userData String
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    availabilityZone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    clusterId string
    The ID of uk8s cluster.
    instanceType string
    The type of instance, please visit the instance type table
    password string
    bootDiskType string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    chargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    dataDiskSize number
    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.
    dataDiskType string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details.
    deleteDisksWithInstance boolean
    disableScheduleOnCreate boolean
    Whether disable any pod scheduling on the node is created.
    duration number
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
    imageId string
    The ID for the image to use for the instance.
    initScript string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    isolationGroup string
    The ID of the associated isolation group.
    minCpuPlatform string
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    subnetId string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    timeouts Uk8sNodeTimeouts
    uk8sNodeId string
    The ID of the resource instance.
    userData string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    availability_zone str
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    cluster_id str
    The ID of uk8s cluster.
    instance_type str
    The type of instance, please visit the instance type table
    password str
    boot_disk_type str
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    charge_type str
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    data_disk_size float
    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.
    data_disk_type str
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details.
    delete_disks_with_instance bool
    disable_schedule_on_create bool
    Whether disable any pod scheduling on the node is created.
    duration float
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
    image_id str
    The ID for the image to use for the instance.
    init_script str
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    isolation_group str
    The ID of the associated isolation group.
    min_cpu_platform str
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    subnet_id str
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    timeouts Uk8sNodeTimeoutsArgs
    uk8s_node_id str
    The ID of the resource instance.
    user_data str
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    availabilityZone String
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    clusterId String
    The ID of uk8s cluster.
    instanceType String
    The type of instance, please visit the instance type table
    password String
    bootDiskType String
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    chargeType String
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    dataDiskSize Number
    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.
    dataDiskType String
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details.
    deleteDisksWithInstance Boolean
    disableScheduleOnCreate Boolean
    Whether disable any pod scheduling on the node is created.
    duration Number
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
    imageId String
    The ID for the image to use for the instance.
    initScript String
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    isolationGroup String
    The ID of the associated isolation group.
    minCpuPlatform String
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    subnetId String
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    timeouts Property Map
    uk8sNodeId String
    The ID of the resource instance.
    userData String
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document

    Outputs

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

    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    ExpireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpSets List<Uk8sNodeIpSet>
    It is a nested type which documented below.
    Status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    ExpireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpSets []Uk8sNodeIpSet
    It is a nested type which documented below.
    Status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    expireTime String
    The expiration time for instance, formatted in RFC3339 time string.
    id String
    The provider-assigned unique ID for this managed resource.
    ipSets List<Uk8sNodeIpSet>
    It is a nested type which documented below.
    status String
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    createTime string
    The time of creation for instance, formatted in RFC3339 time string.
    expireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    id string
    The provider-assigned unique ID for this managed resource.
    ipSets Uk8sNodeIpSet[]
    It is a nested type which documented below.
    status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    create_time str
    The time of creation for instance, formatted in RFC3339 time string.
    expire_time str
    The expiration time for instance, formatted in RFC3339 time string.
    id str
    The provider-assigned unique ID for this managed resource.
    ip_sets Sequence[Uk8sNodeIpSet]
    It is a nested type which documented below.
    status str
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    expireTime String
    The expiration time for instance, formatted in RFC3339 time string.
    id String
    The provider-assigned unique ID for this managed resource.
    ipSets List<Property Map>
    It is a nested type which documented below.
    status String
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.

    Look up Existing Uk8sNode Resource

    Get an existing Uk8sNode 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?: Uk8sNodeState, opts?: CustomResourceOptions): Uk8sNode
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_zone: Optional[str] = None,
            boot_disk_type: Optional[str] = None,
            charge_type: Optional[str] = None,
            cluster_id: Optional[str] = None,
            create_time: Optional[str] = None,
            data_disk_size: Optional[float] = None,
            data_disk_type: Optional[str] = None,
            delete_disks_with_instance: Optional[bool] = None,
            disable_schedule_on_create: Optional[bool] = None,
            duration: Optional[float] = None,
            expire_time: Optional[str] = None,
            image_id: Optional[str] = None,
            init_script: Optional[str] = None,
            instance_type: Optional[str] = None,
            ip_sets: Optional[Sequence[Uk8sNodeIpSetArgs]] = None,
            isolation_group: Optional[str] = None,
            min_cpu_platform: Optional[str] = None,
            password: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            timeouts: Optional[Uk8sNodeTimeoutsArgs] = None,
            uk8s_node_id: Optional[str] = None,
            user_data: Optional[str] = None) -> Uk8sNode
    func GetUk8sNode(ctx *Context, name string, id IDInput, state *Uk8sNodeState, opts ...ResourceOption) (*Uk8sNode, error)
    public static Uk8sNode Get(string name, Input<string> id, Uk8sNodeState? state, CustomResourceOptions? opts = null)
    public static Uk8sNode get(String name, Output<String> id, Uk8sNodeState state, CustomResourceOptions options)
    resources:  _:    type: ucloud:Uk8sNode    get:      id: ${id}
    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:
    AvailabilityZone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    BootDiskType string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    ChargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    ClusterId string
    The ID of uk8s cluster.
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    DataDiskSize double
    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.
    DataDiskType string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details.
    DeleteDisksWithInstance bool
    DisableScheduleOnCreate bool
    Whether disable any pod scheduling on the node is created.
    Duration double
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
    ExpireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    ImageId string
    The ID for the image to use for the instance.
    InitScript string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    InstanceType string
    The type of instance, please visit the instance type table
    IpSets List<Uk8sNodeIpSet>
    It is a nested type which documented below.
    IsolationGroup string
    The ID of the associated isolation group.
    MinCpuPlatform string
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    Password string
    Status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    SubnetId string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    Timeouts Uk8sNodeTimeouts
    Uk8sNodeId string
    The ID of the resource instance.
    UserData string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    AvailabilityZone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    BootDiskType string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    ChargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    ClusterId string
    The ID of uk8s cluster.
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    DataDiskSize float64
    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.
    DataDiskType string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details.
    DeleteDisksWithInstance bool
    DisableScheduleOnCreate bool
    Whether disable any pod scheduling on the node is created.
    Duration float64
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
    ExpireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    ImageId string
    The ID for the image to use for the instance.
    InitScript string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    InstanceType string
    The type of instance, please visit the instance type table
    IpSets []Uk8sNodeIpSetArgs
    It is a nested type which documented below.
    IsolationGroup string
    The ID of the associated isolation group.
    MinCpuPlatform string
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    Password string
    Status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    SubnetId string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    Timeouts Uk8sNodeTimeoutsArgs
    Uk8sNodeId string
    The ID of the resource instance.
    UserData string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    availabilityZone String
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    bootDiskType String
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    chargeType String
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    clusterId String
    The ID of uk8s cluster.
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    dataDiskSize Double
    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.
    dataDiskType String
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details.
    deleteDisksWithInstance Boolean
    disableScheduleOnCreate Boolean
    Whether disable any pod scheduling on the node is created.
    duration Double
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
    expireTime String
    The expiration time for instance, formatted in RFC3339 time string.
    imageId String
    The ID for the image to use for the instance.
    initScript String
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    instanceType String
    The type of instance, please visit the instance type table
    ipSets List<Uk8sNodeIpSet>
    It is a nested type which documented below.
    isolationGroup String
    The ID of the associated isolation group.
    minCpuPlatform String
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    password String
    status String
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    subnetId String
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    timeouts Uk8sNodeTimeouts
    uk8sNodeId String
    The ID of the resource instance.
    userData String
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    availabilityZone string
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    bootDiskType string
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    chargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    clusterId string
    The ID of uk8s cluster.
    createTime string
    The time of creation for instance, formatted in RFC3339 time string.
    dataDiskSize number
    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.
    dataDiskType string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details.
    deleteDisksWithInstance boolean
    disableScheduleOnCreate boolean
    Whether disable any pod scheduling on the node is created.
    duration number
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
    expireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    imageId string
    The ID for the image to use for the instance.
    initScript string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    instanceType string
    The type of instance, please visit the instance type table
    ipSets Uk8sNodeIpSet[]
    It is a nested type which documented below.
    isolationGroup string
    The ID of the associated isolation group.
    minCpuPlatform string
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    password string
    status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    subnetId string
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    timeouts Uk8sNodeTimeouts
    uk8sNodeId string
    The ID of the resource instance.
    userData string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    availability_zone str
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    boot_disk_type str
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    charge_type str
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    cluster_id str
    The ID of uk8s cluster.
    create_time str
    The time of creation for instance, formatted in RFC3339 time string.
    data_disk_size float
    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.
    data_disk_type str
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details.
    delete_disks_with_instance bool
    disable_schedule_on_create bool
    Whether disable any pod scheduling on the node is created.
    duration float
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
    expire_time str
    The expiration time for instance, formatted in RFC3339 time string.
    image_id str
    The ID for the image to use for the instance.
    init_script str
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    instance_type str
    The type of instance, please visit the instance type table
    ip_sets Sequence[Uk8sNodeIpSetArgs]
    It is a nested type which documented below.
    isolation_group str
    The ID of the associated isolation group.
    min_cpu_platform str
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    password str
    status str
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    subnet_id str
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    timeouts Uk8sNodeTimeoutsArgs
    uk8s_node_id str
    The ID of the resource instance.
    user_data str
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    availabilityZone String
    Availability zone where instance is located. such as: cn-bj2-02. You may refer to list of availability zone
    bootDiskType String
    The type of boot disk. Possible values are: local_normal and local_ssd for local boot disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd and cloud_ssd are not fully support by all regions as boot disk type, please proceed to UCloud console for more details.
    chargeType String
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    clusterId String
    The ID of uk8s cluster.
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    dataDiskSize Number
    The size of local data disk, measured in GB (GigaByte), 20-2000 for local sata disk and 20-1000 for local ssd disk (all the GPU type instances are included). The volume adjustment must be a multiple of 10 GB. In addition, any reduction of data disk size is not supported.
    dataDiskType String
    The type of local data disk. Possible values are: local_normal and local_ssd for local data disk, cloud_ssd for cloud SSD boot disk,cloud_rssd as RDMA-SSD cloud disk. (Default: cloud_ssd). The local_ssd is not fully support by all regions as data disk type, please proceed to UCloud console for more details.
    deleteDisksWithInstance Boolean
    disableScheduleOnCreate Boolean
    Whether disable any pod scheduling on the node is created.
    duration Number
    The duration that you will buy the instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
    expireTime String
    The expiration time for instance, formatted in RFC3339 time string.
    imageId String
    The ID for the image to use for the instance.
    initScript String
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    instanceType String
    The type of instance, please visit the instance type table
    ipSets List<Property Map>
    It is a nested type which documented below.
    isolationGroup String
    The ID of the associated isolation group.
    minCpuPlatform String
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    password String
    status String
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    subnetId String
    The ID of subnet. If defined vpc_id, the subnet_id is Required. If not defined vpc_id and subnet_id, the instance will use the default subnet in the current region.
    timeouts Property Map
    uk8sNodeId String
    The ID of the resource instance.
    userData String
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document

    Supporting Types

    Uk8sNodeIpSet, Uk8sNodeIpSetArgs

    InternetType string
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    Ip string
    Elastic IP address.
    InternetType string
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    Ip string
    Elastic IP address.
    internetType String
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    ip String
    Elastic IP address.
    internetType string
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    ip string
    Elastic IP address.
    internet_type str
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    ip str
    Elastic IP address.
    internetType String
    Type of Elastic IP routes. Possible values are: International as international BGP IP, BGP as china BGP IP and Private as private IP.
    ip String
    Elastic IP address.

    Uk8sNodeTimeouts, Uk8sNodeTimeoutsArgs

    Create string
    Used when launching the instance (until it reaches the initial Ready state)
    Delete string
    Used when terminating the instance
    Update string
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type
    Create string
    Used when launching the instance (until it reaches the initial Ready state)
    Delete string
    Used when terminating the instance
    Update string
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type
    create String
    Used when launching the instance (until it reaches the initial Ready state)
    delete String
    Used when terminating the instance
    update String
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type
    create string
    Used when launching the instance (until it reaches the initial Ready state)
    delete string
    Used when terminating the instance
    update string
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type
    create str
    Used when launching the instance (until it reaches the initial Ready state)
    delete str
    Used when terminating the instance
    update str
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type
    create String
    Used when launching the instance (until it reaches the initial Ready state)
    delete String
    Used when terminating the instance
    update String
    Used when updating the arguments of the instance if necessary - e.g. when changing instance_type

    Package Details

    Repository
    ucloud ucloud/terraform-provider-ucloud
    License
    Notes
    This Pulumi package is based on the ucloud Terraform Provider.
    ucloud logo
    ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud