Skip to content

Commit

Permalink
Added affinity to backend-deployment template.spec. Remove requested …
Browse files Browse the repository at this point in the history
…and added requiredDuringSchedulingIgnoredDuringExecution
  • Loading branch information
henrietteharmse committed Jul 12, 2023
1 parent ed56263 commit 33c6fc2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions k8chart/ols4/templates/ols4-backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ spec:
labels:
app: {{ .Release.Name }}-backend
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- hh-rke-wp-webadmin-47-worker-3.caas.ebi.ac.uk
- hx-rke-wp-webadmin-40-worker-3.caas.ebi.ac.uk
containers:
- name: web
image: ghcr.io/ebispot/ols4-backend:{{.Values.imageTag}}
Expand Down

0 comments on commit 33c6fc2

Please sign in to comment.