Skip to content

Commit

Permalink
Making node count as null to avoid downscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
dunefro committed Dec 18, 2024
1 parent 779e708 commit c38fc3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ locals {
)
node_pools = merge({ for k, v in var.cpu_pools : "${v["name"]}sp" => {
name = "${v["name"]}sp"
node_count = 0
node_count = null
max_count = v["max_count"]
min_count = v["min_count"]
os_disk_size_gb = 100
Expand All @@ -32,7 +32,7 @@ locals {
} if v["enable_spot_pool"] },
{ for k, v in var.cpu_pools : v["name"] => {
name = v["name"]
node_count = 0
node_count = null
max_count = v["max_count"]
min_count = v["min_count"]
os_disk_size_gb = 100
Expand All @@ -52,7 +52,7 @@ locals {

{ for k, v in var.gpu_pools : "${v["name"]}sp" => {
name = "${v["name"]}sp"
node_count = 0
node_count = null
max_count = v["max_count"]
min_count = v["min_count"]
os_disk_size_gb = 100
Expand All @@ -75,7 +75,7 @@ locals {
} if v["enable_spot_pool"] },
{ for k, v in var.gpu_pools : v["name"] => {
name = v["name"]
node_count = 0
node_count = null
max_count = v["max_count"]
min_count = v["min_count"]
os_disk_size_gb = 100
Expand All @@ -96,7 +96,7 @@ locals {
} if v["enable_on_demand_pool"] },
var.control_plane ? { "tfycp" = {
name = "tfycp"
node_count = 0
node_count = null
max_count = 4
min_count = 0
os_disk_size_gb = 100
Expand Down

0 comments on commit c38fc3e

Please sign in to comment.