Keep it stateless

This commit is contained in:
Abdelhadi Khiati 2018-07-10 23:46:50 +01:00
parent e527a9b0aa
commit c5f39a3205
1 changed files with 3 additions and 4 deletions

View File

@ -1,11 +1,10 @@
apiVersion: apps/v1 apiVersion: extensions/v1beta1
kind: StatefulSet kind: Deployment
metadata: metadata:
name: tusd name: tusd
namespace: tus namespace: tus
spec: spec:
replicas: 2 replicas: 2
serviceName: "tusd"
template: template:
metadata: metadata:
labels: labels:
@ -26,7 +25,7 @@ spec:
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