Skip to content

Commit

Permalink
Merge pull request #5328 from akvo/add-dedicated-pool-for-rsr
Browse files Browse the repository at this point in the history
Add taint to node pool
  • Loading branch information
zuhdil authored Jun 5, 2024
2 parents f54eec2 + 5b48ecf commit 95868f6
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions ci/k8s/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ spec:
annotations:
prometheus.io/scrape: 'true'
spec:
tolerations:
- key: "akvo-app"
operator: "Equal"
value: "rsr-dedicated"
effect: "NoSchedule"
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: "akvo-app"
operator: "In"
values:
- "rsr-dedicated"
containers:
- name: rsr-nginx
image: eu.gcr.io/akvo-lumen/rsr-nginx:${TRAVIS_COMMIT}
Expand Down Expand Up @@ -91,15 +106,15 @@ spec:
path: /healthz
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 1
timeoutSeconds: 5
failureThreshold: 12
periodSeconds: 10
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 1
timeoutSeconds: 5
failureThreshold: 12
periodSeconds: 10
volumeMounts:
Expand Down

0 comments on commit 95868f6

Please sign in to comment.