Skip to content

Commit

Permalink
Don't schedule build webserver on spot instances
Browse files Browse the repository at this point in the history
  • Loading branch information
jmandel committed Sep 19, 2023
1 parent ce68023 commit a8fbb6f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions k8s/ci-build.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ spec:
run: ci-build
namespace: fhir
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: cloud.google.com/gke-spot
operator: NotIn
values:
- "true"
containers:
- env:
- name: BUILD_NUMBER
Expand Down

0 comments on commit a8fbb6f

Please sign in to comment.