Skip to content

Commit

Permalink
fix: create_before_destroy = false otherwise it adds a pet_name. We m…
Browse files Browse the repository at this point in the history
…ay want to set this to true later
  • Loading branch information
venkatamutyala authored Aug 15, 2024
1 parent f521b6d commit 094bfaa
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions node_pool.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ module "node_pool" {
for_each = { for np in var.node_pools : np.name => np }
source = "cloudposse/eks-node-group/aws"
# Cloud Posse recommends pinning every module to a specific version
version = "3.1.0"
ec2_ssh_key_name = each.value.ssh_key_pair_names
instance_types = [each.value.instance_type]
subnet_ids = module.subnets.public_subnet_ids
desired_size = each.value.node_count
min_size = each.value.node_count
max_size = each.value.node_count + 1
cluster_name = module.kubernetes.eks_cluster_id
capacity_type = each.value.spot ? "SPOT" : "ON_DEMAND"
ami_image_id = [each.value.ami_image_id]
kubernetes_labels = each.value.kubernetes_labels
kubernetes_taints = each.value.kubernetes_taints
version = "3.1.0"
ec2_ssh_key_name = each.value.ssh_key_pair_names
instance_types = [each.value.instance_type]
subnet_ids = module.subnets.public_subnet_ids
desired_size = each.value.node_count
min_size = each.value.node_count
max_size = each.value.node_count + 1
cluster_name = module.kubernetes.eks_cluster_id
capacity_type = each.value.spot ? "SPOT" : "ON_DEMAND"
ami_image_id = [each.value.ami_image_id]
kubernetes_labels = each.value.kubernetes_labels
kubernetes_taints = each.value.kubernetes_taints
create_before_destroy = false

cluster_autoscaler_enabled = false
name = each.value.name
Expand Down

0 comments on commit 094bfaa

Please sign in to comment.