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 9f7eacf commit fb7b257
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.instance_co_location == true ? [ ] : [1]
for_each = var.share_instance == 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 "instance_co_location" {
variable "share_instance" {
description = "Avoid co location of the replicas on the same node"
type = bool
default = false
default = true
}

0 comments on commit fb7b257

Please sign in to comment.