Skip to content

Commit

Permalink
Refactoring of the co location var name
Browse files Browse the repository at this point in the history
  • Loading branch information
checco committed Aug 28, 2024
1 parent fb7b257 commit 0241f2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion statefulset.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "kubernetes_stateful_set" "axonserver" {
termination_grace_period_seconds = 120

dynamic "affinity" {
for_each = var.share_instance == true ? [ ] : [1]
for_each = var.assign_pods_to_different_nodes == true ? [1] : [ ]
content {
pod_anti_affinity {
preferred_during_scheduling_ignored_during_execution {
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ variable "devmode_enabled" {
default = false
}

variable "share_instance" {
variable "assign_pods_to_different_nodes" {
description = "Avoid co location of the replicas on the same node"
type = bool
default = true
default = false
}

0 comments on commit 0241f2f

Please sign in to comment.