ucloud.Uk8sNode
Explore with Pulumi AI
Provides an UK8S Node resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";
const fooVpc = new ucloud.Vpc("fooVpc", {
cidrBlocks: ["192.168.0.0/16"],
tag: "tf-acc",
});
const fooSubnet = new ucloud.Subnet("fooSubnet", {
cidrBlock: "192.168.1.0/24",
tag: "tf-acc",
vpcId: fooVpc.vpcId,
});
const _default = ucloud.getZones({});
const fooUk8sCluster = new ucloud.Uk8sCluster("fooUk8sCluster", {
chargeType: "dynamic",
master: {
availabilityZones: [
_default.then(_default => _default.zones?.[0]?.id),
_default.then(_default => _default.zones?.[0]?.id),
_default.then(_default => _default.zones?.[0]?.id),
],
instanceType: "n-basic-2",
},
password: "ucloud_2021",
serviceCidr: "172.16.0.0/16",
subnetId: fooSubnet.subnetId,
vpcId: fooVpc.vpcId,
});
const fooUk8sNode: ucloud.Uk8sNode[] = [];
for (const range = {value: 0}; range.value < 2; range.value++) {
fooUk8sNode.push(new ucloud.Uk8sNode(`fooUk8sNode-${range.value}`, {
availabilityZone: _default.then(_default => _default.zones?.[0]?.id),
chargeType: "dynamic",
clusterId: fooUk8sCluster.uk8sClusterId,
instanceType: "n-basic-2",
password: "ucloud_2021",
subnetId: fooSubnet.subnetId,
}));
}
import pulumi
import pulumi_ucloud as ucloud
foo_vpc = ucloud.Vpc("fooVpc",
cidr_blocks=["192.168.0.0/16"],
tag="tf-acc")
foo_subnet = ucloud.Subnet("fooSubnet",
cidr_block="192.168.1.0/24",
tag="tf-acc",
vpc_id=foo_vpc.vpc_id)
default = ucloud.get_zones()
foo_uk8s_cluster = ucloud.Uk8sCluster("fooUk8sCluster",
charge_type="dynamic",
master={
"availability_zones": [
default.zones[0].id,
default.zones[0].id,
default.zones[0].id,
],
"instance_type": "n-basic-2",
},
password="ucloud_2021",
service_cidr="172.16.0.0/16",
subnet_id=foo_subnet.subnet_id,
vpc_id=foo_vpc.vpc_id)
foo_uk8s_node = []
for range in [{"value": i} for i in range(0, 2)]:
foo_uk8s_node.append(ucloud.Uk8sNode(f"fooUk8sNode-{range['value']}",
availability_zone=default.zones[0].id,
charge_type="dynamic",
cluster_id=foo_uk8s_cluster.uk8s_cluster_id,
instance_type="n-basic-2",
password="ucloud_2021",
subnet_id=foo_subnet.subnet_id))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooVpc, err := ucloud.NewVpc(ctx, "fooVpc", &ucloud.VpcArgs{
CidrBlocks: pulumi.StringArray{
pulumi.String("192.168.0.0/16"),
},
Tag: pulumi.String("tf-acc"),
})
if err != nil {
return err
}
fooSubnet, err := ucloud.NewSubnet(ctx, "fooSubnet", &ucloud.SubnetArgs{
CidrBlock: pulumi.String("192.168.1.0/24"),
Tag: pulumi.String("tf-acc"),
VpcId: fooVpc.VpcId,
})
if err != nil {
return err
}
_default, err := ucloud.GetZones(ctx, &ucloud.GetZonesArgs{}, nil)
if err != nil {
return err
}
fooUk8sCluster, err := ucloud.NewUk8sCluster(ctx, "fooUk8sCluster", &ucloud.Uk8sClusterArgs{
ChargeType: pulumi.String("dynamic"),
Master: &ucloud.Uk8sClusterMasterArgs{
AvailabilityZones: pulumi.StringArray{
pulumi.String(_default.Zones[0].Id),
pulumi.String(_default.Zones[0].Id),
pulumi.String(_default.Zones[0].Id),
},
InstanceType: pulumi.String("n-basic-2"),
},
Password: pulumi.String("ucloud_2021"),
ServiceCidr: pulumi.String("172.16.0.0/16"),
SubnetId: fooSubnet.SubnetId,
VpcId: fooVpc.VpcId,
})
if err != nil {
return err
}
var fooUk8sNode []*ucloud.Uk8sNode
for index := 0; index < 2; index++ {
key0 := index
_ := index
__res, err := ucloud.NewUk8sNode(ctx, fmt.Sprintf("fooUk8sNode-%v", key0), &ucloud.Uk8sNodeArgs{
AvailabilityZone: pulumi.String(_default.Zones[0].Id),
ChargeType: pulumi.String("dynamic"),
ClusterId: fooUk8sCluster.Uk8sClusterId,
InstanceType: pulumi.String("n-basic-2"),
Password: pulumi.String("ucloud_2021"),
SubnetId: fooSubnet.SubnetId,
})
if err != nil {
return err
}
fooUk8sNode = append(fooUk8sNode, __res)
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;
return await Deployment.RunAsync(() =>
{
var fooVpc = new Ucloud.Vpc("fooVpc", new()
{
CidrBlocks = new[]
{
"192.168.0.0/16",
},
Tag = "tf-acc",
});
var fooSubnet = new Ucloud.Subnet("fooSubnet", new()
{
CidrBlock = "192.168.1.0/24",
Tag = "tf-acc",
VpcId = fooVpc.VpcId,
});
var @default = Ucloud.GetZones.Invoke();
var fooUk8sCluster = new Ucloud.Uk8sCluster("fooUk8sCluster", new()
{
ChargeType = "dynamic",
Master = new Ucloud.Inputs.Uk8sClusterMasterArgs
{
AvailabilityZones = new[]
{
@default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
@default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
@default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
},
InstanceType = "n-basic-2",
},
Password = "ucloud_2021",
ServiceCidr = "172.16.0.0/16",
SubnetId = fooSubnet.SubnetId,
VpcId = fooVpc.VpcId,
});
var fooUk8sNode = new List<Ucloud.Uk8sNode>();
for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
{
var range = new { Value = rangeIndex };
fooUk8sNode.Add(new Ucloud.Uk8sNode($"fooUk8sNode-{range.Value}", new()
{
AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
ChargeType = "dynamic",
ClusterId = fooUk8sCluster.Uk8sClusterId,
InstanceType = "n-basic-2",
Password = "ucloud_2021",
SubnetId = fooSubnet.SubnetId,
}));
}
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.Vpc;
import com.pulumi.ucloud.VpcArgs;
import com.pulumi.ucloud.Subnet;
import com.pulumi.ucloud.SubnetArgs;
import com.pulumi.ucloud.UcloudFunctions;
import com.pulumi.ucloud.inputs.GetZonesArgs;
import com.pulumi.ucloud.Uk8sCluster;
import com.pulumi.ucloud.Uk8sClusterArgs;
import com.pulumi.ucloud.inputs.Uk8sClusterMasterArgs;
import com.pulumi.ucloud.Uk8sNode;
import com.pulumi.ucloud.Uk8sNodeArgs;
import com.pulumi.codegen.internal.KeyedValue;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.cidrBlocks("192.168.0.0/16")
.tag("tf-acc")
.build());
var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
.cidrBlock("192.168.1.0/24")
.tag("tf-acc")
.vpcId(fooVpc.vpcId())
.build());
final var default = UcloudFunctions.getZones();
var fooUk8sCluster = new Uk8sCluster("fooUk8sCluster", Uk8sClusterArgs.builder()
.chargeType("dynamic")
.master(Uk8sClusterMasterArgs.builder()
.availabilityZones(
default_.zones()[0].id(),
default_.zones()[0].id(),
default_.zones()[0].id())
.instanceType("n-basic-2")
.build())
.password("ucloud_2021")
.serviceCidr("172.16.0.0/16")
.subnetId(fooSubnet.subnetId())
.vpcId(fooVpc.vpcId())
.build());
for (var i = 0; i < 2; i++) {
new Uk8sNode("fooUk8sNode-" + i, Uk8sNodeArgs.builder()
.availabilityZone(default_.zones()[0].id())
.chargeType("dynamic")
.clusterId(fooUk8sCluster.uk8sClusterId())
.instanceType("n-basic-2")
.password("ucloud_2021")
.subnetId(fooSubnet.subnetId())
.build());
}
}
}
resources:
fooVpc:
type: ucloud:Vpc
properties:
cidrBlocks:
- 192.168.0.0/16
tag: tf-acc
fooSubnet:
type: ucloud:Subnet
properties:
cidrBlock: 192.168.1.0/24
tag: tf-acc
vpcId: ${fooVpc.vpcId}
fooUk8sCluster:
type: ucloud:Uk8sCluster
properties:
chargeType: dynamic
master:
availabilityZones:
- ${default.zones[0].id}
- ${default.zones[0].id}
- ${default.zones[0].id}
instanceType: n-basic-2
password: ucloud_2021
serviceCidr: 172.16.0.0/16
subnetId: ${fooSubnet.subnetId}
vpcId: ${fooVpc.vpcId}
fooUk8sNode:
type: ucloud:Uk8sNode
properties:
availabilityZone: ${default.zones[0].id}
chargeType: dynamic
clusterId: ${fooUk8sCluster.uk8sClusterId}
instanceType: n-basic-2
password: ucloud_2021
subnetId: ${fooSubnet.subnetId}
options: {}
variables:
default:
fn::invoke:
function: ucloud:getZones
arguments: {}
Create Uk8sNode Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Uk8sNode(name: string, args: Uk8sNodeArgs, opts?: CustomResourceOptions);
@overload
def Uk8sNode(resource_name: str,
args: Uk8sNodeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Uk8sNode(resource_name: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
password: Optional[str] = None,
instance_type: Optional[str] = None,
cluster_id: Optional[str] = None,
duration: Optional[float] = None,
charge_type: Optional[str] = None,
delete_disks_with_instance: Optional[bool] = None,
disable_schedule_on_create: Optional[bool] = None,
data_disk_size: Optional[float] = None,
image_id: Optional[str] = None,
init_script: Optional[str] = None,
data_disk_type: Optional[str] = None,
isolation_group: Optional[str] = None,
min_cpu_platform: Optional[str] = None,
boot_disk_type: Optional[str] = None,
subnet_id: Optional[str] = None,
timeouts: Optional[Uk8sNodeTimeoutsArgs] = None,
uk8s_node_id: Optional[str] = None,
user_data: Optional[str] = None)
func NewUk8sNode(ctx *Context, name string, args Uk8sNodeArgs, opts ...ResourceOption) (*Uk8sNode, error)
public Uk8sNode(string name, Uk8sNodeArgs args, CustomResourceOptions? opts = null)
public Uk8sNode(String name, Uk8sNodeArgs args)
public Uk8sNode(String name, Uk8sNodeArgs args, CustomResourceOptions options)
type: ucloud:Uk8sNode
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args Uk8sNodeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args Uk8sNodeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args Uk8sNodeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Uk8sNodeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Uk8sNodeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var uk8sNodeResource = new Ucloud.Uk8sNode("uk8sNodeResource", new()
{
AvailabilityZone = "string",
Password = "string",
InstanceType = "string",
ClusterId = "string",
Duration = 0,
ChargeType = "string",
DeleteDisksWithInstance = false,
DisableScheduleOnCreate = false,
DataDiskSize = 0,
ImageId = "string",
InitScript = "string",
DataDiskType = "string",
IsolationGroup = "string",
MinCpuPlatform = "string",
BootDiskType = "string",
SubnetId = "string",
Timeouts = new Ucloud.Inputs.Uk8sNodeTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Uk8sNodeId = "string",
UserData = "string",
});
example, err := ucloud.NewUk8sNode(ctx, "uk8sNodeResource", &ucloud.Uk8sNodeArgs{
AvailabilityZone: pulumi.String("string"),
Password: pulumi.String("string"),
InstanceType: pulumi.String("string"),
ClusterId: pulumi.String("string"),
Duration: pulumi.Float64(0),
ChargeType: pulumi.String("string"),
DeleteDisksWithInstance: pulumi.Bool(false),
DisableScheduleOnCreate: pulumi.Bool(false),
DataDiskSize: pulumi.Float64(0),
ImageId: pulumi.String("string"),
InitScript: pulumi.String("string"),
DataDiskType: pulumi.String("string"),
IsolationGroup: pulumi.String("string"),
MinCpuPlatform: pulumi.String("string"),
BootDiskType: pulumi.String("string"),
SubnetId: pulumi.String("string"),
Timeouts: &ucloud.Uk8sNodeTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Uk8sNodeId: pulumi.String("string"),
UserData: pulumi.String("string"),
})
var uk8sNodeResource = new Uk8sNode("uk8sNodeResource", Uk8sNodeArgs.builder()
.availabilityZone("string")
.password("string")
.instanceType("string")
.clusterId("string")
.duration(0)
.chargeType("string")
.deleteDisksWithInstance(false)
.disableScheduleOnCreate(false)
.dataDiskSize(0)
.imageId("string")
.initScript("string")
.dataDiskType("string")
.isolationGroup("string")
.minCpuPlatform("string")
.bootDiskType("string")
.subnetId("string")
.timeouts(Uk8sNodeTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.uk8sNodeId("string")
.userData("string")
.build());
uk8s_node_resource = ucloud.Uk8sNode("uk8sNodeResource",
availability_zone="string",
password="string",
instance_type="string",
cluster_id="string",
duration=0,
charge_type="string",
delete_disks_with_instance=False,
disable_schedule_on_create=False,
data_disk_size=0,
image_id="string",
init_script="string",
data_disk_type="string",
isolation_group="string",
min_cpu_platform="string",
boot_disk_type="string",
subnet_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
uk8s_node_id="string",
user_data="string")
const uk8sNodeResource = new ucloud.Uk8sNode("uk8sNodeResource", {
availabilityZone: "string",
password: "string",
instanceType: "string",
clusterId: "string",
duration: 0,
chargeType: "string",
deleteDisksWithInstance: false,
disableScheduleOnCreate: false,
dataDiskSize: 0,
imageId: "string",
initScript: "string",
dataDiskType: "string",
isolationGroup: "string",
minCpuPlatform: "string",
bootDiskType: "string",
subnetId: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
uk8sNodeId: "string",
userData: "string",
});
type: ucloud:Uk8sNode
properties:
availabilityZone: string
bootDiskType: string
chargeType: string
clusterId: string
dataDiskSize: 0
dataDiskType: string
deleteDisksWithInstance: false
disableScheduleOnCreate: false
duration: 0
imageId: string
initScript: string
instanceType: string
isolationGroup: string
minCpuPlatform: string
password: string
subnetId: string
timeouts:
create: string
delete: string
update: string
uk8sNodeId: string
userData: string
Uk8sNode Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Uk8sNode resource accepts the following input properties:
- Availability
Zone string - Availability zone where instance is located. such as:
cn-bj2-02
. You may refer to list of availability zone - Cluster
Id string - The ID of uk8s cluster.
- Instance
Type string - The type of instance, please visit the instance type table
- Password string
- Boot
Disk stringType - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
andcloud_ssd
are not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - Charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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_normal
andlocal_ssd
for local data disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. - Delete
Disks boolWith Instance - Disable
Schedule boolOn Create - Whether disable any pod scheduling on the node is created.
- Duration double
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Image
Id string - The ID for the image to use for the instance.
- Init
Script string - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- Isolation
Group string - The ID of the associated isolation group.
- 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/Auto
as the Intel CPU platform version will be selected randomly by system;Intel/IvyBridge
as Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridge
and above;Intel/Haswell
as Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswell
and above;Intel/Broadwell
as Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwell
and above;Intel/Skylake
as Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylake
and above;Intel/Cascadelake
as Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake
;Intel/CascadelakeR
as the version of Intel CPU platform, currently can only support by theos
instance type;- The AMD CPU platform:
Amd/Auto
as the Amd CPU platform version will be selected randomly by system;Amd/Epyc2
as the version of Amd CPU platform selected by system will beAmd/Epyc2
and above;- The Ampere CPU platform:
Ampere/Altra
as the version of Ampere CPU platform selected by system will beAmpere/Altra
and above.
- Subnet
Id string - The ID of subnet. If defined
vpc_id
, thesubnet_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - Timeouts
Uk8s
Node Timeouts - Uk8s
Node 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
- Availability
Zone string - Availability zone where instance is located. such as:
cn-bj2-02
. You may refer to list of availability zone - Cluster
Id string - The ID of uk8s cluster.
- Instance
Type string - The type of instance, please visit the instance type table
- Password string
- Boot
Disk stringType - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
andcloud_ssd
are not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - Charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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_normal
andlocal_ssd
for local data disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. - Delete
Disks boolWith Instance - Disable
Schedule boolOn Create - Whether disable any pod scheduling on the node is created.
- Duration float64
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Image
Id string - The ID for the image to use for the instance.
- Init
Script string - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- Isolation
Group string - The ID of the associated isolation group.
- 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/Auto
as the Intel CPU platform version will be selected randomly by system;Intel/IvyBridge
as Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridge
and above;Intel/Haswell
as Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswell
and above;Intel/Broadwell
as Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwell
and above;Intel/Skylake
as Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylake
and above;Intel/Cascadelake
as Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake
;Intel/CascadelakeR
as the version of Intel CPU platform, currently can only support by theos
instance type;- The AMD CPU platform:
Amd/Auto
as the Amd CPU platform version will be selected randomly by system;Amd/Epyc2
as the version of Amd CPU platform selected by system will beAmd/Epyc2
and above;- The Ampere CPU platform:
Ampere/Altra
as the version of Ampere CPU platform selected by system will beAmpere/Altra
and above.
- Subnet
Id string - The ID of subnet. If defined
vpc_id
, thesubnet_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - Timeouts
Uk8s
Node Timeouts Args - Uk8s
Node 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
- availability
Zone String - Availability zone where instance is located. such as:
cn-bj2-02
. You may refer to list of availability zone - cluster
Id String - The ID of uk8s cluster.
- instance
Type String - The type of instance, please visit the instance type table
- password String
- boot
Disk StringType - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
andcloud_ssd
are not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - charge
Type String - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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_normal
andlocal_ssd
for local data disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. - delete
Disks BooleanWith Instance - disable
Schedule BooleanOn Create - Whether disable any pod scheduling on the node is created.
- duration Double
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - image
Id String - The ID for the image to use for the instance.
- init
Script String - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- isolation
Group String - The ID of the associated isolation group.
- 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/Auto
as the Intel CPU platform version will be selected randomly by system;Intel/IvyBridge
as Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridge
and above;Intel/Haswell
as Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswell
and above;Intel/Broadwell
as Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwell
and above;Intel/Skylake
as Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylake
and above;Intel/Cascadelake
as Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake
;Intel/CascadelakeR
as the version of Intel CPU platform, currently can only support by theos
instance type;- The AMD CPU platform:
Amd/Auto
as the Amd CPU platform version will be selected randomly by system;Amd/Epyc2
as the version of Amd CPU platform selected by system will beAmd/Epyc2
and above;- The Ampere CPU platform:
Ampere/Altra
as the version of Ampere CPU platform selected by system will beAmpere/Altra
and above.
- subnet
Id String - The ID of subnet. If defined
vpc_id
, thesubnet_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - timeouts
Uk8s
Node Timeouts - uk8s
Node 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
- availability
Zone string - Availability zone where instance is located. such as:
cn-bj2-02
. You may refer to list of availability zone - cluster
Id string - The ID of uk8s cluster.
- instance
Type string - The type of instance, please visit the instance type table
- password string
- boot
Disk stringType - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
andcloud_ssd
are not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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_normal
andlocal_ssd
for local data disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. - delete
Disks booleanWith Instance - disable
Schedule booleanOn Create - Whether disable any pod scheduling on the node is created.
- duration number
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - image
Id string - The ID for the image to use for the instance.
- init
Script string - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- isolation
Group string - The ID of the associated isolation group.
- 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/Auto
as the Intel CPU platform version will be selected randomly by system;Intel/IvyBridge
as Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridge
and above;Intel/Haswell
as Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswell
and above;Intel/Broadwell
as Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwell
and above;Intel/Skylake
as Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylake
and above;Intel/Cascadelake
as Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake
;Intel/CascadelakeR
as the version of Intel CPU platform, currently can only support by theos
instance type;- The AMD CPU platform:
Amd/Auto
as the Amd CPU platform version will be selected randomly by system;Amd/Epyc2
as the version of Amd CPU platform selected by system will beAmd/Epyc2
and above;- The Ampere CPU platform:
Ampere/Altra
as the version of Ampere CPU platform selected by system will beAmpere/Altra
and above.
- subnet
Id string - The ID of subnet. If defined
vpc_id
, thesubnet_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - timeouts
Uk8s
Node Timeouts - uk8s
Node 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
- availability_
zone str - Availability zone where instance is located. such as:
cn-bj2-02
. You may refer to list of availability zone - cluster_
id str - The ID of uk8s cluster.
- instance_
type str - The type of instance, please visit the instance type table
- password str
- boot_
disk_ strtype - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
andcloud_ssd
are not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - charge_
type str - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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_normal
andlocal_ssd
for local data disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. - delete_
disks_ boolwith_ instance - disable_
schedule_ boolon_ create - Whether disable any pod scheduling on the node is created.
- duration float
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - image_
id str - The ID for the image to use for the instance.
- init_
script str - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- isolation_
group str - The ID of the associated isolation group.
- min_
cpu_ 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/Auto
as the Intel CPU platform version will be selected randomly by system;Intel/IvyBridge
as Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridge
and above;Intel/Haswell
as Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswell
and above;Intel/Broadwell
as Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwell
and above;Intel/Skylake
as Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylake
and above;Intel/Cascadelake
as Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake
;Intel/CascadelakeR
as the version of Intel CPU platform, currently can only support by theos
instance type;- The AMD CPU platform:
Amd/Auto
as the Amd CPU platform version will be selected randomly by system;Amd/Epyc2
as the version of Amd CPU platform selected by system will beAmd/Epyc2
and above;- The Ampere CPU platform:
Ampere/Altra
as the version of Ampere CPU platform selected by system will beAmpere/Altra
and above.
- subnet_
id str - The ID of subnet. If defined
vpc_id
, thesubnet_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - timeouts
Uk8s
Node Timeouts Args - uk8s_
node_ 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
- availability
Zone String - Availability zone where instance is located. such as:
cn-bj2-02
. You may refer to list of availability zone - cluster
Id String - The ID of uk8s cluster.
- instance
Type String - The type of instance, please visit the instance type table
- password String
- boot
Disk StringType - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
andcloud_ssd
are not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - charge
Type String - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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_normal
andlocal_ssd
for local data disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. - delete
Disks BooleanWith Instance - disable
Schedule BooleanOn Create - Whether disable any pod scheduling on the node is created.
- duration Number
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - image
Id String - The ID for the image to use for the instance.
- init
Script String - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- isolation
Group String - The ID of the associated isolation group.
- 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/Auto
as the Intel CPU platform version will be selected randomly by system;Intel/IvyBridge
as Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridge
and above;Intel/Haswell
as Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswell
and above;Intel/Broadwell
as Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwell
and above;Intel/Skylake
as Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylake
and above;Intel/Cascadelake
as Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake
;Intel/CascadelakeR
as the version of Intel CPU platform, currently can only support by theos
instance type;- The AMD CPU platform:
Amd/Auto
as the Amd CPU platform version will be selected randomly by system;Amd/Epyc2
as the version of Amd CPU platform selected by system will beAmd/Epyc2
and above;- The Ampere CPU platform:
Ampere/Altra
as the version of Ampere CPU platform selected by system will beAmpere/Altra
and above.
- subnet
Id String - The ID of subnet. If defined
vpc_id
, thesubnet_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - timeouts Property Map
- uk8s
Node 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
Outputs
All input properties are implicitly available as output properties. Additionally, the Uk8sNode resource produces the following output properties:
- Create
Time string - The time of creation for instance, formatted in RFC3339 time string.
- Expire
Time string - The expiration time for instance, formatted in RFC3339 time string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Sets List<Uk8sNode Ip Set> - It is a nested type which documented below.
- Status string
- Instance current status. Possible values are
Initializing
,Starting
,Running
,Stopping
,Deleting
,ToBeDeleted
,Stopped
,Install Fail
andError
.
- Create
Time string - The time of creation for instance, formatted in RFC3339 time string.
- Expire
Time string - The expiration time for instance, formatted in RFC3339 time string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Sets []Uk8sNode Ip Set - It is a nested type which documented below.
- Status string
- Instance current status. Possible values are
Initializing
,Starting
,Running
,Stopping
,Deleting
,ToBeDeleted
,Stopped
,Install Fail
andError
.
- create
Time String - The time of creation for instance, formatted in RFC3339 time string.
- expire
Time String - The expiration time for instance, formatted in RFC3339 time string.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Sets List<Uk8sNode Ip Set> - It is a nested type which documented below.
- status String
- Instance current status. Possible values are
Initializing
,Starting
,Running
,Stopping
,Deleting
,ToBeDeleted
,Stopped
,Install Fail
andError
.
- create
Time string - The time of creation for instance, formatted in RFC3339 time string.
- expire
Time string - The expiration time for instance, formatted in RFC3339 time string.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Sets Uk8sNode Ip Set[] - It is a nested type which documented below.
- status string
- Instance current status. Possible values are
Initializing
,Starting
,Running
,Stopping
,Deleting
,ToBeDeleted
,Stopped
,Install Fail
andError
.
- create_
time str - The time of creation for instance, formatted in RFC3339 time string.
- expire_
time str - The expiration time for instance, formatted in RFC3339 time string.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
sets Sequence[Uk8sNode Ip Set] - It is a nested type which documented below.
- status str
- Instance current status. Possible values are
Initializing
,Starting
,Running
,Stopping
,Deleting
,ToBeDeleted
,Stopped
,Install Fail
andError
.
- create
Time String - The time of creation for instance, formatted in RFC3339 time string.
- expire
Time String - The expiration time for instance, formatted in RFC3339 time string.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Sets List<Property Map> - It is a nested type which documented below.
- status String
- Instance current status. Possible values are
Initializing
,Starting
,Running
,Stopping
,Deleting
,ToBeDeleted
,Stopped
,Install Fail
andError
.
Look up Existing Uk8sNode Resource
Get an existing Uk8sNode resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: Uk8sNodeState, opts?: CustomResourceOptions): Uk8sNode
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
boot_disk_type: Optional[str] = None,
charge_type: Optional[str] = None,
cluster_id: Optional[str] = None,
create_time: Optional[str] = None,
data_disk_size: Optional[float] = None,
data_disk_type: Optional[str] = None,
delete_disks_with_instance: Optional[bool] = None,
disable_schedule_on_create: Optional[bool] = None,
duration: Optional[float] = None,
expire_time: Optional[str] = None,
image_id: Optional[str] = None,
init_script: Optional[str] = None,
instance_type: Optional[str] = None,
ip_sets: Optional[Sequence[Uk8sNodeIpSetArgs]] = None,
isolation_group: Optional[str] = None,
min_cpu_platform: Optional[str] = None,
password: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
timeouts: Optional[Uk8sNodeTimeoutsArgs] = None,
uk8s_node_id: Optional[str] = None,
user_data: Optional[str] = None) -> Uk8sNode
func GetUk8sNode(ctx *Context, name string, id IDInput, state *Uk8sNodeState, opts ...ResourceOption) (*Uk8sNode, error)
public static Uk8sNode Get(string name, Input<string> id, Uk8sNodeState? state, CustomResourceOptions? opts = null)
public static Uk8sNode get(String name, Output<String> id, Uk8sNodeState state, CustomResourceOptions options)
resources: _: type: ucloud:Uk8sNode get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Availability
Zone string - Availability zone where instance is located. such as:
cn-bj2-02
. You may refer to list of availability zone - Boot
Disk stringType - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
andcloud_ssd
are not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - Charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Cluster
Id string - The ID of uk8s cluster.
- Create
Time string - The time of creation for instance, formatted in RFC3339 time string.
- 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_normal
andlocal_ssd
for local data disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. - Delete
Disks boolWith Instance - Disable
Schedule boolOn Create - Whether disable any pod scheduling on the node is created.
- Duration double
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Expire
Time string - The expiration time for instance, formatted in RFC3339 time string.
- Image
Id string - The ID for the image to use for the instance.
- Init
Script string - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- Instance
Type string - The type of instance, please visit the instance type table
- Ip
Sets List<Uk8sNode Ip Set> - It is a nested type which documented below.
- Isolation
Group string - The ID of the associated isolation group.
- 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/Auto
as the Intel CPU platform version will be selected randomly by system;Intel/IvyBridge
as Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridge
and above;Intel/Haswell
as Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswell
and above;Intel/Broadwell
as Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwell
and above;Intel/Skylake
as Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylake
and above;Intel/Cascadelake
as Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake
;Intel/CascadelakeR
as the version of Intel CPU platform, currently can only support by theos
instance type;- The AMD CPU platform:
Amd/Auto
as the Amd CPU platform version will be selected randomly by system;Amd/Epyc2
as the version of Amd CPU platform selected by system will beAmd/Epyc2
and above;- The Ampere CPU platform:
Ampere/Altra
as the version of Ampere CPU platform selected by system will beAmpere/Altra
and above.
- Password string
- Status string
- Instance current status. Possible values are
Initializing
,Starting
,Running
,Stopping
,Deleting
,ToBeDeleted
,Stopped
,Install Fail
andError
. - Subnet
Id string - The ID of subnet. If defined
vpc_id
, thesubnet_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - Timeouts
Uk8s
Node Timeouts - Uk8s
Node 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
- Availability
Zone string - Availability zone where instance is located. such as:
cn-bj2-02
. You may refer to list of availability zone - Boot
Disk stringType - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
andcloud_ssd
are not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - Charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Cluster
Id string - The ID of uk8s cluster.
- Create
Time string - The time of creation for instance, formatted in RFC3339 time string.
- 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_normal
andlocal_ssd
for local data disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. - Delete
Disks boolWith Instance - Disable
Schedule boolOn Create - Whether disable any pod scheduling on the node is created.
- Duration float64
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Expire
Time string - The expiration time for instance, formatted in RFC3339 time string.
- Image
Id string - The ID for the image to use for the instance.
- Init
Script string - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- Instance
Type string - The type of instance, please visit the instance type table
- Ip
Sets []Uk8sNode Ip Set Args - It is a nested type which documented below.
- Isolation
Group string - The ID of the associated isolation group.
- 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/Auto
as the Intel CPU platform version will be selected randomly by system;Intel/IvyBridge
as Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridge
and above;Intel/Haswell
as Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswell
and above;Intel/Broadwell
as Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwell
and above;Intel/Skylake
as Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylake
and above;Intel/Cascadelake
as Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake
;Intel/CascadelakeR
as the version of Intel CPU platform, currently can only support by theos
instance type;- The AMD CPU platform:
Amd/Auto
as the Amd CPU platform version will be selected randomly by system;Amd/Epyc2
as the version of Amd CPU platform selected by system will beAmd/Epyc2
and above;- The Ampere CPU platform:
Ampere/Altra
as the version of Ampere CPU platform selected by system will beAmpere/Altra
and above.
- Password string
- Status string
- Instance current status. Possible values are
Initializing
,Starting
,Running
,Stopping
,Deleting
,ToBeDeleted
,Stopped
,Install Fail
andError
. - Subnet
Id string - The ID of subnet. If defined
vpc_id
, thesubnet_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - Timeouts
Uk8s
Node Timeouts Args - Uk8s
Node 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
- availability
Zone String - Availability zone where instance is located. such as:
cn-bj2-02
. You may refer to list of availability zone - boot
Disk StringType - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
andcloud_ssd
are not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - charge
Type String - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - cluster
Id String - The ID of uk8s cluster.
- create
Time String - The time of creation for instance, formatted in RFC3339 time string.
- 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_normal
andlocal_ssd
for local data disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. - delete
Disks BooleanWith Instance - disable
Schedule BooleanOn Create - Whether disable any pod scheduling on the node is created.
- duration Double
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - expire
Time String - The expiration time for instance, formatted in RFC3339 time string.
- image
Id String - The ID for the image to use for the instance.
- init
Script String - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- instance
Type String - The type of instance, please visit the instance type table
- ip
Sets List<Uk8sNode Ip Set> - It is a nested type which documented below.
- isolation
Group String - The ID of the associated isolation group.
- 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/Auto
as the Intel CPU platform version will be selected randomly by system;Intel/IvyBridge
as Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridge
and above;Intel/Haswell
as Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswell
and above;Intel/Broadwell
as Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwell
and above;Intel/Skylake
as Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylake
and above;Intel/Cascadelake
as Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake
;Intel/CascadelakeR
as the version of Intel CPU platform, currently can only support by theos
instance type;- The AMD CPU platform:
Amd/Auto
as the Amd CPU platform version will be selected randomly by system;Amd/Epyc2
as the version of Amd CPU platform selected by system will beAmd/Epyc2
and above;- The Ampere CPU platform:
Ampere/Altra
as the version of Ampere CPU platform selected by system will beAmpere/Altra
and above.
- password String
- status String
- Instance current status. Possible values are
Initializing
,Starting
,Running
,Stopping
,Deleting
,ToBeDeleted
,Stopped
,Install Fail
andError
. - subnet
Id String - The ID of subnet. If defined
vpc_id
, thesubnet_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - timeouts
Uk8s
Node Timeouts - uk8s
Node 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
- availability
Zone string - Availability zone where instance is located. such as:
cn-bj2-02
. You may refer to list of availability zone - boot
Disk stringType - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
andcloud_ssd
are not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - cluster
Id string - The ID of uk8s cluster.
- create
Time string - The time of creation for instance, formatted in RFC3339 time string.
- 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_normal
andlocal_ssd
for local data disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. - delete
Disks booleanWith Instance - disable
Schedule booleanOn Create - Whether disable any pod scheduling on the node is created.
- duration number
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - expire
Time string - The expiration time for instance, formatted in RFC3339 time string.
- image
Id string - The ID for the image to use for the instance.
- init
Script string - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- instance
Type string - The type of instance, please visit the instance type table
- ip
Sets Uk8sNode Ip Set[] - It is a nested type which documented below.
- isolation
Group string - The ID of the associated isolation group.
- 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/Auto
as the Intel CPU platform version will be selected randomly by system;Intel/IvyBridge
as Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridge
and above;Intel/Haswell
as Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswell
and above;Intel/Broadwell
as Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwell
and above;Intel/Skylake
as Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylake
and above;Intel/Cascadelake
as Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake
;Intel/CascadelakeR
as the version of Intel CPU platform, currently can only support by theos
instance type;- The AMD CPU platform:
Amd/Auto
as the Amd CPU platform version will be selected randomly by system;Amd/Epyc2
as the version of Amd CPU platform selected by system will beAmd/Epyc2
and above;- The Ampere CPU platform:
Ampere/Altra
as the version of Ampere CPU platform selected by system will beAmpere/Altra
and above.
- password string
- status string
- Instance current status. Possible values are
Initializing
,Starting
,Running
,Stopping
,Deleting
,ToBeDeleted
,Stopped
,Install Fail
andError
. - subnet
Id string - The ID of subnet. If defined
vpc_id
, thesubnet_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - timeouts
Uk8s
Node Timeouts - uk8s
Node 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
- availability_
zone str - Availability zone where instance is located. such as:
cn-bj2-02
. You may refer to list of availability zone - boot_
disk_ strtype - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
andcloud_ssd
are not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - charge_
type str - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - cluster_
id str - The ID of uk8s cluster.
- create_
time str - The time of creation for instance, formatted in RFC3339 time string.
- data_
disk_ 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_normal
andlocal_ssd
for local data disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. - delete_
disks_ boolwith_ instance - disable_
schedule_ boolon_ create - Whether disable any pod scheduling on the node is created.
- duration float
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - expire_
time str - The expiration time for instance, formatted in RFC3339 time string.
- image_
id str - The ID for the image to use for the instance.
- init_
script str - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- instance_
type str - The type of instance, please visit the instance type table
- ip_
sets Sequence[Uk8sNode Ip Set Args] - It is a nested type which documented below.
- isolation_
group str - The ID of the associated isolation group.
- 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/Auto
as the Intel CPU platform version will be selected randomly by system;Intel/IvyBridge
as Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridge
and above;Intel/Haswell
as Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswell
and above;Intel/Broadwell
as Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwell
and above;Intel/Skylake
as Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylake
and above;Intel/Cascadelake
as Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake
;Intel/CascadelakeR
as the version of Intel CPU platform, currently can only support by theos
instance type;- The AMD CPU platform:
Amd/Auto
as the Amd CPU platform version will be selected randomly by system;Amd/Epyc2
as the version of Amd CPU platform selected by system will beAmd/Epyc2
and above;- The Ampere CPU platform:
Ampere/Altra
as the version of Ampere CPU platform selected by system will beAmpere/Altra
and above.
- password str
- status str
- Instance current status. Possible values are
Initializing
,Starting
,Running
,Stopping
,Deleting
,ToBeDeleted
,Stopped
,Install Fail
andError
. - subnet_
id str - The ID of subnet. If defined
vpc_id
, thesubnet_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - timeouts
Uk8s
Node Timeouts Args - uk8s_
node_ 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
- availability
Zone String - Availability zone where instance is located. such as:
cn-bj2-02
. You may refer to list of availability zone - boot
Disk StringType - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
andcloud_ssd
are not fully support by all regions as boot disk type, please proceed to UCloud console for more details. - charge
Type String - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - cluster
Id String - The ID of uk8s cluster.
- create
Time String - The time of creation for instance, formatted in RFC3339 time string.
- 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_normal
andlocal_ssd
for local data disk,cloud_ssd
for cloud SSD boot disk,cloud_rssd
as RDMA-SSD cloud disk. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. - delete
Disks BooleanWith Instance - disable
Schedule BooleanOn Create - Whether disable any pod scheduling on the node is created.
- duration Number
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - expire
Time String - The expiration time for instance, formatted in RFC3339 time string.
- image
Id String - The ID for the image to use for the instance.
- init
Script String - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- instance
Type String - The type of instance, please visit the instance type table
- ip
Sets List<Property Map> - It is a nested type which documented below.
- isolation
Group String - The ID of the associated isolation group.
- 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/Auto
as the Intel CPU platform version will be selected randomly by system;Intel/IvyBridge
as Intel V2, the version of Intel CPU platform selected by system will beIntel/IvyBridge
and above;Intel/Haswell
as Intel V3, the version of Intel CPU platform selected by system will beIntel/Haswell
and above;Intel/Broadwell
as Intel V4, the version of Intel CPU platform selected by system will beIntel/Broadwell
and above;Intel/Skylake
as Intel V5, the version of Intel CPU platform selected by system will beIntel/Skylake
and above;Intel/Cascadelake
as Intel V6, the version of Intel CPU platform selected by system will beIntel/Cascadelake
;Intel/CascadelakeR
as the version of Intel CPU platform, currently can only support by theos
instance type;- The AMD CPU platform:
Amd/Auto
as the Amd CPU platform version will be selected randomly by system;Amd/Epyc2
as the version of Amd CPU platform selected by system will beAmd/Epyc2
and above;- The Ampere CPU platform:
Ampere/Altra
as the version of Ampere CPU platform selected by system will beAmpere/Altra
and above.
- password String
- status String
- Instance current status. Possible values are
Initializing
,Starting
,Running
,Stopping
,Deleting
,ToBeDeleted
,Stopped
,Install Fail
andError
. - subnet
Id String - The ID of subnet. If defined
vpc_id
, thesubnet_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - timeouts Property Map
- uk8s
Node 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
Supporting Types
Uk8sNodeIpSet, Uk8sNodeIpSetArgs
- Internet
Type string - Type of Elastic IP routes. Possible values are:
International
as international BGP IP,BGP
as china BGP IP andPrivate
as private IP. - Ip string
- Elastic IP address.
- Internet
Type string - Type of Elastic IP routes. Possible values are:
International
as international BGP IP,BGP
as china BGP IP andPrivate
as private IP. - Ip string
- Elastic IP address.
- internet
Type String - Type of Elastic IP routes. Possible values are:
International
as international BGP IP,BGP
as china BGP IP andPrivate
as private IP. - ip String
- Elastic IP address.
- internet
Type string - Type of Elastic IP routes. Possible values are:
International
as international BGP IP,BGP
as china BGP IP andPrivate
as private IP. - ip string
- Elastic IP address.
- internet_
type str - Type of Elastic IP routes. Possible values are:
International
as international BGP IP,BGP
as china BGP IP andPrivate
as private IP. - ip str
- Elastic IP address.
- internet
Type String - Type of Elastic IP routes. Possible values are:
International
as international BGP IP,BGP
as china BGP IP andPrivate
as private IP. - ip String
- Elastic IP address.
Uk8sNodeTimeouts, Uk8sNodeTimeoutsArgs
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloud
Terraform Provider.