diff --git a/ops/production-deploy.tmpl.yaml b/ops/production-deploy.tmpl.yaml index b830391e..a50f77af 100644 --- a/ops/production-deploy.tmpl.yaml +++ b/ops/production-deploy.tmpl.yaml @@ -220,6 +220,16 @@ worker: limits: memory: "8Gi" cpu: "2000m" + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: name + operator: In + values: + - {{ include "hyrax.fullname" . }}-worker + topologyKey: "kubernetes.io/hostname" podSecurityContext: runAsUser: 1001 runAsGroup: 101 @@ -228,6 +238,17 @@ worker: extraVolumeMounts: *volMounts extraEnvVars: *envVars +affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: name + operator: In + values: + - {{ include "hyrax.fullname" . }} + topologyKey: "kubernetes.io/hostname" + podSecurityContext: runAsUser: 1001 runAsGroup: 101