From fb7b257cae60888d8228b7ba46e9d867d26b020e Mon Sep 17 00:00:00 2001 From: Francesco Latini Date: Wed, 28 Aug 2024 14:27:07 +0200 Subject: [PATCH] Refactoring of the co location var name --- statefulset.tf | 2 +- variables.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/statefulset.tf b/statefulset.tf index ba70664..7534d8d 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.instance_co_location == true ? [ ] : [1] + for_each = var.share_instance == true ? [ ] : [1] content { pod_anti_affinity { preferred_during_scheduling_ignored_during_execution { diff --git a/variables.tf b/variables.tf index 62cc9ca..662689a 100755 --- a/variables.tf +++ b/variables.tf @@ -106,8 +106,8 @@ variable "devmode_enabled" { default = false } -variable "instance_co_location" { +variable "share_instance" { description = "Avoid co location of the replicas on the same node" type = bool - default = false + default = true }