Commit 26aa1d21 by chenxx

update affinity

1 parent 6f622760
...@@ -59,6 +59,9 @@ module "deployment" { ...@@ -59,6 +59,9 @@ module "deployment" {
} }
] ]
#affinity: default=true
prevent_deploy_on_the_same_node = var.prevent_deploy_on_the_same_node
} }
......
...@@ -162,5 +162,5 @@ variable "annotations" { ...@@ -162,5 +162,5 @@ variable "annotations" {
variable "prevent_deploy_on_the_same_node" { variable "prevent_deploy_on_the_same_node" {
description = "Pod pod_anti_affinity rule, which prevents deploy same pod on one node." description = "Pod pod_anti_affinity rule, which prevents deploy same pod on one node."
type = bool type = bool
default = false default = true
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!