Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Adds an affinity, podAntiAffinity, to the worker and the web pods
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilrieger committed Jan 23, 2024
1 parent 7c2c649 commit 79943cc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ops/production-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 79943cc

Please sign in to comment.