From 0be15710994e50d5674f3edf2e7432b506d561aa Mon Sep 17 00:00:00 2001 From: Max Xu Date: Mon, 16 Jan 2023 16:45:37 +0800 Subject: [PATCH] Fix desired size in eks node groups Desired number of nodes should not be lower than the minimum number of nodes that the group can scale out to. Signed-off-by: Max Xu --- .gitignore | 4 +++- main.tf | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e997c9d..b67bd85 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,6 @@ terraform.rc .DS_Store .vscode/ -.idea/ \ No newline at end of file +.idea/ + +.terraform.lock.hcl \ No newline at end of file diff --git a/main.tf b/main.tf index ed0daf8..751486a 100644 --- a/main.tf +++ b/main.tf @@ -102,7 +102,6 @@ locals { subnet_ids = [data.aws_subnet.private_subnets[i].id] instance_types = [instance_type] name = "snc-${split(".", instance_type)[1]}-${data.aws_subnet.private_subnets[i].availability_zone}" - desired_size = split(".", instance_type)[1] == "xlarge" ? 1 : 0 labels = merge(var.node_pool_labels, { "cloud.streamnative.io/instance-type" = lookup(local.compute_units, split(".", instance_type)[1], "null") }) } ]