Skip to content

Commit

Permalink
Require it to not run on preemptible
Browse files Browse the repository at this point in the history
  • Loading branch information
kiloreux committed May 8, 2019
1 parent cce1275 commit 9d693c9
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .infra/kube/tusd-kube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d693c9

Please sign in to comment.