Skip to content

Commit

Permalink
Reserve capacity only in spot
Browse files Browse the repository at this point in the history
  • Loading branch information
jmandel authored Sep 21, 2023
1 parent 39e1f09 commit f2c3897
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions k8s/reserved-capacity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ spec:
spec:
priorityClassName: low-priority
terminationGracePeriodSeconds: 0
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: cloud.google.com/gke-spot
operator: In
values:
- "true"
containers:
- name: ubuntu
image: "gcr.io/fhir-org-starter-project/ig-build"
Expand Down

0 comments on commit f2c3897

Please sign in to comment.