From 9f7eacf7e89fd288bae9268e38c3dea24669b84b Mon Sep 17 00:00:00 2001 From: Francesco Latini Date: Wed, 28 Aug 2024 14:24:34 +0200 Subject: [PATCH] Refactoring of the co location var name --- statefulset.tf | 2 +- variables.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/statefulset.tf b/statefulset.tf index 6172ce7..ba70664 100755 --- a/statefulset.tf +++ b/statefulset.tf @@ -34,7 +34,7 @@ resource "kubernetes_stateful_set" "axonserver" { termination_grace_period_seconds = 120 dynamic "affinity" { - for_each = var.avoid_colocation == true ? [1] : [ ] + for_each = var.instance_co_location == true ? [ ] : [1] content { pod_anti_affinity { preferred_during_scheduling_ignored_during_execution { diff --git a/variables.tf b/variables.tf index 7fb61d9..62cc9ca 100755 --- a/variables.tf +++ b/variables.tf @@ -106,7 +106,7 @@ variable "devmode_enabled" { default = false } -variable "avoid_colocation" { +variable "instance_co_location" { description = "Avoid co location of the replicas on the same node" type = bool default = false