published on Thursday, Sep 24, 2026 by ucloud
published on Thursday, Sep 24, 2026 by ucloud
Import
Import a node group using its cluster ID and node group ID, separated by /:
$ pulumi import ucloud:index/uk8sNodeGroup:Uk8sNodeGroup workers uk8s-example/nodegroup-example
Configure the provider with the cluster’s region and project. Import stores cluster_id separately and keeps the node group ID as the Terraform resource ID, matching normal creation. The remaining template fields are populated by reading the node group. Add the corresponding resource configuration and review pulumi preview after import.
Create Uk8sNodeGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Uk8sNodeGroup(name: string, args: Uk8sNodeGroupArgs, opts?: CustomResourceOptions);@overload
def Uk8sNodeGroup(resource_name: str,
args: Uk8sNodeGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Uk8sNodeGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
subnet_id: Optional[str] = None,
instance_type: Optional[str] = None,
availability_zone: Optional[str] = None,
data_disk_size: Optional[float] = None,
min_cpu_platform: Optional[str] = None,
data_disk_type: Optional[str] = None,
image_id: Optional[str] = None,
init_script: Optional[str] = None,
boot_disk_type: Optional[str] = None,
isolation_group: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
max_pods: Optional[float] = None,
charge_type: Optional[str] = None,
name: Optional[str] = None,
boot_disk_size: Optional[float] = None,
tag: Optional[str] = None,
taints: Optional[Sequence[Uk8sNodeGroupTaintArgs]] = None,
timeouts: Optional[Uk8sNodeGroupTimeoutsArgs] = None,
uhost_family: Optional[str] = None,
uk8s_node_group_id: Optional[str] = None,
user_data: Optional[str] = None)func NewUk8sNodeGroup(ctx *Context, name string, args Uk8sNodeGroupArgs, opts ...ResourceOption) (*Uk8sNodeGroup, error)public Uk8sNodeGroup(string name, Uk8sNodeGroupArgs args, CustomResourceOptions? opts = null)
public Uk8sNodeGroup(String name, Uk8sNodeGroupArgs args)
public Uk8sNodeGroup(String name, Uk8sNodeGroupArgs args, CustomResourceOptions options)
type: ucloud:Uk8sNodeGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ucloud_uk8s_node_group" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args Uk8sNodeGroupArgs
- 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 Uk8sNodeGroupArgs
- 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 Uk8sNodeGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Uk8sNodeGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Uk8sNodeGroupArgs
- 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 uk8sNodeGroupResource = new Ucloud.Uk8sNodeGroup("uk8sNodeGroupResource", new()
{
ClusterId = "string",
SubnetId = "string",
InstanceType = "string",
AvailabilityZone = "string",
DataDiskSize = 0.0,
MinCpuPlatform = "string",
DataDiskType = "string",
ImageId = "string",
InitScript = "string",
BootDiskType = "string",
IsolationGroup = "string",
Labels =
{
{ "string", "string" },
},
MaxPods = 0.0,
ChargeType = "string",
Name = "string",
BootDiskSize = 0.0,
Tag = "string",
Taints = new[]
{
new Ucloud.Inputs.Uk8sNodeGroupTaintArgs
{
Effect = "string",
Key = "string",
Value = "string",
},
},
Timeouts = new Ucloud.Inputs.Uk8sNodeGroupTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
UhostFamily = "string",
Uk8sNodeGroupId = "string",
UserData = "string",
});
example, err := ucloud.NewUk8sNodeGroup(ctx, "uk8sNodeGroupResource", &ucloud.Uk8sNodeGroupArgs{
ClusterId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
InstanceType: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
DataDiskSize: pulumi.Float64(0),
MinCpuPlatform: pulumi.String("string"),
DataDiskType: pulumi.String("string"),
ImageId: pulumi.String("string"),
InitScript: pulumi.String("string"),
BootDiskType: pulumi.String("string"),
IsolationGroup: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
MaxPods: pulumi.Float64(0),
ChargeType: pulumi.String("string"),
Name: pulumi.String("string"),
BootDiskSize: pulumi.Float64(0),
Tag: pulumi.String("string"),
Taints: ucloud.Uk8sNodeGroupTaintArray{
&ucloud.Uk8sNodeGroupTaintArgs{
Effect: pulumi.String("string"),
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &ucloud.Uk8sNodeGroupTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
UhostFamily: pulumi.String("string"),
Uk8sNodeGroupId: pulumi.String("string"),
UserData: pulumi.String("string"),
})
resource "ucloud_uk8s_node_group" "uk8sNodeGroupResource" {
lifecycle {
create_before_destroy = true
}
cluster_id = "string"
subnet_id = "string"
instance_type = "string"
availability_zone = "string"
data_disk_size = 0
min_cpu_platform = "string"
data_disk_type = "string"
image_id = "string"
init_script = "string"
boot_disk_type = "string"
isolation_group = "string"
labels = {
"string" = "string"
}
max_pods = 0
charge_type = "string"
name = "string"
boot_disk_size = 0
tag = "string"
taints {
effect = "string"
key = "string"
value = "string"
}
timeouts = {
create = "string"
delete = "string"
update = "string"
}
uhost_family = "string"
uk8s_node_group_id = "string"
user_data = "string"
}
var uk8sNodeGroupResource = new Uk8sNodeGroup("uk8sNodeGroupResource", Uk8sNodeGroupArgs.builder()
.clusterId("string")
.subnetId("string")
.instanceType("string")
.availabilityZone("string")
.dataDiskSize(0.0)
.minCpuPlatform("string")
.dataDiskType("string")
.imageId("string")
.initScript("string")
.bootDiskType("string")
.isolationGroup("string")
.labels(Map.of("string", "string"))
.maxPods(0.0)
.chargeType("string")
.name("string")
.bootDiskSize(0.0)
.tag("string")
.taints(Uk8sNodeGroupTaintArgs.builder()
.effect("string")
.key("string")
.value("string")
.build())
.timeouts(Uk8sNodeGroupTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.uhostFamily("string")
.uk8sNodeGroupId("string")
.userData("string")
.build());
uk8s_node_group_resource = ucloud.Uk8sNodeGroup("uk8sNodeGroupResource",
cluster_id="string",
subnet_id="string",
instance_type="string",
availability_zone="string",
data_disk_size=float(0),
min_cpu_platform="string",
data_disk_type="string",
image_id="string",
init_script="string",
boot_disk_type="string",
isolation_group="string",
labels={
"string": "string",
},
max_pods=float(0),
charge_type="string",
name="string",
boot_disk_size=float(0),
tag="string",
taints=[{
"effect": "string",
"key": "string",
"value": "string",
}],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
uhost_family="string",
uk8s_node_group_id="string",
user_data="string")
const uk8sNodeGroupResource = new ucloud.Uk8sNodeGroup("uk8sNodeGroupResource", {
clusterId: "string",
subnetId: "string",
instanceType: "string",
availabilityZone: "string",
dataDiskSize: 0,
minCpuPlatform: "string",
dataDiskType: "string",
imageId: "string",
initScript: "string",
bootDiskType: "string",
isolationGroup: "string",
labels: {
string: "string",
},
maxPods: 0,
chargeType: "string",
name: "string",
bootDiskSize: 0,
tag: "string",
taints: [{
effect: "string",
key: "string",
value: "string",
}],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
uhostFamily: "string",
uk8sNodeGroupId: "string",
userData: "string",
});
type: ucloud:Uk8sNodeGroup
properties:
availabilityZone: string
bootDiskSize: 0
bootDiskType: string
chargeType: string
clusterId: string
dataDiskSize: 0
dataDiskType: string
imageId: string
initScript: string
instanceType: string
isolationGroup: string
labels:
string: string
maxPods: 0
minCpuPlatform: string
name: string
subnetId: string
tag: string
taints:
- effect: string
key: string
value: string
timeouts:
create: string
delete: string
update: string
uhostFamily: string
uk8sNodeGroupId: string
userData: string
Uk8sNodeGroup 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 Uk8sNodeGroup resource accepts the following input properties:
- Availability
Zone string - The availability zone used by the node group template.
- Cluster
Id string - The ID of the UK8S cluster.
- Instance
Type string - The worker instance type, such as
o-basic-2. - Subnet
Id string - The subnet ID used by the node group template.
- Boot
Disk doubleSize - The boot disk size in GB. Default is
40. - Boot
Disk stringType - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - Charge
Type string - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - Data
Disk doubleSize - The data disk size in GB. Default is
0. - Data
Disk stringType - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - Image
Id string - The image ID used by new nodes.
- Init
Script string - A script run after the node initializes.
- Isolation
Group string - The isolation group ID.
- Labels Dictionary<string, string>
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- Max
Pods double - The maximum number of pods per node. Default is
110. - Min
Cpu stringPlatform - The minimum CPU platform. Default is
Intel/Auto. - Name string
- The name of the node group.
- Tag string
- The business tag.
- Taints
List<Uk8s
Node Group Taint> - One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - Timeouts
Uk8s
Node Group Timeouts - Uhost
Family string - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - Uk8s
Node stringGroup Id - User
Data string - User data run while the instance initializes.
- Availability
Zone string - The availability zone used by the node group template.
- Cluster
Id string - The ID of the UK8S cluster.
- Instance
Type string - The worker instance type, such as
o-basic-2. - Subnet
Id string - The subnet ID used by the node group template.
- Boot
Disk float64Size - The boot disk size in GB. Default is
40. - Boot
Disk stringType - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - Charge
Type string - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - Data
Disk float64Size - The data disk size in GB. Default is
0. - Data
Disk stringType - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - Image
Id string - The image ID used by new nodes.
- Init
Script string - A script run after the node initializes.
- Isolation
Group string - The isolation group ID.
- Labels map[string]string
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- Max
Pods float64 - The maximum number of pods per node. Default is
110. - Min
Cpu stringPlatform - The minimum CPU platform. Default is
Intel/Auto. - Name string
- The name of the node group.
- Tag string
- The business tag.
- Taints
[]Uk8s
Node Group Taint Args - One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - Timeouts
Uk8s
Node Group Timeouts Args - Uhost
Family string - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - Uk8s
Node stringGroup Id - User
Data string - User data run while the instance initializes.
- availability_
zone string - The availability zone used by the node group template.
- cluster_
id string - The ID of the UK8S cluster.
- instance_
type string - The worker instance type, such as
o-basic-2. - subnet_
id string - The subnet ID used by the node group template.
- boot_
disk_ numbersize - The boot disk size in GB. Default is
40. - boot_
disk_ stringtype - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - charge_
type string - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - data_
disk_ numbersize - The data disk size in GB. Default is
0. - data_
disk_ stringtype - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - image_
id string - The image ID used by new nodes.
- init_
script string - A script run after the node initializes.
- isolation_
group string - The isolation group ID.
- labels map(string)
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- max_
pods number - The maximum number of pods per node. Default is
110. - min_
cpu_ stringplatform - The minimum CPU platform. Default is
Intel/Auto. - name string
- The name of the node group.
- tag string
- The business tag.
- taints list(object)
- One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - timeouts object
- uhost_
family string - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - uk8s_
node_ stringgroup_ id - user_
data string - User data run while the instance initializes.
- availability
Zone String - The availability zone used by the node group template.
- cluster
Id String - The ID of the UK8S cluster.
- instance
Type String - The worker instance type, such as
o-basic-2. - subnet
Id String - The subnet ID used by the node group template.
- boot
Disk DoubleSize - The boot disk size in GB. Default is
40. - boot
Disk StringType - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - charge
Type String - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - data
Disk DoubleSize - The data disk size in GB. Default is
0. - data
Disk StringType - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - image
Id String - The image ID used by new nodes.
- init
Script String - A script run after the node initializes.
- isolation
Group String - The isolation group ID.
- labels Map<String,String>
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- max
Pods Double - The maximum number of pods per node. Default is
110. - min
Cpu StringPlatform - The minimum CPU platform. Default is
Intel/Auto. - name String
- The name of the node group.
- tag String
- The business tag.
- taints
List<Uk8s
Node Group Taint> - One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - timeouts
Uk8s
Node Group Timeouts - uhost
Family String - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - uk8s
Node StringGroup Id - user
Data String - User data run while the instance initializes.
- availability
Zone string - The availability zone used by the node group template.
- cluster
Id string - The ID of the UK8S cluster.
- instance
Type string - The worker instance type, such as
o-basic-2. - subnet
Id string - The subnet ID used by the node group template.
- boot
Disk numberSize - The boot disk size in GB. Default is
40. - boot
Disk stringType - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - charge
Type string - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - data
Disk numberSize - The data disk size in GB. Default is
0. - data
Disk stringType - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - image
Id string - The image ID used by new nodes.
- init
Script string - A script run after the node initializes.
- isolation
Group string - The isolation group ID.
- labels {[key: string]: string}
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- max
Pods number - The maximum number of pods per node. Default is
110. - min
Cpu stringPlatform - The minimum CPU platform. Default is
Intel/Auto. - name string
- The name of the node group.
- tag string
- The business tag.
- taints
Uk8s
Node Group Taint[] - One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - timeouts
Uk8s
Node Group Timeouts - uhost
Family string - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - uk8s
Node stringGroup Id - user
Data string - User data run while the instance initializes.
- availability_
zone str - The availability zone used by the node group template.
- cluster_
id str - The ID of the UK8S cluster.
- instance_
type str - The worker instance type, such as
o-basic-2. - subnet_
id str - The subnet ID used by the node group template.
- boot_
disk_ floatsize - The boot disk size in GB. Default is
40. - boot_
disk_ strtype - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - charge_
type str - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - data_
disk_ floatsize - The data disk size in GB. Default is
0. - data_
disk_ strtype - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - image_
id str - The image ID used by new nodes.
- init_
script str - A script run after the node initializes.
- isolation_
group str - The isolation group ID.
- labels Mapping[str, str]
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- max_
pods float - The maximum number of pods per node. Default is
110. - min_
cpu_ strplatform - The minimum CPU platform. Default is
Intel/Auto. - name str
- The name of the node group.
- tag str
- The business tag.
- taints
Sequence[Uk8s
Node Group Taint Args] - One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - timeouts
Uk8s
Node Group Timeouts Args - uhost_
family str - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - uk8s_
node_ strgroup_ id - user_
data str - User data run while the instance initializes.
- availability
Zone String - The availability zone used by the node group template.
- cluster
Id String - The ID of the UK8S cluster.
- instance
Type String - The worker instance type, such as
o-basic-2. - subnet
Id String - The subnet ID used by the node group template.
- boot
Disk NumberSize - The boot disk size in GB. Default is
40. - boot
Disk StringType - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - charge
Type String - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - data
Disk NumberSize - The data disk size in GB. Default is
0. - data
Disk StringType - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - image
Id String - The image ID used by new nodes.
- init
Script String - A script run after the node initializes.
- isolation
Group String - The isolation group ID.
- labels Map<String>
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- max
Pods Number - The maximum number of pods per node. Default is
110. - min
Cpu StringPlatform - The minimum CPU platform. Default is
Intel/Auto. - name String
- The name of the node group.
- tag String
- The business tag.
- taints List<Property Map>
- One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - timeouts Property Map
- uhost
Family String - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - uk8s
Node StringGroup Id - user
Data String - User data run while the instance initializes.
Outputs
All input properties are implicitly available as output properties. Additionally, the Uk8sNodeGroup resource produces the following output properties:
- Create
Time string - The node group creation time in RFC3339 format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Ids List<string> - IDs of nodes currently associated with the node group.
- Update
Time string - The last node group update time in RFC3339 format.
- Create
Time string - The node group creation time in RFC3339 format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Ids []string - IDs of nodes currently associated with the node group.
- Update
Time string - The last node group update time in RFC3339 format.
- create_
time string - The node group creation time in RFC3339 format.
- id string
- The provider-assigned unique ID for this managed resource.
- node_
ids list(string) - IDs of nodes currently associated with the node group.
- update_
time string - The last node group update time in RFC3339 format.
- create
Time String - The node group creation time in RFC3339 format.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Ids List<String> - IDs of nodes currently associated with the node group.
- update
Time String - The last node group update time in RFC3339 format.
- create
Time string - The node group creation time in RFC3339 format.
- id string
- The provider-assigned unique ID for this managed resource.
- node
Ids string[] - IDs of nodes currently associated with the node group.
- update
Time string - The last node group update time in RFC3339 format.
- create_
time str - The node group creation time in RFC3339 format.
- id str
- The provider-assigned unique ID for this managed resource.
- node_
ids Sequence[str] - IDs of nodes currently associated with the node group.
- update_
time str - The last node group update time in RFC3339 format.
- create
Time String - The node group creation time in RFC3339 format.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Ids List<String> - IDs of nodes currently associated with the node group.
- update
Time String - The last node group update time in RFC3339 format.
Look up Existing Uk8sNodeGroup Resource
Get an existing Uk8sNodeGroup 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?: Uk8sNodeGroupState, opts?: CustomResourceOptions): Uk8sNodeGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
boot_disk_size: Optional[float] = 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,
image_id: Optional[str] = None,
init_script: Optional[str] = None,
instance_type: Optional[str] = None,
isolation_group: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
max_pods: Optional[float] = None,
min_cpu_platform: Optional[str] = None,
name: Optional[str] = None,
node_ids: Optional[Sequence[str]] = None,
subnet_id: Optional[str] = None,
tag: Optional[str] = None,
taints: Optional[Sequence[Uk8sNodeGroupTaintArgs]] = None,
timeouts: Optional[Uk8sNodeGroupTimeoutsArgs] = None,
uhost_family: Optional[str] = None,
uk8s_node_group_id: Optional[str] = None,
update_time: Optional[str] = None,
user_data: Optional[str] = None) -> Uk8sNodeGroupfunc GetUk8sNodeGroup(ctx *Context, name string, id IDInput, state *Uk8sNodeGroupState, opts ...ResourceOption) (*Uk8sNodeGroup, error)public static Uk8sNodeGroup Get(string name, Input<string> id, Uk8sNodeGroupState? state, CustomResourceOptions? opts = null)public static Uk8sNodeGroup get(String name, Output<String> id, Uk8sNodeGroupState state, CustomResourceOptions options)resources: _: type: ucloud:Uk8sNodeGroup get: id: ${id}import {
to = ucloud_uk8s_node_group.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Availability
Zone string - The availability zone used by the node group template.
- Boot
Disk doubleSize - The boot disk size in GB. Default is
40. - Boot
Disk stringType - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - Charge
Type string - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - Cluster
Id string - The ID of the UK8S cluster.
- Create
Time string - The node group creation time in RFC3339 format.
- Data
Disk doubleSize - The data disk size in GB. Default is
0. - Data
Disk stringType - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - Image
Id string - The image ID used by new nodes.
- Init
Script string - A script run after the node initializes.
- Instance
Type string - The worker instance type, such as
o-basic-2. - Isolation
Group string - The isolation group ID.
- Labels Dictionary<string, string>
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- Max
Pods double - The maximum number of pods per node. Default is
110. - Min
Cpu stringPlatform - The minimum CPU platform. Default is
Intel/Auto. - Name string
- The name of the node group.
- Node
Ids List<string> - IDs of nodes currently associated with the node group.
- Subnet
Id string - The subnet ID used by the node group template.
- Tag string
- The business tag.
- Taints
List<Uk8s
Node Group Taint> - One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - Timeouts
Uk8s
Node Group Timeouts - Uhost
Family string - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - Uk8s
Node stringGroup Id - Update
Time string - The last node group update time in RFC3339 format.
- User
Data string - User data run while the instance initializes.
- Availability
Zone string - The availability zone used by the node group template.
- Boot
Disk float64Size - The boot disk size in GB. Default is
40. - Boot
Disk stringType - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - Charge
Type string - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - Cluster
Id string - The ID of the UK8S cluster.
- Create
Time string - The node group creation time in RFC3339 format.
- Data
Disk float64Size - The data disk size in GB. Default is
0. - Data
Disk stringType - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - Image
Id string - The image ID used by new nodes.
- Init
Script string - A script run after the node initializes.
- Instance
Type string - The worker instance type, such as
o-basic-2. - Isolation
Group string - The isolation group ID.
- Labels map[string]string
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- Max
Pods float64 - The maximum number of pods per node. Default is
110. - Min
Cpu stringPlatform - The minimum CPU platform. Default is
Intel/Auto. - Name string
- The name of the node group.
- Node
Ids []string - IDs of nodes currently associated with the node group.
- Subnet
Id string - The subnet ID used by the node group template.
- Tag string
- The business tag.
- Taints
[]Uk8s
Node Group Taint Args - One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - Timeouts
Uk8s
Node Group Timeouts Args - Uhost
Family string - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - Uk8s
Node stringGroup Id - Update
Time string - The last node group update time in RFC3339 format.
- User
Data string - User data run while the instance initializes.
- availability_
zone string - The availability zone used by the node group template.
- boot_
disk_ numbersize - The boot disk size in GB. Default is
40. - boot_
disk_ stringtype - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - charge_
type string - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - cluster_
id string - The ID of the UK8S cluster.
- create_
time string - The node group creation time in RFC3339 format.
- data_
disk_ numbersize - The data disk size in GB. Default is
0. - data_
disk_ stringtype - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - image_
id string - The image ID used by new nodes.
- init_
script string - A script run after the node initializes.
- instance_
type string - The worker instance type, such as
o-basic-2. - isolation_
group string - The isolation group ID.
- labels map(string)
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- max_
pods number - The maximum number of pods per node. Default is
110. - min_
cpu_ stringplatform - The minimum CPU platform. Default is
Intel/Auto. - name string
- The name of the node group.
- node_
ids list(string) - IDs of nodes currently associated with the node group.
- subnet_
id string - The subnet ID used by the node group template.
- tag string
- The business tag.
- taints list(object)
- One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - timeouts object
- uhost_
family string - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - uk8s_
node_ stringgroup_ id - update_
time string - The last node group update time in RFC3339 format.
- user_
data string - User data run while the instance initializes.
- availability
Zone String - The availability zone used by the node group template.
- boot
Disk DoubleSize - The boot disk size in GB. Default is
40. - boot
Disk StringType - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - charge
Type String - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - cluster
Id String - The ID of the UK8S cluster.
- create
Time String - The node group creation time in RFC3339 format.
- data
Disk DoubleSize - The data disk size in GB. Default is
0. - data
Disk StringType - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - image
Id String - The image ID used by new nodes.
- init
Script String - A script run after the node initializes.
- instance
Type String - The worker instance type, such as
o-basic-2. - isolation
Group String - The isolation group ID.
- labels Map<String,String>
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- max
Pods Double - The maximum number of pods per node. Default is
110. - min
Cpu StringPlatform - The minimum CPU platform. Default is
Intel/Auto. - name String
- The name of the node group.
- node
Ids List<String> - IDs of nodes currently associated with the node group.
- subnet
Id String - The subnet ID used by the node group template.
- tag String
- The business tag.
- taints
List<Uk8s
Node Group Taint> - One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - timeouts
Uk8s
Node Group Timeouts - uhost
Family String - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - uk8s
Node StringGroup Id - update
Time String - The last node group update time in RFC3339 format.
- user
Data String - User data run while the instance initializes.
- availability
Zone string - The availability zone used by the node group template.
- boot
Disk numberSize - The boot disk size in GB. Default is
40. - boot
Disk stringType - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - charge
Type string - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - cluster
Id string - The ID of the UK8S cluster.
- create
Time string - The node group creation time in RFC3339 format.
- data
Disk numberSize - The data disk size in GB. Default is
0. - data
Disk stringType - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - image
Id string - The image ID used by new nodes.
- init
Script string - A script run after the node initializes.
- instance
Type string - The worker instance type, such as
o-basic-2. - isolation
Group string - The isolation group ID.
- labels {[key: string]: string}
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- max
Pods number - The maximum number of pods per node. Default is
110. - min
Cpu stringPlatform - The minimum CPU platform. Default is
Intel/Auto. - name string
- The name of the node group.
- node
Ids string[] - IDs of nodes currently associated with the node group.
- subnet
Id string - The subnet ID used by the node group template.
- tag string
- The business tag.
- taints
Uk8s
Node Group Taint[] - One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - timeouts
Uk8s
Node Group Timeouts - uhost
Family string - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - uk8s
Node stringGroup Id - update
Time string - The last node group update time in RFC3339 format.
- user
Data string - User data run while the instance initializes.
- availability_
zone str - The availability zone used by the node group template.
- boot_
disk_ floatsize - The boot disk size in GB. Default is
40. - boot_
disk_ strtype - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - charge_
type str - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - cluster_
id str - The ID of the UK8S cluster.
- create_
time str - The node group creation time in RFC3339 format.
- data_
disk_ floatsize - The data disk size in GB. Default is
0. - data_
disk_ strtype - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - image_
id str - The image ID used by new nodes.
- init_
script str - A script run after the node initializes.
- instance_
type str - The worker instance type, such as
o-basic-2. - isolation_
group str - The isolation group ID.
- labels Mapping[str, str]
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- max_
pods float - The maximum number of pods per node. Default is
110. - min_
cpu_ strplatform - The minimum CPU platform. Default is
Intel/Auto. - name str
- The name of the node group.
- node_
ids Sequence[str] - IDs of nodes currently associated with the node group.
- subnet_
id str - The subnet ID used by the node group template.
- tag str
- The business tag.
- taints
Sequence[Uk8s
Node Group Taint Args] - One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - timeouts
Uk8s
Node Group Timeouts Args - uhost_
family str - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - uk8s_
node_ strgroup_ id - update_
time str - The last node group update time in RFC3339 format.
- user_
data str - User data run while the instance initializes.
- availability
Zone String - The availability zone used by the node group template.
- boot
Disk NumberSize - The boot disk size in GB. Default is
40. - boot
Disk StringType - The boot disk type, including
cloud_rssd. Default iscloud_ssd. Setcloud_rssdwhen usinguhost_family = "o1i"or"o2i". - charge
Type String - The charge type. Valid values are
year,month, anddynamic. Default ismonth. - cluster
Id String - The ID of the UK8S cluster.
- create
Time String - The node group creation time in RFC3339 format.
- data
Disk NumberSize - The data disk size in GB. Default is
0. - data
Disk StringType - The data disk type, including
cloud_rssd. Default iscloud_ssd. Set a positivedata_disk_sizeto create a data disk. - image
Id String - The image ID used by new nodes.
- init
Script String - A script run after the node initializes.
- instance
Type String - The worker instance type, such as
o-basic-2. - isolation
Group String - The isolation group ID.
- labels Map<String>
- A map of Kubernetes labels for nodes added from this node group. At most 20 labels are supported.
- max
Pods Number - The maximum number of pods per node. Default is
110. - min
Cpu StringPlatform - The minimum CPU platform. Default is
Intel/Auto. - name String
- The name of the node group.
- node
Ids List<String> - IDs of nodes currently associated with the node group.
- subnet
Id String - The subnet ID used by the node group template.
- tag String
- The business tag.
- taints List<Property Map>
- One or more taints for nodes added from this node group. At most 10 taints are supported. Each block accepts
key,value, and aneffectofNoSchedule,PreferNoSchedule, orNoExecute. - timeouts Property Map
- uhost
Family String - The Intel outstanding instance family:
o1ioro2i. Useinstance_type = "o-basic-2",uhost_family = "o2i", andboot_disk_type = "cloud_rssd"for O2 Intel nodes. For an RSSD data disk, also setdata_disk_type = "cloud_rssd"and a positivedata_disk_size. Requires an Intel CPU platform. When omitted, the family is read from UK8S. Updates change the template for future nodes without replacing existing nodes. - uk8s
Node StringGroup Id - update
Time String - The last node group update time in RFC3339 format.
- user
Data String - User data run while the instance initializes.
Supporting Types
Uk8sNodeGroupTaint, Uk8sNodeGroupTaintArgs
Uk8sNodeGroupTimeouts, Uk8sNodeGroupTimeoutsArgs
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloudTerraform Provider.
published on Thursday, Sep 24, 2026 by ucloud