From 9d693c93a3ea4f947ee20a6a32003cb1c553f13b Mon Sep 17 00:00:00 2001 From: kiloreux Date: Wed, 8 May 2019 04:06:26 +0100 Subject: [PATCH] Require it to not run on preemptible --- .infra/kube/tusd-kube.yaml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.infra/kube/tusd-kube.yaml b/.infra/kube/tusd-kube.yaml index 8cc9c13..cf0d648 100644 --- a/.infra/kube/tusd-kube.yaml +++ b/.infra/kube/tusd-kube.yaml @@ -10,22 +10,13 @@ spec: labels: app: tusd spec: - # affinity: - # nodeAffinity: - # requiredDuringSchedulingIgnoredDuringExecution: - # nodeSelectorTerms: - # - matchExpressions: - # - key: cloud.google.com/gke-preemptible - # operator: Exists - # podAntiAffinity: - # requiredDuringSchedulingIgnoredDuringExecution: - # - labelSelector: - # matchExpressions: - # - key: app - # operator: In - # values: - # - tusd - # topologyKey: kubernetes.io/hostname + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: cloud.google.com/gke-preemptible + operator: DoesNotExist containers: - image: docker.io/tusproject/tusd:latest imagePullPolicy: Always