Require it to not run on preemptible

This commit is contained in:
kiloreux 2019-05-08 04:06:26 +01:00
parent cce12757d4
commit 9d693c93a3
1 changed files with 7 additions and 16 deletions

View File

@ -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