From a8fbb6ffb128f897833d5ac89cb37f89697130dd Mon Sep 17 00:00:00 2001 From: Josh Mandel Date: Tue, 19 Sep 2023 14:37:19 -0700 Subject: [PATCH] Don't schedule build webserver on spot instances --- k8s/ci-build.deployment.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/k8s/ci-build.deployment.yaml b/k8s/ci-build.deployment.yaml index 436da390..9c3baf88 100644 --- a/k8s/ci-build.deployment.yaml +++ b/k8s/ci-build.deployment.yaml @@ -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