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

add-affinity-pod-anti-affinity #717

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
aprilrieger marked this conversation as resolved.
Show resolved Hide resolved

podSecurityContext:
runAsUser: 1001
runAsGroup: 101
Expand Down
Loading