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

ucloud.Uk8sCluster

Explore with Pulumi AI

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

    Provides an UK8S Cluster resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const fooVpc = new ucloud.Vpc("fooVpc", {
        cidrBlocks: ["192.168.0.0/16"],
        tag: "tf-acc",
    });
    const fooSubnet = new ucloud.Subnet("fooSubnet", {
        cidrBlock: "192.168.1.0/24",
        tag: "tf-acc",
        vpcId: fooVpc.vpcId,
    });
    const _default = ucloud.getZones({});
    const fooUk8sCluster = new ucloud.Uk8sCluster("fooUk8sCluster", {
        chargeType: "dynamic",
        master: {
            availabilityZones: [
                _default.then(_default => _default.zones?.[0]?.id),
                _default.then(_default => _default.zones?.[0]?.id),
                _default.then(_default => _default.zones?.[0]?.id),
            ],
            instanceType: "n-basic-2",
        },
        password: "ucloud_2021",
        serviceCidr: "172.16.0.0/16",
        subnetId: fooSubnet.subnetId,
        vpcId: fooVpc.vpcId,
    });
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    foo_vpc = ucloud.Vpc("fooVpc",
        cidr_blocks=["192.168.0.0/16"],
        tag="tf-acc")
    foo_subnet = ucloud.Subnet("fooSubnet",
        cidr_block="192.168.1.0/24",
        tag="tf-acc",
        vpc_id=foo_vpc.vpc_id)
    default = ucloud.get_zones()
    foo_uk8s_cluster = ucloud.Uk8sCluster("fooUk8sCluster",
        charge_type="dynamic",
        master={
            "availability_zones": [
                default.zones[0].id,
                default.zones[0].id,
                default.zones[0].id,
            ],
            "instance_type": "n-basic-2",
        },
        password="ucloud_2021",
        service_cidr="172.16.0.0/16",
        subnet_id=foo_subnet.subnet_id,
        vpc_id=foo_vpc.vpc_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooVpc, err := ucloud.NewVpc(ctx, "fooVpc", &ucloud.VpcArgs{
    			CidrBlocks: pulumi.StringArray{
    				pulumi.String("192.168.0.0/16"),
    			},
    			Tag: pulumi.String("tf-acc"),
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := ucloud.NewSubnet(ctx, "fooSubnet", &ucloud.SubnetArgs{
    			CidrBlock: pulumi.String("192.168.1.0/24"),
    			Tag:       pulumi.String("tf-acc"),
    			VpcId:     fooVpc.VpcId,
    		})
    		if err != nil {
    			return err
    		}
    		_default, err := ucloud.GetZones(ctx, &ucloud.GetZonesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = ucloud.NewUk8sCluster(ctx, "fooUk8sCluster", &ucloud.Uk8sClusterArgs{
    			ChargeType: pulumi.String("dynamic"),
    			Master: &ucloud.Uk8sClusterMasterArgs{
    				AvailabilityZones: pulumi.StringArray{
    					pulumi.String(_default.Zones[0].Id),
    					pulumi.String(_default.Zones[0].Id),
    					pulumi.String(_default.Zones[0].Id),
    				},
    				InstanceType: pulumi.String("n-basic-2"),
    			},
    			Password:    pulumi.String("ucloud_2021"),
    			ServiceCidr: pulumi.String("172.16.0.0/16"),
    			SubnetId:    fooSubnet.SubnetId,
    			VpcId:       fooVpc.VpcId,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ucloud = Pulumi.Ucloud;
    
    return await Deployment.RunAsync(() => 
    {
        var fooVpc = new Ucloud.Vpc("fooVpc", new()
        {
            CidrBlocks = new[]
            {
                "192.168.0.0/16",
            },
            Tag = "tf-acc",
        });
    
        var fooSubnet = new Ucloud.Subnet("fooSubnet", new()
        {
            CidrBlock = "192.168.1.0/24",
            Tag = "tf-acc",
            VpcId = fooVpc.VpcId,
        });
    
        var @default = Ucloud.GetZones.Invoke();
    
        var fooUk8sCluster = new Ucloud.Uk8sCluster("fooUk8sCluster", new()
        {
            ChargeType = "dynamic",
            Master = new Ucloud.Inputs.Uk8sClusterMasterArgs
            {
                AvailabilityZones = new[]
                {
                    @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
                    @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
                    @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
                },
                InstanceType = "n-basic-2",
            },
            Password = "ucloud_2021",
            ServiceCidr = "172.16.0.0/16",
            SubnetId = fooSubnet.SubnetId,
            VpcId = fooVpc.VpcId,
        });
    
    });
    
    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 fooVpc = new Vpc("fooVpc", VpcArgs.builder()
                .cidrBlocks("192.168.0.0/16")
                .tag("tf-acc")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
                .cidrBlock("192.168.1.0/24")
                .tag("tf-acc")
                .vpcId(fooVpc.vpcId())
                .build());
    
            final var default = UcloudFunctions.getZones();
    
            var fooUk8sCluster = new Uk8sCluster("fooUk8sCluster", Uk8sClusterArgs.builder()
                .chargeType("dynamic")
                .master(Uk8sClusterMasterArgs.builder()
                    .availabilityZones(                
                        default_.zones()[0].id(),
                        default_.zones()[0].id(),
                        default_.zones()[0].id())
                    .instanceType("n-basic-2")
                    .build())
                .password("ucloud_2021")
                .serviceCidr("172.16.0.0/16")
                .subnetId(fooSubnet.subnetId())
                .vpcId(fooVpc.vpcId())
                .build());
    
        }
    }
    
    resources:
      fooVpc:
        type: ucloud:Vpc
        properties:
          cidrBlocks:
            - 192.168.0.0/16
          tag: tf-acc
      fooSubnet:
        type: ucloud:Subnet
        properties:
          cidrBlock: 192.168.1.0/24
          tag: tf-acc
          vpcId: ${fooVpc.vpcId}
      fooUk8sCluster:
        type: ucloud:Uk8sCluster
        properties:
          chargeType: dynamic
          master:
            availabilityZones:
              - ${default.zones[0].id}
              - ${default.zones[0].id}
              - ${default.zones[0].id}
            instanceType: n-basic-2
          password: ucloud_2021
          serviceCidr: 172.16.0.0/16
          subnetId: ${fooSubnet.subnetId}
          vpcId: ${fooVpc.vpcId}
    variables:
      default:
        fn::invoke:
          function: ucloud:getZones
          arguments: {}
    

    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,
                    subnet_id: Optional[str] = None,
                    password: Optional[str] = None,
                    vpc_id: Optional[str] = None,
                    service_cidr: Optional[str] = None,
                    master: Optional[Uk8sClusterMasterArgs] = None,
                    name: Optional[str] = None,
                    k8s_version: Optional[str] = None,
                    kube_proxy: Optional[Uk8sClusterKubeProxyArgs] = None,
                    delete_disks_with_instance: Optional[bool] = None,
                    init_script: Optional[str] = None,
                    image_id: Optional[str] = None,
                    enable_external_api_server: Optional[bool] = None,
                    charge_type: Optional[str] = None,
                    timeouts: Optional[Uk8sClusterTimeoutsArgs] = None,
                    uk8s_cluster_id: Optional[str] = None,
                    user_data: Optional[str] = None,
                    duration: Optional[float] = 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.
    
    

    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()
    {
        SubnetId = "string",
        Password = "string",
        VpcId = "string",
        ServiceCidr = "string",
        Master = new Ucloud.Inputs.Uk8sClusterMasterArgs
        {
            AvailabilityZones = new[]
            {
                "string",
            },
            InstanceType = "string",
            BootDiskType = "string",
            DataDiskSize = 0,
            DataDiskType = "string",
            MinCpuPlatform = "string",
        },
        Name = "string",
        K8sVersion = "string",
        KubeProxy = new Ucloud.Inputs.Uk8sClusterKubeProxyArgs
        {
            Mode = "string",
        },
        DeleteDisksWithInstance = false,
        InitScript = "string",
        ImageId = "string",
        EnableExternalApiServer = false,
        ChargeType = "string",
        Timeouts = new Ucloud.Inputs.Uk8sClusterTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Uk8sClusterId = "string",
        UserData = "string",
        Duration = 0,
    });
    
    example, err := ucloud.NewUk8sCluster(ctx, "uk8sClusterResource", &ucloud.Uk8sClusterArgs{
    	SubnetId:    pulumi.String("string"),
    	Password:    pulumi.String("string"),
    	VpcId:       pulumi.String("string"),
    	ServiceCidr: pulumi.String("string"),
    	Master: &ucloud.Uk8sClusterMasterArgs{
    		AvailabilityZones: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		InstanceType:   pulumi.String("string"),
    		BootDiskType:   pulumi.String("string"),
    		DataDiskSize:   pulumi.Float64(0),
    		DataDiskType:   pulumi.String("string"),
    		MinCpuPlatform: pulumi.String("string"),
    	},
    	Name:       pulumi.String("string"),
    	K8sVersion: pulumi.String("string"),
    	KubeProxy: &ucloud.Uk8sClusterKubeProxyArgs{
    		Mode: pulumi.String("string"),
    	},
    	DeleteDisksWithInstance: pulumi.Bool(false),
    	InitScript:              pulumi.String("string"),
    	ImageId:                 pulumi.String("string"),
    	EnableExternalApiServer: pulumi.Bool(false),
    	ChargeType:              pulumi.String("string"),
    	Timeouts: &ucloud.Uk8sClusterTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Uk8sClusterId: pulumi.String("string"),
    	UserData:      pulumi.String("string"),
    	Duration:      pulumi.Float64(0),
    })
    
    var uk8sClusterResource = new Uk8sCluster("uk8sClusterResource", Uk8sClusterArgs.builder()
        .subnetId("string")
        .password("string")
        .vpcId("string")
        .serviceCidr("string")
        .master(Uk8sClusterMasterArgs.builder()
            .availabilityZones("string")
            .instanceType("string")
            .bootDiskType("string")
            .dataDiskSize(0)
            .dataDiskType("string")
            .minCpuPlatform("string")
            .build())
        .name("string")
        .k8sVersion("string")
        .kubeProxy(Uk8sClusterKubeProxyArgs.builder()
            .mode("string")
            .build())
        .deleteDisksWithInstance(false)
        .initScript("string")
        .imageId("string")
        .enableExternalApiServer(false)
        .chargeType("string")
        .timeouts(Uk8sClusterTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .uk8sClusterId("string")
        .userData("string")
        .duration(0)
        .build());
    
    uk8s_cluster_resource = ucloud.Uk8sCluster("uk8sClusterResource",
        subnet_id="string",
        password="string",
        vpc_id="string",
        service_cidr="string",
        master={
            "availability_zones": ["string"],
            "instance_type": "string",
            "boot_disk_type": "string",
            "data_disk_size": 0,
            "data_disk_type": "string",
            "min_cpu_platform": "string",
        },
        name="string",
        k8s_version="string",
        kube_proxy={
            "mode": "string",
        },
        delete_disks_with_instance=False,
        init_script="string",
        image_id="string",
        enable_external_api_server=False,
        charge_type="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        uk8s_cluster_id="string",
        user_data="string",
        duration=0)
    
    const uk8sClusterResource = new ucloud.Uk8sCluster("uk8sClusterResource", {
        subnetId: "string",
        password: "string",
        vpcId: "string",
        serviceCidr: "string",
        master: {
            availabilityZones: ["string"],
            instanceType: "string",
            bootDiskType: "string",
            dataDiskSize: 0,
            dataDiskType: "string",
            minCpuPlatform: "string",
        },
        name: "string",
        k8sVersion: "string",
        kubeProxy: {
            mode: "string",
        },
        deleteDisksWithInstance: false,
        initScript: "string",
        imageId: "string",
        enableExternalApiServer: false,
        chargeType: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        uk8sClusterId: "string",
        userData: "string",
        duration: 0,
    });
    
    type: ucloud:Uk8sCluster
    properties:
        chargeType: string
        deleteDisksWithInstance: false
        duration: 0
        enableExternalApiServer: false
        imageId: string
        initScript: string
        k8sVersion: string
        kubeProxy:
            mode: string
        master:
            availabilityZones:
                - string
            bootDiskType: string
            dataDiskSize: 0
            dataDiskType: string
            instanceType: string
            minCpuPlatform: string
        name: string
        password: string
        serviceCidr: string
        subnetId: string
        timeouts:
            create: string
            delete: string
            update: string
        uk8sClusterId: string
        userData: string
        vpcId: 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).
    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 ID for the image to use for the 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
    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).
    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 ID for the image to use for the 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
    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).
    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 ID for the image to use for the 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
    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).
    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 ID for the image to use for the 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
    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).
    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 ID for the image to use for the 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
    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).
    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 ID for the image to use for the 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

    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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,
            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,
            image_id: Optional[str] = None,
            init_script: Optional[str] = None,
            k8s_version: Optional[str] = None,
            kube_proxy: Optional[Uk8sClusterKubeProxyArgs] = 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) -> 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}
    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).
    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.
    ImageId string
    The ID for the image to use for the 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.
    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.
    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).
    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.
    ImageId string
    The ID for the image to use for the 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.
    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.
    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).
    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.
    imageId String
    The ID for the image to use for the 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.
    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.
    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).
    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.
    imageId string
    The ID for the image to use for the 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.
    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.
    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).
    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.
    image_id str
    The ID for the image to use for the 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.
    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.
    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).
    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.
    imageId String
    The ID for the image to use for the 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.
    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.

    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 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
    InstanceType string
    The type of instance, please visit the instance type table
    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,rssd_data_disk 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.
    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.
    MinCpuPlatform string
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    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
    InstanceType string
    The type of instance, please visit the instance type table
    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,rssd_data_disk 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.
    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.
    MinCpuPlatform string
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    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
    instanceType String
    The type of instance, please visit the instance type table
    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,rssd_data_disk 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.
    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.
    minCpuPlatform String
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    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
    instanceType string
    The type of instance, please visit the instance type table
    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,rssd_data_disk 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.
    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.
    minCpuPlatform string
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    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
    instance_type str
    The type of instance, please visit the instance type table
    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,rssd_data_disk 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.
    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.
    min_cpu_platform str
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.
    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
    instanceType String
    The type of instance, please visit the instance type table
    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,rssd_data_disk 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.
    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.
    minCpuPlatform String
    Specifies a minimum CPU platform for the VM instance. (Default: Intel/Auto). You may refer to min_cpu_platform

    • The Intel CPU platform:
    • Intel/Auto as the Intel CPU platform version will be selected randomly by system;
    • Intel/IvyBridge as Intel V2, the version of Intel CPU platform selected by system will be Intel/IvyBridge and above;
    • Intel/Haswell as Intel V3, the version of Intel CPU platform selected by system will be Intel/Haswell and above;
    • Intel/Broadwell as Intel V4, the version of Intel CPU platform selected by system will be Intel/Broadwell and above;
    • Intel/Skylake as Intel V5, the version of Intel CPU platform selected by system will be Intel/Skylake and above;
    • Intel/Cascadelake as Intel V6, the version of Intel CPU platform selected by system will be Intel/Cascadelake;
    • Intel/CascadelakeR as the version of Intel CPU platform, currently can only support by the os instance type;
    • The AMD CPU platform:
    • Amd/Auto as the Amd CPU platform version will be selected randomly by system;
    • Amd/Epyc2 as the version of Amd CPU platform selected by system will be Amd/Epyc2 and above;
    • The Ampere CPU platform:
    • Ampere/Altra as the version of Ampere CPU platform selected by system will be Ampere/Altra and above.

    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 - e.g. when changing instance_type
    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 - e.g. when changing instance_type
    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 - e.g. when changing instance_type
    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 - e.g. when changing instance_type
    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 - e.g. when changing instance_type
    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 - e.g. when changing instance_type

    Package Details

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