ucloud.Uk8sCluster
Explore with Pulumi AI
Provides an UK8S Cluster resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";
const fooVpc = new ucloud.Vpc("fooVpc", {
cidrBlocks: ["192.168.0.0/16"],
tag: "tf-acc",
});
const fooSubnet = new ucloud.Subnet("fooSubnet", {
cidrBlock: "192.168.1.0/24",
tag: "tf-acc",
vpcId: fooVpc.vpcId,
});
const _default = ucloud.getZones({});
const fooUk8sCluster = new ucloud.Uk8sCluster("fooUk8sCluster", {
chargeType: "dynamic",
master: {
availabilityZones: [
_default.then(_default => _default.zones?.[0]?.id),
_default.then(_default => _default.zones?.[0]?.id),
_default.then(_default => _default.zones?.[0]?.id),
],
instanceType: "n-basic-2",
},
password: "ucloud_2021",
serviceCidr: "172.16.0.0/16",
subnetId: fooSubnet.subnetId,
vpcId: fooVpc.vpcId,
});
import pulumi
import pulumi_ucloud as ucloud
foo_vpc = ucloud.Vpc("fooVpc",
cidr_blocks=["192.168.0.0/16"],
tag="tf-acc")
foo_subnet = ucloud.Subnet("fooSubnet",
cidr_block="192.168.1.0/24",
tag="tf-acc",
vpc_id=foo_vpc.vpc_id)
default = ucloud.get_zones()
foo_uk8s_cluster = ucloud.Uk8sCluster("fooUk8sCluster",
charge_type="dynamic",
master={
"availability_zones": [
default.zones[0].id,
default.zones[0].id,
default.zones[0].id,
],
"instance_type": "n-basic-2",
},
password="ucloud_2021",
service_cidr="172.16.0.0/16",
subnet_id=foo_subnet.subnet_id,
vpc_id=foo_vpc.vpc_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooVpc, err := ucloud.NewVpc(ctx, "fooVpc", &ucloud.VpcArgs{
CidrBlocks: pulumi.StringArray{
pulumi.String("192.168.0.0/16"),
},
Tag: pulumi.String("tf-acc"),
})
if err != nil {
return err
}
fooSubnet, err := ucloud.NewSubnet(ctx, "fooSubnet", &ucloud.SubnetArgs{
CidrBlock: pulumi.String("192.168.1.0/24"),
Tag: pulumi.String("tf-acc"),
VpcId: fooVpc.VpcId,
})
if err != nil {
return err
}
_default, err := ucloud.GetZones(ctx, &ucloud.GetZonesArgs{}, nil)
if err != nil {
return err
}
_, err = ucloud.NewUk8sCluster(ctx, "fooUk8sCluster", &ucloud.Uk8sClusterArgs{
ChargeType: pulumi.String("dynamic"),
Master: &ucloud.Uk8sClusterMasterArgs{
AvailabilityZones: pulumi.StringArray{
pulumi.String(_default.Zones[0].Id),
pulumi.String(_default.Zones[0].Id),
pulumi.String(_default.Zones[0].Id),
},
InstanceType: pulumi.String("n-basic-2"),
},
Password: pulumi.String("ucloud_2021"),
ServiceCidr: pulumi.String("172.16.0.0/16"),
SubnetId: fooSubnet.SubnetId,
VpcId: fooVpc.VpcId,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;
return await Deployment.RunAsync(() =>
{
var fooVpc = new Ucloud.Vpc("fooVpc", new()
{
CidrBlocks = new[]
{
"192.168.0.0/16",
},
Tag = "tf-acc",
});
var fooSubnet = new Ucloud.Subnet("fooSubnet", new()
{
CidrBlock = "192.168.1.0/24",
Tag = "tf-acc",
VpcId = fooVpc.VpcId,
});
var @default = Ucloud.GetZones.Invoke();
var fooUk8sCluster = new Ucloud.Uk8sCluster("fooUk8sCluster", new()
{
ChargeType = "dynamic",
Master = new Ucloud.Inputs.Uk8sClusterMasterArgs
{
AvailabilityZones = new[]
{
@default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
@default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
@default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
},
InstanceType = "n-basic-2",
},
Password = "ucloud_2021",
ServiceCidr = "172.16.0.0/16",
SubnetId = fooSubnet.SubnetId,
VpcId = fooVpc.VpcId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.Vpc;
import com.pulumi.ucloud.VpcArgs;
import com.pulumi.ucloud.Subnet;
import com.pulumi.ucloud.SubnetArgs;
import com.pulumi.ucloud.UcloudFunctions;
import com.pulumi.ucloud.inputs.GetZonesArgs;
import com.pulumi.ucloud.Uk8sCluster;
import com.pulumi.ucloud.Uk8sClusterArgs;
import com.pulumi.ucloud.inputs.Uk8sClusterMasterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.cidrBlocks("192.168.0.0/16")
.tag("tf-acc")
.build());
var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
.cidrBlock("192.168.1.0/24")
.tag("tf-acc")
.vpcId(fooVpc.vpcId())
.build());
final var default = UcloudFunctions.getZones();
var fooUk8sCluster = new Uk8sCluster("fooUk8sCluster", Uk8sClusterArgs.builder()
.chargeType("dynamic")
.master(Uk8sClusterMasterArgs.builder()
.availabilityZones(
default_.zones()[0].id(),
default_.zones()[0].id(),
default_.zones()[0].id())
.instanceType("n-basic-2")
.build())
.password("ucloud_2021")
.serviceCidr("172.16.0.0/16")
.subnetId(fooSubnet.subnetId())
.vpcId(fooVpc.vpcId())
.build());
}
}
resources:
fooVpc:
type: ucloud:Vpc
properties:
cidrBlocks:
- 192.168.0.0/16
tag: tf-acc
fooSubnet:
type: ucloud:Subnet
properties:
cidrBlock: 192.168.1.0/24
tag: tf-acc
vpcId: ${fooVpc.vpcId}
fooUk8sCluster:
type: ucloud:Uk8sCluster
properties:
chargeType: dynamic
master:
availabilityZones:
- ${default.zones[0].id}
- ${default.zones[0].id}
- ${default.zones[0].id}
instanceType: n-basic-2
password: ucloud_2021
serviceCidr: 172.16.0.0/16
subnetId: ${fooSubnet.subnetId}
vpcId: ${fooVpc.vpcId}
variables:
default:
fn::invoke:
function: ucloud:getZones
arguments: {}
Create Uk8sCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Uk8sCluster(name: string, args: Uk8sClusterArgs, opts?: CustomResourceOptions);
@overload
def Uk8sCluster(resource_name: str,
args: Uk8sClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Uk8sCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
subnet_id: Optional[str] = None,
password: Optional[str] = None,
vpc_id: Optional[str] = None,
service_cidr: Optional[str] = None,
master: Optional[Uk8sClusterMasterArgs] = None,
name: Optional[str] = None,
k8s_version: Optional[str] = None,
kube_proxy: Optional[Uk8sClusterKubeProxyArgs] = None,
delete_disks_with_instance: Optional[bool] = None,
init_script: Optional[str] = None,
image_id: Optional[str] = None,
enable_external_api_server: Optional[bool] = None,
charge_type: Optional[str] = None,
timeouts: Optional[Uk8sClusterTimeoutsArgs] = None,
uk8s_cluster_id: Optional[str] = None,
user_data: Optional[str] = None,
duration: Optional[float] = None)
func NewUk8sCluster(ctx *Context, name string, args Uk8sClusterArgs, opts ...ResourceOption) (*Uk8sCluster, error)
public Uk8sCluster(string name, Uk8sClusterArgs args, CustomResourceOptions? opts = null)
public Uk8sCluster(String name, Uk8sClusterArgs args)
public Uk8sCluster(String name, Uk8sClusterArgs args, CustomResourceOptions options)
type: ucloud:Uk8sCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args Uk8sClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args Uk8sClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args Uk8sClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Uk8sClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Uk8sClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var uk8sClusterResource = new Ucloud.Uk8sCluster("uk8sClusterResource", new()
{
SubnetId = "string",
Password = "string",
VpcId = "string",
ServiceCidr = "string",
Master = new Ucloud.Inputs.Uk8sClusterMasterArgs
{
AvailabilityZones = new[]
{
"string",
},
InstanceType = "string",
BootDiskType = "string",
DataDiskSize = 0,
DataDiskType = "string",
MinCpuPlatform = "string",
},
Name = "string",
K8sVersion = "string",
KubeProxy = new Ucloud.Inputs.Uk8sClusterKubeProxyArgs
{
Mode = "string",
},
DeleteDisksWithInstance = false,
InitScript = "string",
ImageId = "string",
EnableExternalApiServer = false,
ChargeType = "string",
Timeouts = new Ucloud.Inputs.Uk8sClusterTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Uk8sClusterId = "string",
UserData = "string",
Duration = 0,
});
example, err := ucloud.NewUk8sCluster(ctx, "uk8sClusterResource", &ucloud.Uk8sClusterArgs{
SubnetId: pulumi.String("string"),
Password: pulumi.String("string"),
VpcId: pulumi.String("string"),
ServiceCidr: pulumi.String("string"),
Master: &ucloud.Uk8sClusterMasterArgs{
AvailabilityZones: pulumi.StringArray{
pulumi.String("string"),
},
InstanceType: pulumi.String("string"),
BootDiskType: pulumi.String("string"),
DataDiskSize: pulumi.Float64(0),
DataDiskType: pulumi.String("string"),
MinCpuPlatform: pulumi.String("string"),
},
Name: pulumi.String("string"),
K8sVersion: pulumi.String("string"),
KubeProxy: &ucloud.Uk8sClusterKubeProxyArgs{
Mode: pulumi.String("string"),
},
DeleteDisksWithInstance: pulumi.Bool(false),
InitScript: pulumi.String("string"),
ImageId: pulumi.String("string"),
EnableExternalApiServer: pulumi.Bool(false),
ChargeType: pulumi.String("string"),
Timeouts: &ucloud.Uk8sClusterTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Uk8sClusterId: pulumi.String("string"),
UserData: pulumi.String("string"),
Duration: pulumi.Float64(0),
})
var uk8sClusterResource = new Uk8sCluster("uk8sClusterResource", Uk8sClusterArgs.builder()
.subnetId("string")
.password("string")
.vpcId("string")
.serviceCidr("string")
.master(Uk8sClusterMasterArgs.builder()
.availabilityZones("string")
.instanceType("string")
.bootDiskType("string")
.dataDiskSize(0)
.dataDiskType("string")
.minCpuPlatform("string")
.build())
.name("string")
.k8sVersion("string")
.kubeProxy(Uk8sClusterKubeProxyArgs.builder()
.mode("string")
.build())
.deleteDisksWithInstance(false)
.initScript("string")
.imageId("string")
.enableExternalApiServer(false)
.chargeType("string")
.timeouts(Uk8sClusterTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.uk8sClusterId("string")
.userData("string")
.duration(0)
.build());
uk8s_cluster_resource = ucloud.Uk8sCluster("uk8sClusterResource",
subnet_id="string",
password="string",
vpc_id="string",
service_cidr="string",
master={
"availability_zones": ["string"],
"instance_type": "string",
"boot_disk_type": "string",
"data_disk_size": 0,
"data_disk_type": "string",
"min_cpu_platform": "string",
},
name="string",
k8s_version="string",
kube_proxy={
"mode": "string",
},
delete_disks_with_instance=False,
init_script="string",
image_id="string",
enable_external_api_server=False,
charge_type="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
uk8s_cluster_id="string",
user_data="string",
duration=0)
const uk8sClusterResource = new ucloud.Uk8sCluster("uk8sClusterResource", {
subnetId: "string",
password: "string",
vpcId: "string",
serviceCidr: "string",
master: {
availabilityZones: ["string"],
instanceType: "string",
bootDiskType: "string",
dataDiskSize: 0,
dataDiskType: "string",
minCpuPlatform: "string",
},
name: "string",
k8sVersion: "string",
kubeProxy: {
mode: "string",
},
deleteDisksWithInstance: false,
initScript: "string",
imageId: "string",
enableExternalApiServer: false,
chargeType: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
uk8sClusterId: "string",
userData: "string",
duration: 0,
});
type: ucloud:Uk8sCluster
properties:
chargeType: string
deleteDisksWithInstance: false
duration: 0
enableExternalApiServer: false
imageId: string
initScript: string
k8sVersion: string
kubeProxy:
mode: string
master:
availabilityZones:
- string
bootDiskType: string
dataDiskSize: 0
dataDiskType: string
instanceType: string
minCpuPlatform: string
name: string
password: string
serviceCidr: string
subnetId: string
timeouts:
create: string
delete: string
update: string
uk8sClusterId: string
userData: string
vpcId: string
Uk8sCluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Uk8sCluster resource accepts the following input properties:
- Master
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_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - Vpc
Id string - The ID of VPC linked to the instance. If not defined
vpc_id
, the instance will use the default VPC in the current region. - Charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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 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). - Enable
External boolApi Server - If expose the api server endpoint for external visiting.
- Image
Id string - The ID for the image to use for the 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
- 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_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - Vpc
Id string - The ID of VPC linked to the instance. If not defined
vpc_id
, the instance will use the default VPC in the current region. - Charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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 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). - Enable
External boolApi Server - If expose the api server endpoint for external visiting.
- Image
Id string - The ID for the image to use for the 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
- 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_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - vpc
Id String - The ID of VPC linked to the instance. If not defined
vpc_id
, the instance will use the default VPC in the current region. - charge
Type String - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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 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). - enable
External BooleanApi Server - If expose the api server endpoint for external visiting.
- image
Id String - The ID for the image to use for the 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
- 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_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - vpc
Id string - The ID of VPC linked to the instance. If not defined
vpc_id
, the instance will use the default VPC in the current region. - charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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 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). - enable
External booleanApi Server - If expose the api server endpoint for external visiting.
- image
Id string - The ID for the image to use for the 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
- 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_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - vpc_
id str - The ID of VPC linked to the instance. If not defined
vpc_id
, the instance will use the default VPC in the current region. - charge_
type str - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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 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). - enable_
external_ boolapi_ server - If expose the api server endpoint for external visiting.
- image_
id str - The ID for the image to use for the master nodes.
- init_
script str - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- k8s_
version str - The version of k8s. See also Create UK8S.
- kube_
proxy 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
- 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_id
is Required. If not definedvpc_id
andsubnet_id
, the instance will use the default subnet in the current region. - vpc
Id String - The ID of VPC linked to the instance. If not defined
vpc_id
, the instance will use the default VPC in the current region. - charge
Type String - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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 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). - enable
External BooleanApi Server - If expose the api server endpoint for external visiting.
- image
Id String - The ID for the image to use for the 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
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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pod
Cidr string - The CIDR block of pod network.
- Status string
- Instance current status. Possible values are
RUNNING
,CREATEFAILED
,DELETEFAILED
,ERROR
andABNORMAL
.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pod
Cidr string - The CIDR block of pod network.
- Status string
- Instance current status. Possible values are
RUNNING
,CREATEFAILED
,DELETEFAILED
,ERROR
andABNORMAL
.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- pod
Cidr String - The CIDR block of pod network.
- status String
- Instance current status. Possible values are
RUNNING
,CREATEFAILED
,DELETEFAILED
,ERROR
andABNORMAL
.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- pod
Cidr string - The CIDR block of pod network.
- status string
- Instance current status. Possible values are
RUNNING
,CREATEFAILED
,DELETEFAILED
,ERROR
andABNORMAL
.
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
- pod_
cidr str - The CIDR block of pod network.
- status str
- Instance current status. Possible values are
RUNNING
,CREATEFAILED
,DELETEFAILED
,ERROR
andABNORMAL
.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- pod
Cidr String - The CIDR block of pod network.
- status String
- Instance current status. Possible values are
RUNNING
,CREATEFAILED
,DELETEFAILED
,ERROR
andABNORMAL
.
Look up Existing Uk8sCluster Resource
Get an existing Uk8sCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: Uk8sClusterState, opts?: CustomResourceOptions): Uk8sCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_server: Optional[str] = None,
charge_type: Optional[str] = None,
create_time: Optional[str] = None,
delete_disks_with_instance: Optional[bool] = None,
duration: Optional[float] = None,
enable_external_api_server: Optional[bool] = None,
external_api_server: Optional[str] = None,
image_id: Optional[str] = None,
init_script: Optional[str] = None,
k8s_version: Optional[str] = None,
kube_proxy: Optional[Uk8sClusterKubeProxyArgs] = None,
master: Optional[Uk8sClusterMasterArgs] = None,
name: Optional[str] = None,
password: Optional[str] = None,
pod_cidr: Optional[str] = None,
service_cidr: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
timeouts: Optional[Uk8sClusterTimeoutsArgs] = None,
uk8s_cluster_id: Optional[str] = None,
user_data: Optional[str] = None,
vpc_id: Optional[str] = None) -> Uk8sCluster
func GetUk8sCluster(ctx *Context, name string, id IDInput, state *Uk8sClusterState, opts ...ResourceOption) (*Uk8sCluster, error)
public static Uk8sCluster Get(string name, Input<string> id, Uk8sClusterState? state, CustomResourceOptions? opts = null)
public static Uk8sCluster get(String name, Output<String> id, Uk8sClusterState state, CustomResourceOptions options)
resources: _: type: ucloud:Uk8sCluster get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Api
Server string - The api server endpoint in cluster.
- Charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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 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). - Enable
External boolApi Server - If expose the api server endpoint for external visiting.
- External
Api stringServer - The api server endpoint for external visiting.
- Image
Id string - The ID for the image to use for the 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.
- 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
,ERROR
andABNORMAL
. - 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
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.
- Api
Server string - The api server endpoint in cluster.
- Charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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 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). - Enable
External boolApi Server - If expose the api server endpoint for external visiting.
- External
Api stringServer - The api server endpoint for external visiting.
- Image
Id string - The ID for the image to use for the 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.
- 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
,ERROR
andABNORMAL
. - 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
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.
- api
Server String - The api server endpoint in cluster.
- charge
Type String - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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 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). - enable
External BooleanApi Server - If expose the api server endpoint for external visiting.
- external
Api StringServer - The api server endpoint for external visiting.
- image
Id String - The ID for the image to use for the 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.
- 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
,ERROR
andABNORMAL
. - 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
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.
- api
Server string - The api server endpoint in cluster.
- charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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 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). - enable
External booleanApi Server - If expose the api server endpoint for external visiting.
- external
Api stringServer - The api server endpoint for external visiting.
- image
Id string - The ID for the image to use for the 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.
- 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
,ERROR
andABNORMAL
. - 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
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.
- api_
server str - The api server endpoint in cluster.
- charge_
type str - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - create_
time str - The time of creation for instance, formatted in RFC3339 time string.
- delete_
disks_ 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 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). - enable_
external_ boolapi_ server - If expose the api server endpoint for external visiting.
- external_
api_ strserver - The api server endpoint for external visiting.
- image_
id str - The ID for the image to use for the master nodes.
- init_
script str - The user data to customize the startup behaviors when launching the instance. You may refer to user_data_document
- k8s_
version str - The version of k8s. See also Create UK8S.
- kube_
proxy Uk8sCluster Kube Proxy Args - The configuration of kube proxy, See kube proxy for details of attributes.
- 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
,ERROR
andABNORMAL
. - 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
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.
- api
Server String - The api server endpoint in cluster.
- charge
Type String - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - 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 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). - enable
External BooleanApi Server - If expose the api server endpoint for external visiting.
- external
Api StringServer - The api server endpoint for external visiting.
- image
Id String - The ID for the image to use for the 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.
- 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
,ERROR
andABNORMAL
. - 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
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.
Supporting Types
Uk8sClusterKubeProxy, Uk8sClusterKubeProxyArgs
- Mode string
- The type of instance, please visit the instance type table
- Mode string
- The type of instance, please visit the instance type table
- mode String
- The type of instance, please visit the instance type table
- mode string
- The type of instance, please visit the instance type table
- mode str
- The type of instance, please visit the instance type table
- mode String
- The type of instance, please visit the instance type table
Uk8sClusterMaster, Uk8sClusterMasterArgs
- 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 - Instance
Type string - The type of instance, please visit the instance type table
- 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,rssd_data_disk
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. - 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. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_type
must be same asboot_disk_type
if specified. - 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.
- 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 - Instance
Type string - The type of instance, please visit the instance type table
- 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,rssd_data_disk
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. - 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. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_type
must be same asboot_disk_type
if specified. - 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.
- 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 - instance
Type String - The type of instance, please visit the instance type table
- 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,rssd_data_disk
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. - 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. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_type
must be same asboot_disk_type
if specified. - 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.
- 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 - instance
Type string - The type of instance, please visit the instance type table
- 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,rssd_data_disk
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. - 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. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_type
must be same asboot_disk_type
if specified. - 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.
- availability_
zones Sequence[str] - Availability zone list where instance is located. such as:
["cn-bj2-02", "cn-bj2-03", "cn-bj2-05"]
. You may refer to list of availability zone - instance_
type str - The type of instance, please visit the instance type table
- boot_
disk_ strtype - The type of boot disk. Possible values are:
local_normal
andlocal_ssd
for local boot disk,cloud_ssd
for cloud SSD boot disk,rssd_data_disk
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. - 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. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_type
must be same asboot_disk_type
if specified. - 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.
- 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 - instance
Type String - The type of instance, please visit the instance type table
- 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,rssd_data_disk
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. - 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. (Default:cloud_ssd
). Thelocal_ssd
is not fully support by all regions as data disk type, please proceed to UCloud console for more details. In addition, thedata_disk_type
must be same asboot_disk_type
if specified. - 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.
Uk8sClusterTimeouts, Uk8sClusterTimeoutsArgs
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloud
Terraform Provider.