1. Registry
  2. Packages
  3. Ucloud Provider
  4. API Docs
  5. Uk8sCluster
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 Cluster 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-cluster",
        tag: "tf-acc",
        cidrBlocks: ["192.168.0.0/16"],
    });
    const fooSubnet = new ucloud.Subnet("foo", {
        name: "tf-acc-uk8s-cluster",
        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-cluster-basic-update",
        serviceCidr: "172.16.0.0/16",
        cniMode: "VPC",
        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),
            ],
            machineType: "N",
            cpu: 2,
            memory: 4096,
        },
    });
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    foo = ucloud.Vpc("foo",
        name="tf-acc-uk8s-cluster",
        tag="tf-acc",
        cidr_blocks=["192.168.0.0/16"])
    foo_subnet = ucloud.Subnet("foo",
        name="tf-acc-uk8s-cluster",
        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-cluster-basic-update",
        service_cidr="172.16.0.0/16",
        cni_mode="VPC",
        password="ucloud_2021",
        charge_type="dynamic",
        master={
            "availability_zones": [
                default.zones[0].id,
                default.zones[0].id,
                default.zones[0].id,
            ],
            "machine_type": "N",
            "cpu": 2,
            "memory": 4096,
        })
    
    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-cluster"),
    			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-cluster"),
    			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
    		}
    		_, err = ucloud.NewUk8sCluster(ctx, "foo", &ucloud.Uk8sClusterArgs{
    			VpcId:       foo.VpcId,
    			SubnetId:    fooSubnet.SubnetId,
    			Name:        pulumi.String("tf-acc-uk8s-cluster-basic-update"),
    			ServiceCidr: pulumi.String("172.16.0.0/16"),
    			CniMode:     pulumi.String("VPC"),
    			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),
    				},
    				MachineType: pulumi.String("N"),
    				Cpu:         pulumi.Float64(2),
    				Memory:      pulumi.Float64(4096),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		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-cluster",
            Tag = "tf-acc",
            CidrBlocks = new[]
            {
                "192.168.0.0/16",
            },
        });
    
        var fooSubnet = new Ucloud.Subnet("foo", new()
        {
            Name = "tf-acc-uk8s-cluster",
            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-cluster-basic-update",
            ServiceCidr = "172.16.0.0/16",
            CniMode = "VPC",
            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)),
                },
                MachineType = "N",
                Cpu = 2,
                Memory = 4096,
            },
        });
    
    });
    
    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 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-cluster")
                .tag("tf-acc")
                .cidrBlocks("192.168.0.0/16")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
                .name("tf-acc-uk8s-cluster")
                .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-cluster-basic-update")
                .serviceCidr("172.16.0.0/16")
                .cniMode("VPC")
                .password("ucloud_2021")
                .chargeType("dynamic")
                .master(Uk8sClusterMasterArgs.builder()
                    .availabilityZones(                
                        default_.zones()[0].id(),
                        default_.zones()[0].id(),
                        default_.zones()[0].id())
                    .machineType("N")
                    .cpu(2.0)
                    .memory(4096.0)
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: ucloud:Vpc
        properties:
          name: tf-acc-uk8s-cluster
          tag: tf-acc
          cidrBlocks:
            - 192.168.0.0/16
      fooSubnet:
        type: ucloud:Subnet
        name: foo
        properties:
          name: tf-acc-uk8s-cluster
          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-cluster-basic-update
          serviceCidr: 172.16.0.0/16
          cniMode: VPC
          password: ucloud_2021
          chargeType: dynamic
          master:
            availabilityZones:
              - ${default.zones[0].id}
              - ${default.zones[0].id}
              - ${default.zones[0].id}
            machineType: N
            cpu: 2
            memory: 4096
    variables:
      default:
        fn::invoke:
          function: ucloud:getZones
          arguments: {}
    
    Example coming soon!
    

    Create Uk8sCluster Resource

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

    Constructor syntax

    new Uk8sCluster(name: string, args: Uk8sClusterArgs, opts?: CustomResourceOptions);
    @overload
    def Uk8sCluster(resource_name: str,
                    args: Uk8sClusterArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Uk8sCluster(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    master: Optional[Uk8sClusterMasterArgs] = None,
                    vpc_id: Optional[str] = None,
                    subnet_id: Optional[str] = None,
                    service_cidr: Optional[str] = None,
                    password: Optional[str] = None,
                    enable_external_api_server: Optional[bool] = None,
                    duration: Optional[float] = None,
                    k8s_version: Optional[str] = None,
                    kube_proxy: Optional[Uk8sClusterKubeProxyArgs] = None,
                    image_id: Optional[str] = None,
                    name: Optional[str] = None,
                    charge_type: Optional[str] = None,
                    init_script: Optional[str] = None,
                    delete_disks_with_instance: Optional[bool] = None,
                    timeouts: Optional[Uk8sClusterTimeoutsArgs] = None,
                    uk8s_cluster_id: Optional[str] = None,
                    user_data: Optional[str] = None,
                    cni_mode: Optional[str] = None,
                    workers: Optional[Sequence[Uk8sClusterWorkerArgs]] = None)
    func NewUk8sCluster(ctx *Context, name string, args Uk8sClusterArgs, opts ...ResourceOption) (*Uk8sCluster, error)
    public Uk8sCluster(string name, Uk8sClusterArgs args, CustomResourceOptions? opts = null)
    public Uk8sCluster(String name, Uk8sClusterArgs args)
    public Uk8sCluster(String name, Uk8sClusterArgs args, CustomResourceOptions options)
    
    type: ucloud:Uk8sCluster
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ucloud_uk8s_cluster" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args Uk8sClusterArgs
    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 Uk8sClusterArgs
    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 Uk8sClusterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Uk8sClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Uk8sClusterArgs
    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 uk8sClusterResource = new Ucloud.Uk8sCluster("uk8sClusterResource", new()
    {
        Master = new Ucloud.Inputs.Uk8sClusterMasterArgs
        {
            AvailabilityZones = new[]
            {
                "string",
            },
            BootDiskSize = 0.0,
            BootDiskType = "string",
            Cpu = 0.0,
            DataDiskSize = 0.0,
            DataDiskType = "string",
            ImageId = "string",
            InstanceType = "string",
            MachineType = "string",
            Memory = 0.0,
            MinCpuPlatform = "string",
            UhostFamily = "string",
        },
        VpcId = "string",
        SubnetId = "string",
        ServiceCidr = "string",
        Password = "string",
        EnableExternalApiServer = false,
        Duration = 0.0,
        K8sVersion = "string",
        KubeProxy = new Ucloud.Inputs.Uk8sClusterKubeProxyArgs
        {
            Mode = "string",
        },
        ImageId = "string",
        Name = "string",
        ChargeType = "string",
        InitScript = "string",
        DeleteDisksWithInstance = false,
        Timeouts = new Ucloud.Inputs.Uk8sClusterTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Uk8sClusterId = "string",
        UserData = "string",
        CniMode = "string",
        Workers = new[]
        {
            new Ucloud.Inputs.Uk8sClusterWorkerArgs
            {
                Cpu = 0.0,
                Memory = 0.0,
                MachineType = "string",
                AvailabilityZone = "string",
                GpuType = "string",
                BootDiskType = "string",
                DataDiskType = "string",
                Gpu = 0.0,
                Count = 0.0,
                ImageId = "string",
                Labels = 
                {
                    { "string", "string" },
                },
                DataDiskSize = 0.0,
                MaxPods = 0.0,
                BootDiskSize = 0.0,
                MinCpuPlatform = "string",
                SecurityGroupId = "string",
                Taints = new[]
                {
                    new Ucloud.Inputs.Uk8sClusterWorkerTaintArgs
                    {
                        Effect = "string",
                        Key = "string",
                        Value = "string",
                    },
                },
                UhostFamily = "string",
            },
        },
    });
    
    example, err := ucloud.NewUk8sCluster(ctx, "uk8sClusterResource", &ucloud.Uk8sClusterArgs{
    	Master: &ucloud.Uk8sClusterMasterArgs{
    		AvailabilityZones: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		BootDiskSize:   pulumi.Float64(0),
    		BootDiskType:   pulumi.String("string"),
    		Cpu:            pulumi.Float64(0),
    		DataDiskSize:   pulumi.Float64(0),
    		DataDiskType:   pulumi.String("string"),
    		ImageId:        pulumi.String("string"),
    		InstanceType:   pulumi.String("string"),
    		MachineType:    pulumi.String("string"),
    		Memory:         pulumi.Float64(0),
    		MinCpuPlatform: pulumi.String("string"),
    		UhostFamily:    pulumi.String("string"),
    	},
    	VpcId:                   pulumi.String("string"),
    	SubnetId:                pulumi.String("string"),
    	ServiceCidr:             pulumi.String("string"),
    	Password:                pulumi.String("string"),
    	EnableExternalApiServer: pulumi.Bool(false),
    	Duration:                pulumi.Float64(0),
    	K8sVersion:              pulumi.String("string"),
    	KubeProxy: &ucloud.Uk8sClusterKubeProxyArgs{
    		Mode: pulumi.String("string"),
    	},
    	ImageId:                 pulumi.String("string"),
    	Name:                    pulumi.String("string"),
    	ChargeType:              pulumi.String("string"),
    	InitScript:              pulumi.String("string"),
    	DeleteDisksWithInstance: pulumi.Bool(false),
    	Timeouts: &ucloud.Uk8sClusterTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Uk8sClusterId: pulumi.String("string"),
    	UserData:      pulumi.String("string"),
    	CniMode:       pulumi.String("string"),
    	Workers: ucloud.Uk8sClusterWorkerArray{
    		&ucloud.Uk8sClusterWorkerArgs{
    			Cpu:              pulumi.Float64(0),
    			Memory:           pulumi.Float64(0),
    			MachineType:      pulumi.String("string"),
    			AvailabilityZone: pulumi.String("string"),
    			GpuType:          pulumi.String("string"),
    			BootDiskType:     pulumi.String("string"),
    			DataDiskType:     pulumi.String("string"),
    			Gpu:              pulumi.Float64(0),
    			Count:            pulumi.Float64(0),
    			ImageId:          pulumi.String("string"),
    			Labels: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			DataDiskSize:    pulumi.Float64(0),
    			MaxPods:         pulumi.Float64(0),
    			BootDiskSize:    pulumi.Float64(0),
    			MinCpuPlatform:  pulumi.String("string"),
    			SecurityGroupId: pulumi.String("string"),
    			Taints: ucloud.Uk8sClusterWorkerTaintArray{
    				&ucloud.Uk8sClusterWorkerTaintArgs{
    					Effect: pulumi.String("string"),
    					Key:    pulumi.String("string"),
    					Value:  pulumi.String("string"),
    				},
    			},
    			UhostFamily: pulumi.String("string"),
    		},
    	},
    })
    
    resource "ucloud_uk8s_cluster" "uk8sClusterResource" {
      lifecycle {
        create_before_destroy = true
      }
      master = {
        availability_zones = ["string"]
        boot_disk_size     = 0
        boot_disk_type     = "string"
        cpu                = 0
        data_disk_size     = 0
        data_disk_type     = "string"
        image_id           = "string"
        instance_type      = "string"
        machine_type       = "string"
        memory             = 0
        min_cpu_platform   = "string"
        uhost_family       = "string"
      }
      vpc_id                     = "string"
      subnet_id                  = "string"
      service_cidr               = "string"
      password                   = "string"
      enable_external_api_server = false
      duration                   = 0
      k8s_version                = "string"
      kube_proxy = {
        mode = "string"
      }
      image_id                   = "string"
      name                       = "string"
      charge_type                = "string"
      init_script                = "string"
      delete_disks_with_instance = false
      timeouts = {
        create = "string"
        delete = "string"
        update = "string"
      }
      uk8s_cluster_id = "string"
      user_data       = "string"
      cni_mode        = "string"
      workers {
        cpu               = 0
        memory            = 0
        machine_type      = "string"
        availability_zone = "string"
        gpu_type          = "string"
        boot_disk_type    = "string"
        data_disk_type    = "string"
        gpu               = 0
        count             = 0
        image_id          = "string"
        labels = {
          "string" = "string"
        }
        data_disk_size    = 0
        max_pods          = 0
        boot_disk_size    = 0
        min_cpu_platform  = "string"
        security_group_id = "string"
        taints {
          effect = "string"
          key    = "string"
          value  = "string"
        }
        uhost_family = "string"
      }
    }
    
    var uk8sClusterResource = new Uk8sCluster("uk8sClusterResource", Uk8sClusterArgs.builder()
        .master(Uk8sClusterMasterArgs.builder()
            .availabilityZones("string")
            .bootDiskSize(0.0)
            .bootDiskType("string")
            .cpu(0.0)
            .dataDiskSize(0.0)
            .dataDiskType("string")
            .imageId("string")
            .instanceType("string")
            .machineType("string")
            .memory(0.0)
            .minCpuPlatform("string")
            .uhostFamily("string")
            .build())
        .vpcId("string")
        .subnetId("string")
        .serviceCidr("string")
        .password("string")
        .enableExternalApiServer(false)
        .duration(0.0)
        .k8sVersion("string")
        .kubeProxy(Uk8sClusterKubeProxyArgs.builder()
            .mode("string")
            .build())
        .imageId("string")
        .name("string")
        .chargeType("string")
        .initScript("string")
        .deleteDisksWithInstance(false)
        .timeouts(Uk8sClusterTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .uk8sClusterId("string")
        .userData("string")
        .cniMode("string")
        .workers(Uk8sClusterWorkerArgs.builder()
            .cpu(0.0)
            .memory(0.0)
            .machineType("string")
            .availabilityZone("string")
            .gpuType("string")
            .bootDiskType("string")
            .dataDiskType("string")
            .gpu(0.0)
            .count(0.0)
            .imageId("string")
            .labels(Map.of("string", "string"))
            .dataDiskSize(0.0)
            .maxPods(0.0)
            .bootDiskSize(0.0)
            .minCpuPlatform("string")
            .securityGroupId("string")
            .taints(Uk8sClusterWorkerTaintArgs.builder()
                .effect("string")
                .key("string")
                .value("string")
                .build())
            .uhostFamily("string")
            .build())
        .build());
    
    uk8s_cluster_resource = ucloud.Uk8sCluster("uk8sClusterResource",
        master={
            "availability_zones": ["string"],
            "boot_disk_size": float(0),
            "boot_disk_type": "string",
            "cpu": float(0),
            "data_disk_size": float(0),
            "data_disk_type": "string",
            "image_id": "string",
            "instance_type": "string",
            "machine_type": "string",
            "memory": float(0),
            "min_cpu_platform": "string",
            "uhost_family": "string",
        },
        vpc_id="string",
        subnet_id="string",
        service_cidr="string",
        password="string",
        enable_external_api_server=False,
        duration=float(0),
        k8s_version="string",
        kube_proxy={
            "mode": "string",
        },
        image_id="string",
        name="string",
        charge_type="string",
        init_script="string",
        delete_disks_with_instance=False,
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        uk8s_cluster_id="string",
        user_data="string",
        cni_mode="string",
        workers=[{
            "cpu": float(0),
            "memory": float(0),
            "machine_type": "string",
            "availability_zone": "string",
            "gpu_type": "string",
            "boot_disk_type": "string",
            "data_disk_type": "string",
            "gpu": float(0),
            "count": float(0),
            "image_id": "string",
            "labels": {
                "string": "string",
            },
            "data_disk_size": float(0),
            "max_pods": float(0),
            "boot_disk_size": float(0),
            "min_cpu_platform": "string",
            "security_group_id": "string",
            "taints": [{
                "effect": "string",
                "key": "string",
                "value": "string",
            }],
            "uhost_family": "string",
        }])
    
    const uk8sClusterResource = new ucloud.Uk8sCluster("uk8sClusterResource", {
        master: {
            availabilityZones: ["string"],
            bootDiskSize: 0,
            bootDiskType: "string",
            cpu: 0,
            dataDiskSize: 0,
            dataDiskType: "string",
            imageId: "string",
            instanceType: "string",
            machineType: "string",
            memory: 0,
            minCpuPlatform: "string",
            uhostFamily: "string",
        },
        vpcId: "string",
        subnetId: "string",
        serviceCidr: "string",
        password: "string",
        enableExternalApiServer: false,
        duration: 0,
        k8sVersion: "string",
        kubeProxy: {
            mode: "string",
        },
        imageId: "string",
        name: "string",
        chargeType: "string",
        initScript: "string",
        deleteDisksWithInstance: false,
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        uk8sClusterId: "string",
        userData: "string",
        cniMode: "string",
        workers: [{
            cpu: 0,
            memory: 0,
            machineType: "string",
            availabilityZone: "string",
            gpuType: "string",
            bootDiskType: "string",
            dataDiskType: "string",
            gpu: 0,
            count: 0,
            imageId: "string",
            labels: {
                string: "string",
            },
            dataDiskSize: 0,
            maxPods: 0,
            bootDiskSize: 0,
            minCpuPlatform: "string",
            securityGroupId: "string",
            taints: [{
                effect: "string",
                key: "string",
                value: "string",
            }],
            uhostFamily: "string",
        }],
    });
    
    type: ucloud:Uk8sCluster
    properties:
        chargeType: string
        cniMode: string
        deleteDisksWithInstance: false
        duration: 0
        enableExternalApiServer: false
        imageId: string
        initScript: string
        k8sVersion: string
        kubeProxy:
            mode: string
        master:
            availabilityZones:
                - string
            bootDiskSize: 0
            bootDiskType: string
            cpu: 0
            dataDiskSize: 0
            dataDiskType: string
            imageId: string
            instanceType: string
            machineType: string
            memory: 0
            minCpuPlatform: string
            uhostFamily: string
        name: string
        password: string
        serviceCidr: string
        subnetId: string
        timeouts:
            create: string
            delete: string
            update: string
        uk8sClusterId: string
        userData: string
        vpcId: string
        workers:
            - availabilityZone: string
              bootDiskSize: 0
              bootDiskType: string
              count: 0
              cpu: 0
              dataDiskSize: 0
              dataDiskType: string
              gpu: 0
              gpuType: string
              imageId: string
              labels:
                string: string
              machineType: string
              maxPods: 0
              memory: 0
              minCpuPlatform: string
              securityGroupId: string
              taints:
                - effect: string
                  key: string
                  value: string
              uhostFamily: string
    

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

    Master Uk8sClusterMaster
    The configuration of master, See master for details of attributes.
    Password string
    ServiceCidr string
    The CIDR block of k8s service.
    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.
    VpcId string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    ChargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    CniMode string
    DeleteDisksWithInstance bool
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    EnableExternalApiServer bool
    If expose the api server endpoint for external visiting.
    ImageId string
    The default image ID. master.image_id takes precedence for Master nodes.
    InitScript string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    K8sVersion string
    The version of k8s. See also Create UK8S.
    KubeProxy Uk8sClusterKubeProxy
    The configuration of kube proxy, See kube proxy for details of attributes.
    Name string
    Timeouts Uk8sClusterTimeouts
    Uk8sClusterId 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
    Workers List<Uk8sClusterWorker>
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.
    Master Uk8sClusterMasterArgs
    The configuration of master, See master for details of attributes.
    Password string
    ServiceCidr string
    The CIDR block of k8s service.
    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.
    VpcId string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    ChargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    CniMode string
    DeleteDisksWithInstance bool
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    EnableExternalApiServer bool
    If expose the api server endpoint for external visiting.
    ImageId string
    The default image ID. master.image_id takes precedence for Master nodes.
    InitScript string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    K8sVersion string
    The version of k8s. See also Create UK8S.
    KubeProxy Uk8sClusterKubeProxyArgs
    The configuration of kube proxy, See kube proxy for details of attributes.
    Name string
    Timeouts Uk8sClusterTimeoutsArgs
    Uk8sClusterId 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
    Workers []Uk8sClusterWorkerArgs
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.
    master object
    The configuration of master, See master for details of attributes.
    password string
    service_cidr string
    The CIDR block of k8s service.
    subnet_id 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.
    vpc_id string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    charge_type string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    cni_mode string
    delete_disks_with_instance bool
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    enable_external_api_server bool
    If expose the api server endpoint for external visiting.
    image_id string
    The default image ID. master.image_id takes precedence for Master nodes.
    init_script string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    k8s_version string
    The version of k8s. See also Create UK8S.
    kube_proxy object
    The configuration of kube proxy, See kube proxy for details of attributes.
    name string
    timeouts object
    uk8s_cluster_id string
    The ID of the resource instance.
    user_data string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    workers list(object)
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.
    master Uk8sClusterMaster
    The configuration of master, See master for details of attributes.
    password String
    serviceCidr String
    The CIDR block of k8s service.
    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.
    vpcId String
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    chargeType String
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    cniMode String
    deleteDisksWithInstance Boolean
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    enableExternalApiServer Boolean
    If expose the api server endpoint for external visiting.
    imageId String
    The default image ID. master.image_id takes precedence for Master nodes.
    initScript String
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    k8sVersion String
    The version of k8s. See also Create UK8S.
    kubeProxy Uk8sClusterKubeProxy
    The configuration of kube proxy, See kube proxy for details of attributes.
    name String
    timeouts Uk8sClusterTimeouts
    uk8sClusterId 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
    workers List<Uk8sClusterWorker>
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.
    master Uk8sClusterMaster
    The configuration of master, See master for details of attributes.
    password string
    serviceCidr string
    The CIDR block of k8s service.
    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.
    vpcId string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    chargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    cniMode string
    deleteDisksWithInstance boolean
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    enableExternalApiServer boolean
    If expose the api server endpoint for external visiting.
    imageId string
    The default image ID. master.image_id takes precedence for Master nodes.
    initScript string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    k8sVersion string
    The version of k8s. See also Create UK8S.
    kubeProxy Uk8sClusterKubeProxy
    The configuration of kube proxy, See kube proxy for details of attributes.
    name string
    timeouts Uk8sClusterTimeouts
    uk8sClusterId 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
    workers Uk8sClusterWorker[]
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.
    master Uk8sClusterMasterArgs
    The configuration of master, See master for details of attributes.
    password str
    service_cidr str
    The CIDR block of k8s service.
    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.
    vpc_id str
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    charge_type str
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    cni_mode str
    delete_disks_with_instance bool
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    enable_external_api_server bool
    If expose the api server endpoint for external visiting.
    image_id str
    The default image ID. master.image_id takes precedence for Master nodes.
    init_script str
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    k8s_version str
    The version of k8s. See also Create UK8S.
    kube_proxy Uk8sClusterKubeProxyArgs
    The configuration of kube proxy, See kube proxy for details of attributes.
    name str
    timeouts Uk8sClusterTimeoutsArgs
    uk8s_cluster_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
    workers Sequence[Uk8sClusterWorkerArgs]
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.
    master Property Map
    The configuration of master, See master for details of attributes.
    password String
    serviceCidr String
    The CIDR block of k8s service.
    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.
    vpcId String
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    chargeType String
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    cniMode String
    deleteDisksWithInstance Boolean
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    enableExternalApiServer Boolean
    If expose the api server endpoint for external visiting.
    imageId String
    The default image ID. master.image_id takes precedence for Master nodes.
    initScript String
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    k8sVersion String
    The version of k8s. See also Create UK8S.
    kubeProxy Property Map
    The configuration of kube proxy, See kube proxy for details of attributes.
    name String
    timeouts Property Map
    uk8sClusterId 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
    workers List<Property Map>
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.

    Outputs

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

    ApiServer string
    The api server endpoint in cluster.
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    ExternalApiServer string
    The api server endpoint for external visiting.
    ExternalKubeconfig string
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kubeconfig string
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    PodCidr string
    The CIDR block of pod network.
    Status string
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    ApiServer string
    The api server endpoint in cluster.
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    ExternalApiServer string
    The api server endpoint for external visiting.
    ExternalKubeconfig string
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kubeconfig string
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    PodCidr string
    The CIDR block of pod network.
    Status string
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    api_server string
    The api server endpoint in cluster.
    create_time string
    The time of creation for instance, formatted in RFC3339 time string.
    external_api_server string
    The api server endpoint for external visiting.
    external_kubeconfig string
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    id string
    The provider-assigned unique ID for this managed resource.
    kubeconfig string
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    pod_cidr string
    The CIDR block of pod network.
    status string
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    apiServer String
    The api server endpoint in cluster.
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    externalApiServer String
    The api server endpoint for external visiting.
    externalKubeconfig String
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    id String
    The provider-assigned unique ID for this managed resource.
    kubeconfig String
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    podCidr String
    The CIDR block of pod network.
    status String
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    apiServer string
    The api server endpoint in cluster.
    createTime string
    The time of creation for instance, formatted in RFC3339 time string.
    externalApiServer string
    The api server endpoint for external visiting.
    externalKubeconfig string
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    id string
    The provider-assigned unique ID for this managed resource.
    kubeconfig string
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    podCidr string
    The CIDR block of pod network.
    status string
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    api_server str
    The api server endpoint in cluster.
    create_time str
    The time of creation for instance, formatted in RFC3339 time string.
    external_api_server str
    The api server endpoint for external visiting.
    external_kubeconfig str
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    id str
    The provider-assigned unique ID for this managed resource.
    kubeconfig str
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    pod_cidr str
    The CIDR block of pod network.
    status str
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    apiServer String
    The api server endpoint in cluster.
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    externalApiServer String
    The api server endpoint for external visiting.
    externalKubeconfig String
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    id String
    The provider-assigned unique ID for this managed resource.
    kubeconfig String
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    podCidr String
    The CIDR block of pod network.
    status String
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.

    Look up Existing Uk8sCluster Resource

    Get an existing Uk8sCluster 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?: Uk8sClusterState, opts?: CustomResourceOptions): Uk8sCluster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_server: Optional[str] = None,
            charge_type: Optional[str] = None,
            cni_mode: Optional[str] = None,
            create_time: Optional[str] = None,
            delete_disks_with_instance: Optional[bool] = None,
            duration: Optional[float] = None,
            enable_external_api_server: Optional[bool] = None,
            external_api_server: Optional[str] = None,
            external_kubeconfig: Optional[str] = None,
            image_id: Optional[str] = None,
            init_script: Optional[str] = None,
            k8s_version: Optional[str] = None,
            kube_proxy: Optional[Uk8sClusterKubeProxyArgs] = None,
            kubeconfig: Optional[str] = None,
            master: Optional[Uk8sClusterMasterArgs] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            pod_cidr: Optional[str] = None,
            service_cidr: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            timeouts: Optional[Uk8sClusterTimeoutsArgs] = None,
            uk8s_cluster_id: Optional[str] = None,
            user_data: Optional[str] = None,
            vpc_id: Optional[str] = None,
            workers: Optional[Sequence[Uk8sClusterWorkerArgs]] = None) -> Uk8sCluster
    func GetUk8sCluster(ctx *Context, name string, id IDInput, state *Uk8sClusterState, opts ...ResourceOption) (*Uk8sCluster, error)
    public static Uk8sCluster Get(string name, Input<string> id, Uk8sClusterState? state, CustomResourceOptions? opts = null)
    public static Uk8sCluster get(String name, Output<String> id, Uk8sClusterState state, CustomResourceOptions options)
    resources:  _:    type: ucloud:Uk8sCluster    get:      id: ${id}
    import {
      to = ucloud_uk8s_cluster.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:
    ApiServer string
    The api server endpoint in cluster.
    ChargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    CniMode string
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    DeleteDisksWithInstance bool
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    EnableExternalApiServer bool
    If expose the api server endpoint for external visiting.
    ExternalApiServer string
    The api server endpoint for external visiting.
    ExternalKubeconfig string
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    ImageId string
    The default image ID. master.image_id takes precedence for Master nodes.
    InitScript string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    K8sVersion string
    The version of k8s. See also Create UK8S.
    KubeProxy Uk8sClusterKubeProxy
    The configuration of kube proxy, See kube proxy for details of attributes.
    Kubeconfig string
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    Master Uk8sClusterMaster
    The configuration of master, See master for details of attributes.
    Name string
    Password string
    PodCidr string
    The CIDR block of pod network.
    ServiceCidr string
    The CIDR block of k8s service.
    Status string
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    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 Uk8sClusterTimeouts
    Uk8sClusterId 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
    VpcId string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    Workers List<Uk8sClusterWorker>
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.
    ApiServer string
    The api server endpoint in cluster.
    ChargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    CniMode string
    CreateTime string
    The time of creation for instance, formatted in RFC3339 time string.
    DeleteDisksWithInstance bool
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    EnableExternalApiServer bool
    If expose the api server endpoint for external visiting.
    ExternalApiServer string
    The api server endpoint for external visiting.
    ExternalKubeconfig string
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    ImageId string
    The default image ID. master.image_id takes precedence for Master nodes.
    InitScript string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    K8sVersion string
    The version of k8s. See also Create UK8S.
    KubeProxy Uk8sClusterKubeProxyArgs
    The configuration of kube proxy, See kube proxy for details of attributes.
    Kubeconfig string
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    Master Uk8sClusterMasterArgs
    The configuration of master, See master for details of attributes.
    Name string
    Password string
    PodCidr string
    The CIDR block of pod network.
    ServiceCidr string
    The CIDR block of k8s service.
    Status string
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    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 Uk8sClusterTimeoutsArgs
    Uk8sClusterId 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
    VpcId string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    Workers []Uk8sClusterWorkerArgs
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.
    api_server string
    The api server endpoint in cluster.
    charge_type string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    cni_mode string
    create_time string
    The time of creation for instance, formatted in RFC3339 time string.
    delete_disks_with_instance bool
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    enable_external_api_server bool
    If expose the api server endpoint for external visiting.
    external_api_server string
    The api server endpoint for external visiting.
    external_kubeconfig string
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    image_id string
    The default image ID. master.image_id takes precedence for Master nodes.
    init_script string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    k8s_version string
    The version of k8s. See also Create UK8S.
    kube_proxy object
    The configuration of kube proxy, See kube proxy for details of attributes.
    kubeconfig string
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    master object
    The configuration of master, See master for details of attributes.
    name string
    password string
    pod_cidr string
    The CIDR block of pod network.
    service_cidr string
    The CIDR block of k8s service.
    status string
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    subnet_id 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 object
    uk8s_cluster_id string
    The ID of the resource instance.
    user_data string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    vpc_id string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    workers list(object)
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.
    apiServer String
    The api server endpoint in cluster.
    chargeType String
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    cniMode String
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    deleteDisksWithInstance Boolean
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    enableExternalApiServer Boolean
    If expose the api server endpoint for external visiting.
    externalApiServer String
    The api server endpoint for external visiting.
    externalKubeconfig String
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    imageId String
    The default image ID. master.image_id takes precedence for Master nodes.
    initScript String
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    k8sVersion String
    The version of k8s. See also Create UK8S.
    kubeProxy Uk8sClusterKubeProxy
    The configuration of kube proxy, See kube proxy for details of attributes.
    kubeconfig String
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    master Uk8sClusterMaster
    The configuration of master, See master for details of attributes.
    name String
    password String
    podCidr String
    The CIDR block of pod network.
    serviceCidr String
    The CIDR block of k8s service.
    status String
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    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 Uk8sClusterTimeouts
    uk8sClusterId 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
    vpcId String
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    workers List<Uk8sClusterWorker>
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.
    apiServer string
    The api server endpoint in cluster.
    chargeType string
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    cniMode string
    createTime string
    The time of creation for instance, formatted in RFC3339 time string.
    deleteDisksWithInstance boolean
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    enableExternalApiServer boolean
    If expose the api server endpoint for external visiting.
    externalApiServer string
    The api server endpoint for external visiting.
    externalKubeconfig string
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    imageId string
    The default image ID. master.image_id takes precedence for Master nodes.
    initScript string
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    k8sVersion string
    The version of k8s. See also Create UK8S.
    kubeProxy Uk8sClusterKubeProxy
    The configuration of kube proxy, See kube proxy for details of attributes.
    kubeconfig string
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    master Uk8sClusterMaster
    The configuration of master, See master for details of attributes.
    name string
    password string
    podCidr string
    The CIDR block of pod network.
    serviceCidr string
    The CIDR block of k8s service.
    status string
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    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 Uk8sClusterTimeouts
    uk8sClusterId 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
    vpcId string
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    workers Uk8sClusterWorker[]
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.
    api_server str
    The api server endpoint in cluster.
    charge_type str
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    cni_mode str
    create_time str
    The time of creation for instance, formatted in RFC3339 time string.
    delete_disks_with_instance bool
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    enable_external_api_server bool
    If expose the api server endpoint for external visiting.
    external_api_server str
    The api server endpoint for external visiting.
    external_kubeconfig str
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    image_id str
    The default image ID. master.image_id takes precedence for Master nodes.
    init_script str
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    k8s_version str
    The version of k8s. See also Create UK8S.
    kube_proxy Uk8sClusterKubeProxyArgs
    The configuration of kube proxy, See kube proxy for details of attributes.
    kubeconfig str
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    master Uk8sClusterMasterArgs
    The configuration of master, See master for details of attributes.
    name str
    password str
    pod_cidr str
    The CIDR block of pod network.
    service_cidr str
    The CIDR block of k8s service.
    status str
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    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 Uk8sClusterTimeoutsArgs
    uk8s_cluster_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
    vpc_id str
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    workers Sequence[Uk8sClusterWorkerArgs]
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.
    apiServer String
    The api server endpoint in cluster.
    chargeType String
    The charge type of instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
    cniMode String
    createTime String
    The time of creation for instance, formatted in RFC3339 time string.
    deleteDisksWithInstance Boolean
    Whether the cloud data disks attached instance should be destroyed on instance termination.
    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).
    enableExternalApiServer Boolean
    If expose the api server endpoint for external visiting.
    externalApiServer String
    The api server endpoint for external visiting.
    externalKubeconfig String
    The kubeconfig for accessing the cluster through the external API server. This value is sensitive and may be empty when external API server access is disabled.
    imageId String
    The default image ID. master.image_id takes precedence for Master nodes.
    initScript String
    The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
    k8sVersion String
    The version of k8s. See also Create UK8S.
    kubeProxy Property Map
    The configuration of kube proxy, See kube proxy for details of attributes.
    kubeconfig String
    The kubeconfig for accessing the cluster through the internal API server. This value is sensitive.
    master Property Map
    The configuration of master, See master for details of attributes.
    name String
    password String
    podCidr String
    The CIDR block of pod network.
    serviceCidr String
    The CIDR block of k8s service.
    status String
    Instance current status. Possible values are RUNNING, CREATEFAILED, DELETEFAILED, ERROR and ABNORMAL.
    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
    uk8sClusterId 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
    vpcId String
    The ID of VPC linked to the instance. If not defined vpc_id, the instance will use the default VPC in the current region.
    workers List<Property Map>
    Repeatable initial Worker group configuration, sent as Nodes.N.* in CreateUK8SClusterV2. See worker.

    Supporting Types

    Uk8sClusterKubeProxy, Uk8sClusterKubeProxyArgs

    Mode string
    The type of instance, please visit the instance type table
    Mode string
    The type of instance, please visit the instance type table
    mode string
    The type of instance, please visit the instance type table
    mode String
    The type of instance, please visit the instance type table
    mode string
    The type of instance, please visit the instance type table
    mode str
    The type of instance, please visit the instance type table
    mode String
    The type of instance, please visit the instance type table

    Uk8sClusterMaster, Uk8sClusterMasterArgs

    AvailabilityZones List<string>
    Availability zone list where instance is located. such as: ["cn-bj2-02", "cn-bj2-03", "cn-bj2-05"]. You may refer to list of availability zone
    BootDiskSize double
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    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.
    Cpu double
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    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. (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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    ImageId string
    The Master image ID, sent as MasterImageId. When omitted, the API uses the top-level image_id or selects an available base image.
    InstanceType string
    The legacy specification, such as n-basic-2. Existing configurations remain supported with the original validation rules. Conflicts with machine_type, cpu, and memory.
    MachineType string
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    Memory double
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    UhostFamily string
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".
    AvailabilityZones []string
    Availability zone list where instance is located. such as: ["cn-bj2-02", "cn-bj2-03", "cn-bj2-05"]. You may refer to list of availability zone
    BootDiskSize float64
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    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.
    Cpu float64
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    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. (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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    ImageId string
    The Master image ID, sent as MasterImageId. When omitted, the API uses the top-level image_id or selects an available base image.
    InstanceType string
    The legacy specification, such as n-basic-2. Existing configurations remain supported with the original validation rules. Conflicts with machine_type, cpu, and memory.
    MachineType string
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    Memory float64
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    UhostFamily string
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".
    availability_zones list(string)
    Availability zone list where instance is located. such as: ["cn-bj2-02", "cn-bj2-03", "cn-bj2-05"]. You may refer to list of availability zone
    boot_disk_size number
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    boot_disk_type 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.
    cpu number
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    data_disk_size 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.
    data_disk_type string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data 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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    image_id string
    The Master image ID, sent as MasterImageId. When omitted, the API uses the top-level image_id or selects an available base image.
    instance_type string
    The legacy specification, such as n-basic-2. Existing configurations remain supported with the original validation rules. Conflicts with machine_type, cpu, and memory.
    machine_type string
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    memory number
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    min_cpu_platform 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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    uhost_family string
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".
    availabilityZones List<String>
    Availability zone list where instance is located. such as: ["cn-bj2-02", "cn-bj2-03", "cn-bj2-05"]. You may refer to list of availability zone
    bootDiskSize Double
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    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.
    cpu Double
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    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. (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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    imageId String
    The Master image ID, sent as MasterImageId. When omitted, the API uses the top-level image_id or selects an available base image.
    instanceType String
    The legacy specification, such as n-basic-2. Existing configurations remain supported with the original validation rules. Conflicts with machine_type, cpu, and memory.
    machineType String
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    memory Double
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    uhostFamily String
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".
    availabilityZones string[]
    Availability zone list where instance is located. such as: ["cn-bj2-02", "cn-bj2-03", "cn-bj2-05"]. You may refer to list of availability zone
    bootDiskSize number
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    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.
    cpu number
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    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. (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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    imageId string
    The Master image ID, sent as MasterImageId. When omitted, the API uses the top-level image_id or selects an available base image.
    instanceType string
    The legacy specification, such as n-basic-2. Existing configurations remain supported with the original validation rules. Conflicts with machine_type, cpu, and memory.
    machineType string
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    memory number
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    uhostFamily string
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".
    availability_zones Sequence[str]
    Availability zone list where instance is located. such as: ["cn-bj2-02", "cn-bj2-03", "cn-bj2-05"]. You may refer to list of availability zone
    boot_disk_size float
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    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.
    cpu float
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    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. (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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    image_id str
    The Master image ID, sent as MasterImageId. When omitted, the API uses the top-level image_id or selects an available base image.
    instance_type str
    The legacy specification, such as n-basic-2. Existing configurations remain supported with the original validation rules. Conflicts with machine_type, cpu, and memory.
    machine_type str
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    memory float
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    uhost_family str
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".
    availabilityZones List<String>
    Availability zone list where instance is located. such as: ["cn-bj2-02", "cn-bj2-03", "cn-bj2-05"]. You may refer to list of availability zone
    bootDiskSize Number
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    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.
    cpu Number
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    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. (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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    imageId String
    The Master image ID, sent as MasterImageId. When omitted, the API uses the top-level image_id or selects an available base image.
    instanceType String
    The legacy specification, such as n-basic-2. Existing configurations remain supported with the original validation rules. Conflicts with machine_type, cpu, and memory.
    machineType String
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    memory Number
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    uhostFamily String
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".

    Uk8sClusterTimeouts, Uk8sClusterTimeoutsArgs

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

    Uk8sClusterWorker, Uk8sClusterWorkerArgs

    AvailabilityZone string
    Cpu double
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    MachineType string
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    Memory double
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    BootDiskSize double
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    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.
    Count double
    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. (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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    Gpu double
    GpuType string
    ImageId string
    The default image ID. master.image_id takes precedence for Master nodes.
    Labels Dictionary<string, string>
    MaxPods double
    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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    SecurityGroupId string
    Taints List<Uk8sClusterWorkerTaint>
    UhostFamily string
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".
    AvailabilityZone string
    Cpu float64
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    MachineType string
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    Memory float64
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    BootDiskSize float64
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    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.
    Count float64
    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. (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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    Gpu float64
    GpuType string
    ImageId string
    The default image ID. master.image_id takes precedence for Master nodes.
    Labels map[string]string
    MaxPods float64
    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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    SecurityGroupId string
    Taints []Uk8sClusterWorkerTaint
    UhostFamily string
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".
    availability_zone string
    cpu number
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    machine_type string
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    memory number
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    boot_disk_size number
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    boot_disk_type 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.
    count number
    data_disk_size 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.
    data_disk_type string
    The type of local data disk. Possible values are: local_normal and local_ssd for local data 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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    gpu number
    gpu_type string
    image_id string
    The default image ID. master.image_id takes precedence for Master nodes.
    labels map(string)
    max_pods number
    min_cpu_platform 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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    security_group_id string
    taints list(object)
    uhost_family string
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".
    availabilityZone String
    cpu Double
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    machineType String
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    memory Double
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    bootDiskSize Double
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    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.
    count Double
    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. (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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    gpu Double
    gpuType String
    imageId String
    The default image ID. master.image_id takes precedence for Master nodes.
    labels Map<String,String>
    maxPods Double
    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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    securityGroupId String
    taints List<Uk8sClusterWorkerTaint>
    uhostFamily String
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".
    availabilityZone string
    cpu number
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    machineType string
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    memory number
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    bootDiskSize number
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    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.
    count number
    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. (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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    gpu number
    gpuType string
    imageId string
    The default image ID. master.image_id takes precedence for Master nodes.
    labels {[key: string]: string}
    maxPods number
    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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    securityGroupId string
    taints Uk8sClusterWorkerTaint[]
    uhostFamily string
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".
    availability_zone str
    cpu float
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    machine_type str
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    memory float
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    boot_disk_size float
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    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.
    count float
    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. (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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    gpu float
    gpu_type str
    image_id str
    The default image ID. master.image_id takes precedence for Master nodes.
    labels Mapping[str, str]
    max_pods float
    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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    security_group_id str
    taints Sequence[Uk8sClusterWorkerTaint]
    uhost_family str
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".
    availabilityZone String
    cpu Number
    Number of CPU cores, at least 2. Required with machine_type and memory when instance_type is omitted. Available specifications depend on the machine type and region.
    machineType String
    The uppercase machine type, such as N or O. Required together with cpu and memory when instance_type is omitted.
    memory Number
    Memory in MB, at least 4096 and a multiple of 1024. Required with machine_type and cpu when instance_type is omitted. For 4 GB, use 4096.
    bootDiskSize Number
    System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
    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.
    count Number
    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. (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. In addition, the data_disk_type must be same as boot_disk_type if specified.
    gpu Number
    gpuType String
    imageId String
    The default image ID. master.image_id takes precedence for Master nodes.
    labels Map<String>
    maxPods Number
    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;
    • Intel/IceLake, Intel/SapphireRapids, and Intel/EmeraldRapids for newer Intel CPU platforms;
    • 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.
    securityGroupId String
    taints List<Property Map>
    uhostFamily String
    The Intel outstanding family, o1i or o2i, sent as MasterUHostFamily. Requires machine_type = "O", an Intel CPU platform and boot_disk_type = "cloud_rssd".

    Uk8sClusterWorkerTaint, Uk8sClusterWorkerTaintArgs

    Effect string
    Key string
    Value string
    Effect string
    Key string
    Value string
    effect string
    key string
    value string
    effect String
    key String
    value String
    effect string
    key string
    value string
    effect str
    key str
    value str
    effect String
    key String
    value String

    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