Remove request for 2GB of memory from machine and the requirements to run on a preemptible machine @kvz @Acconut

This commit is contained in:
kiloreux 2019-05-08 04:02:32 +01:00
parent 12f102abf6
commit cce12757d4
1 changed files with 18 additions and 18 deletions

View File

@ -10,22 +10,22 @@ spec:
labels: labels:
app: tusd app: tusd
spec: spec:
affinity: # affinity:
nodeAffinity: # nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution: # requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms: # nodeSelectorTerms:
- matchExpressions: # - matchExpressions:
- key: cloud.google.com/gke-preemptible # - key: cloud.google.com/gke-preemptible
operator: Exists # operator: Exists
podAntiAffinity: # podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution: # requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector: # - labelSelector:
matchExpressions: # matchExpressions:
- key: app # - key: app
operator: In # operator: In
values: # values:
- tusd # - tusd
topologyKey: kubernetes.io/hostname # topologyKey: kubernetes.io/hostname
containers: containers:
- image: docker.io/tusproject/tusd:latest - image: docker.io/tusproject/tusd:latest
imagePullPolicy: Always imagePullPolicy: Always
@ -34,8 +34,8 @@ spec:
resources: resources:
limits: limits:
memory: "2Gi" memory: "2Gi"
requests: # requests:
memory: "1Gi" # memory: "1Gi"
ports: ports:
- name: tusd-web - name: tusd-web
containerPort: 8080 containerPort: 8080