1. Registry
  2. Packages
  3. Ucloud Provider
  4. API Docs
  5. Uk8sNode
Viewing docs for ucloud 1.42.0
published on Friday, Sep 11, 2026 by ucloud
Viewing docs for ucloud 1.42.0
published on Friday, Sep 11, 2026 by ucloud

    Provides an UK8S Node resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const foo = new ucloud.Vpc("foo", {
        name: "tf-acc-uk8s-node",
        tag: "tf-acc",
        cidrBlocks: ["192.168.0.0/16"],
    });
    const fooSubnet = new ucloud.Subnet("foo", {
        name: "tf-acc-uk8s-node",
        tag: "tf-acc",
        cidrBlock: "192.168.1.0/24",
        vpcId: foo.vpcId,
    });
    const _default = ucloud.getZones({});
    const fooUk8sCluster = new ucloud.Uk8sCluster("foo", {
        vpcId: foo.vpcId,
        subnetId: fooSubnet.subnetId,
        name: "tf-acc-uk8s-node-basic",
        serviceCidr: "172.16.0.0/16",
        password: "ucloud_2021",
        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",
        },
    });
    const fooUk8sNode: ucloud.Uk8sNode[] = [];
    for (const range = {value: 0}; range.value < 2; range.value++) {
        fooUk8sNode.push(new ucloud.Uk8sNode(`foo-${range.value}`, {
            clusterId: fooUk8sCluster.uk8sClusterId,
            subnetId: fooSubnet.subnetId,
            password: "ucloud_2021",
            machineType: "N",
            cpu: 2,
            memory: 4096,
            chargeType: "dynamic",
            availabilityZone: _default.then(_default => _default.zones?.[0]?.id),
        }));
    }
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    foo = ucloud.Vpc("foo",
        name="tf-acc-uk8s-node",
        tag="tf-acc",
        cidr_blocks=["192.168.0.0/16"])
    foo_subnet = ucloud.Subnet("foo",
        name="tf-acc-uk8s-node",
        tag="tf-acc",
        cidr_block="192.168.1.0/24",
        vpc_id=foo.vpc_id)
    default = ucloud.get_zones()
    foo_uk8s_cluster = ucloud.Uk8sCluster("foo",
        vpc_id=foo.vpc_id,
        subnet_id=foo_subnet.subnet_id,
        name="tf-acc-uk8s-node-basic",
        service_cidr="172.16.0.0/16",
        password="ucloud_2021",
        charge_type="dynamic",
        master={
            "availability_zones": [
                default.zones[0].id,
                default.zones[0].id,
                default.zones[0].id,
            ],
            "instance_type": "n-basic-2",
        })
    foo_uk8s_node = []
    for range in [{"value": i} for i in range(0, 2)]:
        foo_uk8s_node.append(ucloud.Uk8sNode(f"foo-{range['value']}",
            cluster_id=foo_uk8s_cluster.uk8s_cluster_id,
            subnet_id=foo_subnet.subnet_id,
            password="ucloud_2021",
            machine_type="N",
            cpu=2,
            memory=4096,
            charge_type="dynamic",
            availability_zone=default.zones[0].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 {
    		foo, err := ucloud.NewVpc(ctx, "foo", &ucloud.VpcArgs{
    			Name: pulumi.String("tf-acc-uk8s-node"),
    			Tag:  pulumi.String("tf-acc"),
    			CidrBlocks: pulumi.StringArray{
    				pulumi.String("192.168.0.0/16"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := ucloud.NewSubnet(ctx, "foo", &ucloud.SubnetArgs{
    			Name:      pulumi.String("tf-acc-uk8s-node"),
    			Tag:       pulumi.String("tf-acc"),
    			CidrBlock: pulumi.String("192.168.1.0/24"),
    			VpcId:     foo.VpcId,
    		})
    		if err != nil {
    			return err
    		}
    		_default, err := ucloud.GetZones(ctx, &ucloud.GetZonesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		fooUk8sCluster, err := ucloud.NewUk8sCluster(ctx, "foo", &ucloud.Uk8sClusterArgs{
    			VpcId:       foo.VpcId,
    			SubnetId:    fooSubnet.SubnetId,
    			Name:        pulumi.String("tf-acc-uk8s-node-basic"),
    			ServiceCidr: pulumi.String("172.16.0.0/16"),
    			Password:    pulumi.String("ucloud_2021"),
    			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"),
    			},
    		})
    		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("foo-%v", key0), &ucloud.Uk8sNodeArgs{
    				ClusterId:        fooUk8sCluster.Uk8sClusterId,
    				SubnetId:         fooSubnet.SubnetId,
    				Password:         pulumi.String("ucloud_2021"),
    				MachineType:      pulumi.String("N"),
    				Cpu:              pulumi.Float64(2),
    				Memory:           pulumi.Float64(4096),
    				ChargeType:       pulumi.String("dynamic"),
    				AvailabilityZone: pulumi.String(_default.Zones[0].Id),
    			})
    			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 foo = new Ucloud.Vpc("foo", new()
        {
            Name = "tf-acc-uk8s-node",
            Tag = "tf-acc",
            CidrBlocks = new[]
            {
                "192.168.0.0/16",
            },
        });
    
        var fooSubnet = new Ucloud.Subnet("foo", new()
        {
            Name = "tf-acc-uk8s-node",
            Tag = "tf-acc",
            CidrBlock = "192.168.1.0/24",
            VpcId = foo.VpcId,
        });
    
        var @default = Ucloud.GetZones.Invoke();
    
        var fooUk8sCluster = new Ucloud.Uk8sCluster("foo", new()
        {
            VpcId = foo.VpcId,
            SubnetId = fooSubnet.SubnetId,
            Name = "tf-acc-uk8s-node-basic",
            ServiceCidr = "172.16.0.0/16",
            Password = "ucloud_2021",
            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",
            },
        });
    
        var fooUk8sNode = new List<Ucloud.Uk8sNode>();
        for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            fooUk8sNode.Add(new Ucloud.Uk8sNode($"foo-{range.Value}", new()
            {
                ClusterId = fooUk8sCluster.Uk8sClusterId,
                SubnetId = fooSubnet.SubnetId,
                Password = "ucloud_2021",
                MachineType = "N",
                Cpu = 2,
                Memory = 4096,
                ChargeType = "dynamic",
                AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
            }));
        }
    });
    
    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 foo = new Vpc("foo", VpcArgs.builder()
                .name("tf-acc-uk8s-node")
                .tag("tf-acc")
                .cidrBlocks("192.168.0.0/16")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
                .name("tf-acc-uk8s-node")
                .tag("tf-acc")
                .cidrBlock("192.168.1.0/24")
                .vpcId(foo.vpcId())
                .build());
    
            final var default = UcloudFunctions.getZones(GetZonesArgs.builder()
                .build());
    
            var fooUk8sCluster = new Uk8sCluster("fooUk8sCluster", Uk8sClusterArgs.builder()
                .vpcId(foo.vpcId())
                .subnetId(fooSubnet.subnetId())
                .name("tf-acc-uk8s-node-basic")
                .serviceCidr("172.16.0.0/16")
                .password("ucloud_2021")
                .chargeType("dynamic")
                .master(Uk8sClusterMasterArgs.builder()
                    .availabilityZones(                
                        default_.zones()[0].id(),
                        default_.zones()[0].id(),
                        default_.zones()[0].id())
                    .instanceType("n-basic-2")
                    .build())
                .build());
    
            for (var i = 0; i < 2; i++) {
                new Uk8sNode("fooUk8sNode-" + i, Uk8sNodeArgs.builder()
                    .clusterId(fooUk8sCluster.uk8sClusterId())
                    .subnetId(fooSubnet.subnetId())
                    .password("ucloud_2021")
                    .machineType("N")
                    .cpu(2.0)
                    .memory(4096.0)
                    .chargeType("dynamic")
                    .availabilityZone(default_.zones()[0].id())
                    .build());
    
            
    }
        }
    }
    
    resources:
      foo:
        type: ucloud:Vpc
        properties:
          name: tf-acc-uk8s-node
          tag: tf-acc
          cidrBlocks:
            - 192.168.0.0/16
      fooSubnet:
        type: ucloud:Subnet
        name: foo
        properties:
          name: tf-acc-uk8s-node
          tag: tf-acc
          cidrBlock: 192.168.1.0/24
          vpcId: ${foo.vpcId}
      fooUk8sCluster:
        type: ucloud:Uk8sCluster
        name: foo
        properties:
          vpcId: ${foo.vpcId}
          subnetId: ${fooSubnet.subnetId}
          name: tf-acc-uk8s-node-basic
          serviceCidr: 172.16.0.0/16
          password: ucloud_2021
          chargeType: dynamic
          master:
            availabilityZones:
              - ${default.zones[0].id}
              - ${default.zones[0].id}
              - ${default.zones[0].id}
            instanceType: n-basic-2
      fooUk8sNode:
        type: ucloud:Uk8sNode
        name: foo
        properties:
          clusterId: ${fooUk8sCluster.uk8sClusterId}
          subnetId: ${fooSubnet.subnetId}
          password: ucloud_2021
          machineType: N
          cpu: 2
          memory: 4096
          chargeType: dynamic
          availabilityZone: ${default.zones[0].id}
        options: {}
    variables:
      default:
        fn::invoke:
          function: ucloud:getZones
          arguments: {}
    
    Example coming soon!
    

    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,
                 cluster_id: Optional[str] = None,
                 password: Optional[str] = None,
                 availability_zone: Optional[str] = None,
                 data_disk_type: Optional[str] = None,
                 machine_type: Optional[str] = None,
                 data_disk_size: Optional[float] = None,
                 charge_type: Optional[str] = None,
                 delete_disks_with_instance: Optional[bool] = None,
                 disable_schedule_on_create: Optional[bool] = None,
                 duration: Optional[float] = None,
                 image_id: Optional[str] = None,
                 init_script: Optional[str] = None,
                 instance_type: Optional[str] = None,
                 isolation_group: Optional[str] = None,
                 cpu: Optional[float] = None,
                 memory: Optional[float] = None,
                 min_cpu_platform: Optional[str] = None,
                 node_group_id: Optional[str] = None,
                 boot_disk_type: Optional[str] = None,
                 subnet_id: Optional[str] = None,
                 timeouts: Optional[Uk8sNodeTimeoutsArgs] = None,
                 uhost_family: Optional[str] = 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.
    
    
    resource "ucloud_uk8s_node" "name" {
        # resource properties
    }

    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()
    {
        ClusterId = "string",
        Password = "string",
        AvailabilityZone = "string",
        DataDiskType = "string",
        MachineType = "string",
        DataDiskSize = 0.0,
        ChargeType = "string",
        DeleteDisksWithInstance = false,
        DisableScheduleOnCreate = false,
        Duration = 0.0,
        ImageId = "string",
        InitScript = "string",
        InstanceType = "string",
        IsolationGroup = "string",
        Cpu = 0.0,
        Memory = 0.0,
        MinCpuPlatform = "string",
        NodeGroupId = "string",
        BootDiskType = "string",
        SubnetId = "string",
        Timeouts = new Ucloud.Inputs.Uk8sNodeTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        UhostFamily = "string",
        Uk8sNodeId = "string",
        UserData = "string",
    });
    
    example, err := ucloud.NewUk8sNode(ctx, "uk8sNodeResource", &ucloud.Uk8sNodeArgs{
    	ClusterId:               pulumi.String("string"),
    	Password:                pulumi.String("string"),
    	AvailabilityZone:        pulumi.String("string"),
    	DataDiskType:            pulumi.String("string"),
    	MachineType:             pulumi.String("string"),
    	DataDiskSize:            pulumi.Float64(0),
    	ChargeType:              pulumi.String("string"),
    	DeleteDisksWithInstance: pulumi.Bool(false),
    	DisableScheduleOnCreate: pulumi.Bool(false),
    	Duration:                pulumi.Float64(0),
    	ImageId:                 pulumi.String("string"),
    	InitScript:              pulumi.String("string"),
    	InstanceType:            pulumi.String("string"),
    	IsolationGroup:          pulumi.String("string"),
    	Cpu:                     pulumi.Float64(0),
    	Memory:                  pulumi.Float64(0),
    	MinCpuPlatform:          pulumi.String("string"),
    	NodeGroupId:             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"),
    	},
    	UhostFamily: pulumi.String("string"),
    	Uk8sNodeId:  pulumi.String("string"),
    	UserData:    pulumi.String("string"),
    })
    
    resource "ucloud_uk8s_node" "uk8sNodeResource" {
      lifecycle {
        create_before_destroy = true
      }
      cluster_id                 = "string"
      password                   = "string"
      availability_zone          = "string"
      data_disk_type             = "string"
      machine_type               = "string"
      data_disk_size             = 0
      charge_type                = "string"
      delete_disks_with_instance = false
      disable_schedule_on_create = false
      duration                   = 0
      image_id                   = "string"
      init_script                = "string"
      instance_type              = "string"
      isolation_group            = "string"
      cpu                        = 0
      memory                     = 0
      min_cpu_platform           = "string"
      node_group_id              = "string"
      boot_disk_type             = "string"
      subnet_id                  = "string"
      timeouts = {
        create = "string"
        delete = "string"
        update = "string"
      }
      uhost_family = "string"
      uk8s_node_id = "string"
      user_data    = "string"
    }
    
    var uk8sNodeResource = new Uk8sNode("uk8sNodeResource", Uk8sNodeArgs.builder()
        .clusterId("string")
        .password("string")
        .availabilityZone("string")
        .dataDiskType("string")
        .machineType("string")
        .dataDiskSize(0.0)
        .chargeType("string")
        .deleteDisksWithInstance(false)
        .disableScheduleOnCreate(false)
        .duration(0.0)
        .imageId("string")
        .initScript("string")
        .instanceType("string")
        .isolationGroup("string")
        .cpu(0.0)
        .memory(0.0)
        .minCpuPlatform("string")
        .nodeGroupId("string")
        .bootDiskType("string")
        .subnetId("string")
        .timeouts(Uk8sNodeTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .uhostFamily("string")
        .uk8sNodeId("string")
        .userData("string")
        .build());
    
    uk8s_node_resource = ucloud.Uk8sNode("uk8sNodeResource",
        cluster_id="string",
        password="string",
        availability_zone="string",
        data_disk_type="string",
        machine_type="string",
        data_disk_size=float(0),
        charge_type="string",
        delete_disks_with_instance=False,
        disable_schedule_on_create=False,
        duration=float(0),
        image_id="string",
        init_script="string",
        instance_type="string",
        isolation_group="string",
        cpu=float(0),
        memory=float(0),
        min_cpu_platform="string",
        node_group_id="string",
        boot_disk_type="string",
        subnet_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        uhost_family="string",
        uk8s_node_id="string",
        user_data="string")
    
    const uk8sNodeResource = new ucloud.Uk8sNode("uk8sNodeResource", {
        clusterId: "string",
        password: "string",
        availabilityZone: "string",
        dataDiskType: "string",
        machineType: "string",
        dataDiskSize: 0,
        chargeType: "string",
        deleteDisksWithInstance: false,
        disableScheduleOnCreate: false,
        duration: 0,
        imageId: "string",
        initScript: "string",
        instanceType: "string",
        isolationGroup: "string",
        cpu: 0,
        memory: 0,
        minCpuPlatform: "string",
        nodeGroupId: "string",
        bootDiskType: "string",
        subnetId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        uhostFamily: "string",
        uk8sNodeId: "string",
        userData: "string",
    });
    
    type: ucloud:Uk8sNode
    properties:
        availabilityZone: string
        bootDiskType: string
        chargeType: string
        clusterId: string
        cpu: 0
        dataDiskSize: 0
        dataDiskType: string
        deleteDisksWithInstance: false
        disableScheduleOnCreate: false
        duration: 0
        imageId: string
        initScript: string
        instanceType: string
        isolationGroup: string
        machineType: string
        memory: 0
        minCpuPlatform: string
        nodeGroupId: string
        password: string
        subnetId: string
        timeouts:
            create: string
            delete: string
            update: string
        uhostFamily: 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
    ClusterId string
    Password string
    BootDiskType string
    ChargeType string
    Cpu double
    DataDiskSize double
    DataDiskType string
    DeleteDisksWithInstance bool
    DisableScheduleOnCreate bool
    Duration double
    ImageId string
    InitScript string
    InstanceType string
    IsolationGroup string
    MachineType string
    Memory double
    MinCpuPlatform string
    NodeGroupId string
    SubnetId string
    Timeouts Uk8sNodeTimeouts
    UhostFamily string
    Uk8sNodeId string
    The ID of the resource instance.
    UserData string
    AvailabilityZone string
    ClusterId string
    Password string
    BootDiskType string
    ChargeType string
    Cpu float64
    DataDiskSize float64
    DataDiskType string
    DeleteDisksWithInstance bool
    DisableScheduleOnCreate bool
    Duration float64
    ImageId string
    InitScript string
    InstanceType string
    IsolationGroup string
    MachineType string
    Memory float64
    MinCpuPlatform string
    NodeGroupId string
    SubnetId string
    Timeouts Uk8sNodeTimeoutsArgs
    UhostFamily string
    Uk8sNodeId string
    The ID of the resource instance.
    UserData string
    availabilityZone String
    clusterId String
    password String
    bootDiskType String
    chargeType String
    cpu Double
    dataDiskSize Double
    dataDiskType String
    deleteDisksWithInstance Boolean
    disableScheduleOnCreate Boolean
    duration Double
    imageId String
    initScript String
    instanceType String
    isolationGroup String
    machineType String
    memory Double
    minCpuPlatform String
    nodeGroupId String
    subnetId String
    timeouts Uk8sNodeTimeouts
    uhostFamily String
    uk8sNodeId String
    The ID of the resource instance.
    userData String
    availabilityZone string
    clusterId string
    password string
    bootDiskType string
    chargeType string
    cpu number
    dataDiskSize number
    dataDiskType string
    deleteDisksWithInstance boolean
    disableScheduleOnCreate boolean
    duration number
    imageId string
    initScript string
    instanceType string
    isolationGroup string
    machineType string
    memory number
    minCpuPlatform string
    nodeGroupId string
    subnetId string
    timeouts Uk8sNodeTimeouts
    uhostFamily string
    uk8sNodeId string
    The ID of the resource instance.
    userData string
    availabilityZone String
    clusterId String
    password String
    bootDiskType String
    chargeType String
    cpu Number
    dataDiskSize Number
    dataDiskType String
    deleteDisksWithInstance Boolean
    disableScheduleOnCreate Boolean
    duration Number
    imageId String
    initScript String
    instanceType String
    isolationGroup String
    machineType String
    memory Number
    minCpuPlatform String
    nodeGroupId String
    subnetId String
    timeouts Property Map
    uhostFamily String
    uk8sNodeId String
    The ID of the resource instance.
    userData String

    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.
    create_time string
    The time of creation for instance, formatted in RFC3339 time string.
    expire_time string
    The expiration time for instance, formatted in RFC3339 time string.
    id string
    The provider-assigned unique ID for this managed resource.
    ip_sets list(object)
    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,
            cpu: Optional[float] = 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,
            machine_type: Optional[str] = None,
            memory: Optional[float] = None,
            min_cpu_platform: Optional[str] = None,
            node_group_id: Optional[str] = None,
            password: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            timeouts: Optional[Uk8sNodeTimeoutsArgs] = None,
            uhost_family: Optional[str] = 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}
    import {
      to = ucloud_uk8s_node.example
      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
    BootDiskType string
    ChargeType string
    ClusterId string
    Cpu double
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    DataDiskSize double
    DataDiskType string
    DeleteDisksWithInstance bool
    DisableScheduleOnCreate bool
    Duration double
    ExpireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    ImageId string
    InitScript string
    InstanceType string
    IpSets List<Uk8sNodeIpSet>
    It is a nested type which documented below.
    IsolationGroup string
    MachineType string
    Memory double
    MinCpuPlatform string
    NodeGroupId string
    Password string
    Status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    SubnetId string
    Timeouts Uk8sNodeTimeouts
    UhostFamily string
    Uk8sNodeId string
    The ID of the resource instance.
    UserData string
    AvailabilityZone string
    BootDiskType string
    ChargeType string
    ClusterId string
    Cpu float64
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    DataDiskSize float64
    DataDiskType string
    DeleteDisksWithInstance bool
    DisableScheduleOnCreate bool
    Duration float64
    ExpireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    ImageId string
    InitScript string
    InstanceType string
    IpSets []Uk8sNodeIpSetArgs
    It is a nested type which documented below.
    IsolationGroup string
    MachineType string
    Memory float64
    MinCpuPlatform string
    NodeGroupId string
    Password string
    Status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    SubnetId string
    Timeouts Uk8sNodeTimeoutsArgs
    UhostFamily string
    Uk8sNodeId string
    The ID of the resource instance.
    UserData string
    availability_zone string
    boot_disk_type string
    charge_type string
    cluster_id string
    cpu number
    create_time string
    The time of creation for instance, formatted in RFC3339 time string.
    data_disk_size number
    data_disk_type string
    delete_disks_with_instance bool
    disable_schedule_on_create bool
    duration number
    expire_time string
    The expiration time for instance, formatted in RFC3339 time string.
    image_id string
    init_script string
    instance_type string
    ip_sets list(object)
    It is a nested type which documented below.
    isolation_group string
    machine_type string
    memory number
    min_cpu_platform string
    node_group_id string
    password string
    status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    subnet_id string
    timeouts object
    uhost_family string
    uk8s_node_id string
    The ID of the resource instance.
    user_data string
    availabilityZone String
    bootDiskType String
    chargeType String
    clusterId String
    cpu Double
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    dataDiskSize Double
    dataDiskType String
    deleteDisksWithInstance Boolean
    disableScheduleOnCreate Boolean
    duration Double
    expireTime String
    The expiration time for instance, formatted in RFC3339 time string.
    imageId String
    initScript String
    instanceType String
    ipSets List<Uk8sNodeIpSet>
    It is a nested type which documented below.
    isolationGroup String
    machineType String
    memory Double
    minCpuPlatform String
    nodeGroupId String
    password String
    status String
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    subnetId String
    timeouts Uk8sNodeTimeouts
    uhostFamily String
    uk8sNodeId String
    The ID of the resource instance.
    userData String
    availabilityZone string
    bootDiskType string
    chargeType string
    clusterId string
    cpu number
    createTime string
    The time of creation for instance, formatted in RFC3339 time string.
    dataDiskSize number
    dataDiskType string
    deleteDisksWithInstance boolean
    disableScheduleOnCreate boolean
    duration number
    expireTime string
    The expiration time for instance, formatted in RFC3339 time string.
    imageId string
    initScript string
    instanceType string
    ipSets Uk8sNodeIpSet[]
    It is a nested type which documented below.
    isolationGroup string
    machineType string
    memory number
    minCpuPlatform string
    nodeGroupId string
    password string
    status string
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    subnetId string
    timeouts Uk8sNodeTimeouts
    uhostFamily string
    uk8sNodeId string
    The ID of the resource instance.
    userData string
    availability_zone str
    boot_disk_type str
    charge_type str
    cluster_id str
    cpu float
    create_time str
    The time of creation for instance, formatted in RFC3339 time string.
    data_disk_size float
    data_disk_type str
    delete_disks_with_instance bool
    disable_schedule_on_create bool
    duration float
    expire_time str
    The expiration time for instance, formatted in RFC3339 time string.
    image_id str
    init_script str
    instance_type str
    ip_sets Sequence[Uk8sNodeIpSetArgs]
    It is a nested type which documented below.
    isolation_group str
    machine_type str
    memory float
    min_cpu_platform str
    node_group_id str
    password str
    status str
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    subnet_id str
    timeouts Uk8sNodeTimeoutsArgs
    uhost_family str
    uk8s_node_id str
    The ID of the resource instance.
    user_data str
    availabilityZone String
    bootDiskType String
    chargeType String
    clusterId String
    cpu Number
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    dataDiskSize Number
    dataDiskType String
    deleteDisksWithInstance Boolean
    disableScheduleOnCreate Boolean
    duration Number
    expireTime String
    The expiration time for instance, formatted in RFC3339 time string.
    imageId String
    initScript String
    instanceType String
    ipSets List<Property Map>
    It is a nested type which documented below.
    isolationGroup String
    machineType String
    memory Number
    minCpuPlatform String
    nodeGroupId String
    password String
    status String
    Instance current status. Possible values are Initializing, Starting, Running, Stopping, Deleting, ToBeDeleted, Stopped, Install Fail and Error.
    subnetId String
    timeouts Property Map
    uhostFamily String
    uk8sNodeId String
    The ID of the resource instance.
    userData String

    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.
    internet_type 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 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.
    Viewing docs for ucloud 1.42.0
    published on Friday, Sep 11, 2026 by ucloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial