published on Friday, Sep 11, 2026 by ucloud
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
Uk8s
Cluster Master - 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, thesubnet_idis Required. If not definedvpc_idandsubnet_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,monthanddynamicas pay by hour (specific permission required). (Default:month). - Cni
Mode string - Delete
Disks boolWith Instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - Enable
External boolApi Server - If expose the api server endpoint for external visiting.
- Image
Id string - The default image ID.
master.image_idtakes 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 Uk8sCluster Kube Proxy - The configuration of kube proxy, See kube proxy for details of attributes.
- Name string
- Timeouts
Uk8s
Cluster Timeouts - Uk8s
Cluster stringId - 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<Uk8s
Cluster Worker> - Repeatable initial Worker group configuration, sent as
Nodes.N.*inCreateUK8SClusterV2. See worker.
- Master
Uk8s
Cluster Master Args - 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, thesubnet_idis Required. If not definedvpc_idandsubnet_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,monthanddynamicas pay by hour (specific permission required). (Default:month). - Cni
Mode string - Delete
Disks boolWith Instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - Enable
External boolApi Server - If expose the api server endpoint for external visiting.
- Image
Id string - The default image ID.
master.image_idtakes 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 Uk8sCluster Kube Proxy Args - The configuration of kube proxy, See kube proxy for details of attributes.
- Name string
- Timeouts
Uk8s
Cluster Timeouts Args - Uk8s
Cluster stringId - 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
[]Uk8s
Cluster Worker Args - Repeatable initial Worker group configuration, sent as
Nodes.N.*inCreateUK8SClusterV2. 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, thesubnet_idis Required. If not definedvpc_idandsubnet_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,monthanddynamicas pay by hour (specific permission required). (Default:month). - cni_
mode string - delete_
disks_ boolwith_ instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - enable_
external_ boolapi_ server - If expose the api server endpoint for external visiting.
- image_
id string - The default image ID.
master.image_idtakes 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_ stringid - 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.*inCreateUK8SClusterV2. See worker.
- master
Uk8s
Cluster Master - 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, thesubnet_idis Required. If not definedvpc_idandsubnet_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,monthanddynamicas pay by hour (specific permission required). (Default:month). - cni
Mode String - delete
Disks BooleanWith Instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - enable
External BooleanApi Server - If expose the api server endpoint for external visiting.
- image
Id String - The default image ID.
master.image_idtakes 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 Uk8sCluster Kube Proxy - The configuration of kube proxy, See kube proxy for details of attributes.
- name String
- timeouts
Uk8s
Cluster Timeouts - uk8s
Cluster StringId - 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<Uk8s
Cluster Worker> - Repeatable initial Worker group configuration, sent as
Nodes.N.*inCreateUK8SClusterV2. See worker.
- master
Uk8s
Cluster Master - 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, thesubnet_idis Required. If not definedvpc_idandsubnet_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,monthanddynamicas pay by hour (specific permission required). (Default:month). - cni
Mode string - delete
Disks booleanWith Instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - enable
External booleanApi Server - If expose the api server endpoint for external visiting.
- image
Id string - The default image ID.
master.image_idtakes 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 Uk8sCluster Kube Proxy - The configuration of kube proxy, See kube proxy for details of attributes.
- name string
- timeouts
Uk8s
Cluster Timeouts - uk8s
Cluster stringId - 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
Uk8s
Cluster Worker[] - Repeatable initial Worker group configuration, sent as
Nodes.N.*inCreateUK8SClusterV2. See worker.
- master
Uk8s
Cluster Master Args - 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, thesubnet_idis Required. If not definedvpc_idandsubnet_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,monthanddynamicas pay by hour (specific permission required). (Default:month). - cni_
mode str - delete_
disks_ boolwith_ instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - enable_
external_ boolapi_ server - If expose the api server endpoint for external visiting.
- image_
id str - The default image ID.
master.image_idtakes 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 Uk8sCluster Kube Proxy Args - The configuration of kube proxy, See kube proxy for details of attributes.
- name str
- timeouts
Uk8s
Cluster Timeouts Args - uk8s_
cluster_ strid - 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[Uk8s
Cluster Worker Args] - Repeatable initial Worker group configuration, sent as
Nodes.N.*inCreateUK8SClusterV2. See worker.
- master Property Map
- 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, thesubnet_idis Required. If not definedvpc_idandsubnet_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,monthanddynamicas pay by hour (specific permission required). (Default:month). - cni
Mode String - delete
Disks BooleanWith Instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - enable
External BooleanApi Server - If expose the api server endpoint for external visiting.
- image
Id String - The default image ID.
master.image_idtakes 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 Property Map - The configuration of kube proxy, See kube proxy for details of attributes.
- name String
- timeouts Property Map
- uk8s
Cluster StringId - 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<Property Map>
- Repeatable initial Worker group configuration, sent as
Nodes.N.*inCreateUK8SClusterV2. See worker.
Outputs
All input properties are implicitly available as output properties. Additionally, the Uk8sCluster resource produces the following output properties:
- 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 stringServer - 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,ERRORandABNORMAL.
- 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 stringServer - 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,ERRORandABNORMAL.
- 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_ stringserver - 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,ERRORandABNORMAL.
- 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 StringServer - 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,ERRORandABNORMAL.
- 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 stringServer - 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,ERRORandABNORMAL.
- 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_ strserver - 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,ERRORandABNORMAL.
- 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 StringServer - 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,ERRORandABNORMAL.
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) -> Uk8sClusterfunc 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.
- Api
Server string - The api server endpoint in cluster.
- Charge
Type string - The charge type of instance, possible values are:
year,monthanddynamicas 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 boolWith Instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - Enable
External boolApi Server - If expose the api server endpoint for external visiting.
- External
Api stringServer - 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_idtakes 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 Uk8sCluster Kube Proxy - 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
Uk8s
Cluster Master - 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,ERRORandABNORMAL. - Subnet
Id string - The ID of subnet. If defined
vpc_id, thesubnet_idis Required. If not definedvpc_idandsubnet_id, the instance will use the default subnet in the current region. - Timeouts
Uk8s
Cluster Timeouts - Uk8s
Cluster stringId - 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<Uk8s
Cluster Worker> - Repeatable initial Worker group configuration, sent as
Nodes.N.*inCreateUK8SClusterV2. See worker.
- Api
Server string - The api server endpoint in cluster.
- Charge
Type string - The charge type of instance, possible values are:
year,monthanddynamicas 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 boolWith Instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - Enable
External boolApi Server - If expose the api server endpoint for external visiting.
- External
Api stringServer - 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_idtakes 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 Uk8sCluster Kube Proxy Args - 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
Uk8s
Cluster Master Args - 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,ERRORandABNORMAL. - Subnet
Id string - The ID of subnet. If defined
vpc_id, thesubnet_idis Required. If not definedvpc_idandsubnet_id, the instance will use the default subnet in the current region. - Timeouts
Uk8s
Cluster Timeouts Args - Uk8s
Cluster stringId - 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
[]Uk8s
Cluster Worker Args - Repeatable initial Worker group configuration, sent as
Nodes.N.*inCreateUK8SClusterV2. See worker.
- api_
server string - The api server endpoint in cluster.
- charge_
type string - The charge type of instance, possible values are:
year,monthanddynamicas 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_ boolwith_ instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - enable_
external_ boolapi_ server - If expose the api server endpoint for external visiting.
- external_
api_ stringserver - 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_idtakes 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,ERRORandABNORMAL. - subnet_
id string - The ID of subnet. If defined
vpc_id, thesubnet_idis Required. If not definedvpc_idandsubnet_id, the instance will use the default subnet in the current region. - timeouts object
- uk8s_
cluster_ stringid - 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.*inCreateUK8SClusterV2. See worker.
- api
Server String - The api server endpoint in cluster.
- charge
Type String - The charge type of instance, possible values are:
year,monthanddynamicas 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 BooleanWith Instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - enable
External BooleanApi Server - If expose the api server endpoint for external visiting.
- external
Api StringServer - 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_idtakes 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 Uk8sCluster Kube Proxy - 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
Uk8s
Cluster Master - 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,ERRORandABNORMAL. - subnet
Id String - The ID of subnet. If defined
vpc_id, thesubnet_idis Required. If not definedvpc_idandsubnet_id, the instance will use the default subnet in the current region. - timeouts
Uk8s
Cluster Timeouts - uk8s
Cluster StringId - 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<Uk8s
Cluster Worker> - Repeatable initial Worker group configuration, sent as
Nodes.N.*inCreateUK8SClusterV2. See worker.
- api
Server string - The api server endpoint in cluster.
- charge
Type string - The charge type of instance, possible values are:
year,monthanddynamicas 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 booleanWith Instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - enable
External booleanApi Server - If expose the api server endpoint for external visiting.
- external
Api stringServer - 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_idtakes 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 Uk8sCluster Kube Proxy - 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
Uk8s
Cluster Master - 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,ERRORandABNORMAL. - subnet
Id string - The ID of subnet. If defined
vpc_id, thesubnet_idis Required. If not definedvpc_idandsubnet_id, the instance will use the default subnet in the current region. - timeouts
Uk8s
Cluster Timeouts - uk8s
Cluster stringId - 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
Uk8s
Cluster Worker[] - Repeatable initial Worker group configuration, sent as
Nodes.N.*inCreateUK8SClusterV2. See worker.
- api_
server str - The api server endpoint in cluster.
- charge_
type str - The charge type of instance, possible values are:
year,monthanddynamicas 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_ boolwith_ instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - enable_
external_ boolapi_ server - If expose the api server endpoint for external visiting.
- external_
api_ strserver - 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_idtakes 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 Uk8sCluster Kube Proxy Args - 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
Uk8s
Cluster Master Args - 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,ERRORandABNORMAL. - subnet_
id str - The ID of subnet. If defined
vpc_id, thesubnet_idis Required. If not definedvpc_idandsubnet_id, the instance will use the default subnet in the current region. - timeouts
Uk8s
Cluster Timeouts Args - uk8s_
cluster_ strid - 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[Uk8s
Cluster Worker Args] - Repeatable initial Worker group configuration, sent as
Nodes.N.*inCreateUK8SClusterV2. See worker.
- api
Server String - The api server endpoint in cluster.
- charge
Type String - The charge type of instance, possible values are:
year,monthanddynamicas 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 BooleanWith Instance - 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 is0when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic(pay by hour). - enable
External BooleanApi Server - If expose the api server endpoint for external visiting.
- external
Api StringServer - 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_idtakes 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 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
- 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,ERRORandABNORMAL. - subnet
Id String - The ID of subnet. If defined
vpc_id, thesubnet_idis Required. If not definedvpc_idandsubnet_id, the instance will use the default subnet in the current region. - timeouts Property Map
- uk8s
Cluster StringId - 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<Property Map>
- Repeatable initial Worker group configuration, sent as
Nodes.N.*inCreateUK8SClusterV2. 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
- 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 doubleSize - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- Boot
Disk stringType - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare 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_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - Data
Disk doubleSize - 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 stringType - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - Image
Id string - The Master image ID, sent as
MasterImageId. When omitted, the API uses the top-levelimage_idor 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 withmachine_type,cpu, andmemory. - Machine
Type string - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - Memory double
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - Min
Cpu stringPlatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- Uhost
Family string - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_disk_type = "cloud_rssd".
- Availability
Zones []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 float64Size - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- Boot
Disk stringType - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare 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_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - Data
Disk float64Size - 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 stringType - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - Image
Id string - The Master image ID, sent as
MasterImageId. When omitted, the API uses the top-levelimage_idor 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 withmachine_type,cpu, andmemory. - Machine
Type string - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - Memory float64
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - Min
Cpu stringPlatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- Uhost
Family string - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_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_ numbersize - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- boot_
disk_ stringtype - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare 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_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - data_
disk_ numbersize - 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_ stringtype - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - image_
id string - The Master image ID, sent as
MasterImageId. When omitted, the API uses the top-levelimage_idor 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 withmachine_type,cpu, andmemory. - machine_
type string - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - memory number
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - min_
cpu_ stringplatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- uhost_
family string - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_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 DoubleSize - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- boot
Disk StringType - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare 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_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - data
Disk DoubleSize - 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 StringType - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - image
Id String - The Master image ID, sent as
MasterImageId. When omitted, the API uses the top-levelimage_idor 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 withmachine_type,cpu, andmemory. - machine
Type String - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - memory Double
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - min
Cpu StringPlatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- uhost
Family String - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_disk_type = "cloud_rssd".
- availability
Zones 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 numberSize - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- boot
Disk stringType - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare 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_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - data
Disk numberSize - 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 stringType - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - image
Id string - The Master image ID, sent as
MasterImageId. When omitted, the API uses the top-levelimage_idor 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 withmachine_type,cpu, andmemory. - machine
Type string - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - memory number
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - min
Cpu stringPlatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- uhost
Family string - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_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_ floatsize - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- boot_
disk_ strtype - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare 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_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - data_
disk_ floatsize - 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_ strtype - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - image_
id str - The Master image ID, sent as
MasterImageId. When omitted, the API uses the top-levelimage_idor 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 withmachine_type,cpu, andmemory. - machine_
type str - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - memory float
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - min_
cpu_ strplatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- uhost_
family str - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_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 NumberSize - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- boot
Disk StringType - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare 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_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - data
Disk NumberSize - 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 StringType - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - image
Id String - The Master image ID, sent as
MasterImageId. When omitted, the API uses the top-levelimage_idor 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 withmachine_type,cpu, andmemory. - machine
Type String - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - memory Number
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - min
Cpu StringPlatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- uhost
Family String - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_disk_type = "cloud_rssd".
Uk8sClusterTimeouts, Uk8sClusterTimeoutsArgs
Uk8sClusterWorker, Uk8sClusterWorkerArgs
- Availability
Zone string - Cpu double
- Number of CPU cores, at least 2. Required with
machine_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - Machine
Type string - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - Memory double
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - Boot
Disk doubleSize - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- Boot
Disk stringType - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - Count double
- Data
Disk doubleSize - 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 stringType - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - Gpu double
- Gpu
Type string - Image
Id string - The default image ID.
master.image_idtakes precedence for Master nodes. - Labels Dictionary<string, string>
- Max
Pods double - Min
Cpu stringPlatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- Security
Group stringId - Taints
List<Uk8s
Cluster Worker Taint> - Uhost
Family string - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_disk_type = "cloud_rssd".
- Availability
Zone string - Cpu float64
- Number of CPU cores, at least 2. Required with
machine_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - Machine
Type string - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - Memory float64
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - Boot
Disk float64Size - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- Boot
Disk stringType - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - Count float64
- Data
Disk float64Size - 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 stringType - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - Gpu float64
- Gpu
Type string - Image
Id string - The default image ID.
master.image_idtakes precedence for Master nodes. - Labels map[string]string
- Max
Pods float64 - Min
Cpu stringPlatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- Security
Group stringId - Taints
[]Uk8s
Cluster Worker Taint - Uhost
Family string - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_disk_type = "cloud_rssd".
- availability_
zone string - cpu number
- Number of CPU cores, at least 2. Required with
machine_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - machine_
type string - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - memory number
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - boot_
disk_ numbersize - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- boot_
disk_ stringtype - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - count number
- data_
disk_ numbersize - 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_ stringtype - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - gpu number
- gpu_
type string - image_
id string - The default image ID.
master.image_idtakes precedence for Master nodes. - labels map(string)
- max_
pods number - min_
cpu_ stringplatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- security_
group_ stringid - taints list(object)
- uhost_
family string - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_disk_type = "cloud_rssd".
- availability
Zone String - cpu Double
- Number of CPU cores, at least 2. Required with
machine_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - machine
Type String - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - memory Double
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - boot
Disk DoubleSize - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- boot
Disk StringType - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - count Double
- data
Disk DoubleSize - 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 StringType - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - gpu Double
- gpu
Type String - image
Id String - The default image ID.
master.image_idtakes precedence for Master nodes. - labels Map<String,String>
- max
Pods Double - min
Cpu StringPlatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- security
Group StringId - taints
List<Uk8s
Cluster Worker Taint> - uhost
Family String - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_disk_type = "cloud_rssd".
- availability
Zone string - cpu number
- Number of CPU cores, at least 2. Required with
machine_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - machine
Type string - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - memory number
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - boot
Disk numberSize - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- boot
Disk stringType - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - count number
- data
Disk numberSize - 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 stringType - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - gpu number
- gpu
Type string - image
Id string - The default image ID.
master.image_idtakes precedence for Master nodes. - labels {[key: string]: string}
- max
Pods number - min
Cpu stringPlatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- security
Group stringId - taints
Uk8s
Cluster Worker Taint[] - uhost
Family string - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_disk_type = "cloud_rssd".
- availability_
zone str - cpu float
- Number of CPU cores, at least 2. Required with
machine_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - machine_
type str - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - memory float
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - boot_
disk_ floatsize - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- boot_
disk_ strtype - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - count float
- data_
disk_ floatsize - 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_ strtype - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - gpu float
- gpu_
type str - image_
id str - The default image ID.
master.image_idtakes precedence for Master nodes. - labels Mapping[str, str]
- max_
pods float - min_
cpu_ strplatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- security_
group_ strid - taints
Sequence[Uk8s
Cluster Worker Taint] - uhost_
family str - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_disk_type = "cloud_rssd".
- availability
Zone String - cpu Number
- Number of CPU cores, at least 2. Required with
machine_typeandmemorywheninstance_typeis omitted. Available specifications depend on the machine type and region. - machine
Type String - The uppercase machine type, such as
NorO. Required together withcpuandmemorywheninstance_typeis omitted. - memory Number
- Memory in MB, at least 4096 and a multiple of 1024. Required with
machine_typeandcpuwheninstance_typeis omitted. For 4 GB, use4096. - boot
Disk NumberSize - System disk size in GB, from 40 to 500. When omitted, the API default is 40 GB.
- boot
Disk StringType - The type of boot disk. Possible values are:
local_normalandlocal_ssdfor local boot disk,cloud_ssdfor cloud SSD boot disk,cloud_rssdas RDMA-SSD cloud disk. (Default:cloud_ssd). Thelocal_ssdandcloud_ssdare not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - count Number
- data
Disk NumberSize - 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 StringType - The type of local data disk. Possible values are:
local_normalandlocal_ssdfor local data disk. (Default:cloud_ssd). Thelocal_ssdis not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_typemust be same asboot_disk_typeif specified. - gpu Number
- gpu
Type String - image
Id String - The default image ID.
master.image_idtakes precedence for Master nodes. - labels Map<String>
- max
Pods Number - min
Cpu StringPlatform - Specifies a minimum CPU platform for the VM instance. (Default:
Intel/Auto). You may refer to min_cpu_platform- The Intel CPU platform:
Intel/Autoas the Intel CPU platform version will be selected randomly by system;Intel/IvyBridgeas Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridgeand above;Intel/Haswellas Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswelland above;Intel/Broadwellas Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwelland above;Intel/Skylakeas Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylakeand above;Intel/Cascadelakeas Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake;Intel/CascadelakeRas the version of Intel CPU platform, currently can only support by theosinstance type;Intel/IceLake,Intel/SapphireRapids, andIntel/EmeraldRapidsfor newer Intel CPU platforms;- The AMD CPU platform:
Amd/Autoas the Amd CPU platform version will be selected randomly by system;Amd/Epyc2as the version of Amd CPU platform selected by system will beAmd/Epyc2and above;- The Ampere CPU platform:
Ampere/Altraas the version of Ampere CPU platform selected by system will beAmpere/Altraand above.
- security
Group StringId - taints List<Property Map>
- uhost
Family String - The Intel outstanding family,
o1ioro2i, sent asMasterUHostFamily. Requiresmachine_type = "O", an Intel CPU platform andboot_disk_type = "cloud_rssd".
Uk8sClusterWorkerTaint, Uk8sClusterWorkerTaintArgs
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloudTerraform Provider.
published on Friday, Sep 11, 2026 by ucloud