Skip to content

Commit

Permalink
Set pod affinity on sessions and opa service
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Apr 22, 2024
1 parent e17ec7b commit a827da7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions charts/sessions/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ sessions:
otelCollectorUrl: http://federation-opentelemetry-collector:4317
opa:
url: http://{{ .Release.Name }}-opa-opa
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/instance
operator: In
values:
- ispyb
- key: app.kubernetes.io/name
operator: In
values:
- mariadb-galera
topologyKey: kubernetes.io/hostname

opa:
opa:
Expand Down Expand Up @@ -51,3 +65,13 @@ opa:
extraEnv:
- name: JWKS_ENDPOINT
value: https://authn.diamond.ac.uk/realms/master/protocol/openid-connect/certs
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- sessions
topologyKey: kubernetes.io/hostname

0 comments on commit a827da7

Please sign in to comment.