tusd/.infra/kube/deployment.yaml

36 lines
796 B
YAML
Raw Normal View History

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: tusd
namespace: tus
spec:
replicas: 1
template:
metadata:
labels:
app: tusd
spec:
containers:
- image: docker.io/tusproject/tusd:latest
imagePullPolicy: Always
args: ["-port=8080","-behind-proxy","-max-size=1000000000"]
name: tusd
resources:
limits:
cpu: 0.7
memory: "2Gi"
requests:
cpu: 0.5
memory: "1Gi"
ports:
- containerPort: 8080
2018-01-04 16:25:30 +00:00
securityContext:
runAsUser: 1000
volumeMounts:
- name: tusd-disk
mountPath: /srv/tusd-data
volumes:
- name: tusd-disk
persistentVolumeClaim:
claimName: tusd