subcategory | layout | page_title | sidebar_current | description |
---|---|---|---|---|
Dataplatform |
ionoscloud |
IonosCloud: ionoscloud_dataplatform_node_pool |
docs-resource-dataplatform_node_pool |
Creates and manages Dataplatform Node Pool objects. |
resource "ionoscloud_datacenter" "example" {
name = "Datacenter_Example"
location = "de/txl"
description = "Datacenter for testing Dataplatform Cluster"
}
resource "ionoscloud_dataplatform_cluster" "example" {
datacenter_id = ionoscloud_datacenter.example.id
name = "Dataplatform_Cluster_Example"
maintenance_window {
day_of_the_week = "Sunday"
time = "09:00:00"
}
version = "22.11"
}
resource "ionoscloud_dataplatform_node_pool" "example" {
cluster_id = ionoscloud_dataplatform_cluster.example.id
name = "Dataplatform_Node_Pool_Example"
node_count = 1
cpu_family = "INTEL_SKYLAKE"
cores_count = 1
ram_size = 2048
availability_zone = "AUTO"
storage_type = "HDD"
storage_size = 10
maintenance_window {
day_of_the_week = "Monday"
time = "09:00:00"
}
labels = {
foo = "bar"
color = "green"
}
annotations = {
ann1 = "value1"
ann2 = "value2"
}
}
cluster_id
- (Required)[string] The UUID of an existing Dataplatform cluster.name
- (Required)[string] The name of your node pool. Must be 63 characters or less and must be empty or begin and end with an alphanumeric character ([a-z0-9A-Z]). It can contain dashes (-), underscores (_), dots (.), and alphanumerics in-between.node_count
- (Required)[int] The number of nodes that make up the node pool. Must be set with a minimum value of 1.cpu_family
- (Optional)[string] A valid CPU family name orAUTO
if the platform shall choose the best fitting option. Available CPU architectures can be retrieved from the datacenter resource. The default value isAUTO
.cores_count
- (Optional)[int] The number of CPU cores per node. Must be set with a minimum value of 1. The default value is4
.ram_size
- (Optional)[int] The RAM size for one node in MB. Must be set in multiples of1024
MB, with a minimum size is of2048
MB. The default value is4096
.availability_zone
- (Optional)[string] The availability zone of the virtual datacenter region where the node pool resources should be provisioned. Must be set with one of the valuesAUTO
,ZONE_1
orZONE_2
. The default value isAUTO
.storage_type
- (Optional)[int] The type of hardware for the volume. Must be set with one of the valuesHDD
orSSD
. The default value isSSD
.storage_size
- (Optional)[int] The size of the volume in GB. The size must be greater than10
GB. The default value is20
.maintenance_window
- (Optional)[string] Starting time of a weekly 4 hour-long window, during which maintenance might occur in hh:mm:ss formattime
- (Required)[string] Time at which the maintenance should start. Must conform to the 'HH:MM:SS' 24-hour format. This pattern matches the "HH:MM:SS 24-hour format with leading 0" format. For more information take a look at this link.day_of_the_week
- (Required)[string] Must be set with one the valuesMonday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
orSunday
.
labels
- (Optional)[map] Key-value pairs attached to the node pool resource as Kubernetes labels.annotations
- (Optional)[map] Key-value pairs attached to node pool resource as Kubernetes annotations.
A Dataplatform Node Pool resource can be imported using its cluster's UUID as well as its own UUID, e.g.:
terraform import ionoscloud_dataplatform_node_pool.mynodepool {dataplatform_cluster_uuid}/{dataplatform_nodepool_id}