Skip to content

Commit e0adf77

Browse files
feat(cce): add example of node pool with partition (#6754)
1 parent 3e42604 commit e0adf77

File tree

1 file changed

+25
-0
lines changed
  • examples/cce/cce-with-partition

1 file changed

+25
-0
lines changed

examples/cce/cce-with-partition/main.tf

+25
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,28 @@ resource "huaweicloud_cce_node" "test" {
7979
volumetype = "SSD"
8080
}
8181
}
82+
83+
resource "huaweicloud_cce_node_pool" "test" {
84+
cluster_id = huaweicloud_cce_cluster.test.id
85+
name = var.random_resource_name
86+
flavor_id = try(data.huaweicloud_compute_flavors.test.flavors[0].id, "")
87+
initial_node_count = 1
88+
availability_zone = var.iec_availability_zone
89+
password = "Overlord!!52259"
90+
scall_enable = false
91+
min_node_count = 0
92+
max_node_count = 0
93+
scale_down_cooldown_time = 0
94+
priority = 0
95+
type = "vm"
96+
partition = huaweicloud_cce_partition.test.id
97+
98+
root_volume {
99+
size = 40
100+
volumetype = "SSD"
101+
}
102+
data_volumes {
103+
size = 100
104+
volumetype = "SSD"
105+
}
106+
}

0 commit comments

Comments
 (0)