Update tusd to use gcs
This commit is contained in:
parent
4c5a99ffed
commit
d8cbc9ce6b
|
@ -1,16 +1,3 @@
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: standard-tusd
|
|
||||||
namespace: tus
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClassName: "standard"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 20Gi
|
|
||||||
---
|
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -18,8 +5,6 @@ metadata:
|
||||||
namespace: tus
|
namespace: tus
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -28,7 +13,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- image: docker.io/tusproject/tusd:latest
|
- image: docker.io/tusproject/tusd:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
args: ["-port=8080","-behind-proxy","-max-size=20000000000"]
|
args: ["-gcs-bucket","tusd-public-demo","-port=8080","-behind-proxy","-max-size=20000000000"]
|
||||||
name: tusd
|
name: tusd
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
@ -38,16 +23,19 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- name: tusd-web
|
- name: tusd-web
|
||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: tusd-env
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
fsGroup: 0
|
fsGroup: 0
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: tusd-disk
|
- name: tusd-account
|
||||||
mountPath: /srv/tusd-data
|
mountPath: /gcs
|
||||||
volumes:
|
volumes:
|
||||||
- name: tusd-disk
|
- name: tusd-account
|
||||||
persistentVolumeClaim:
|
secret:
|
||||||
claimName: standard-tusd
|
secretName: gcs-account
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
|
@ -24,4 +24,4 @@ RUN addgroup -g 1000 tusd \
|
||||||
|
|
||||||
WORKDIR /srv/tusd-data
|
WORKDIR /srv/tusd-data
|
||||||
EXPOSE 1080
|
EXPOSE 1080
|
||||||
ENTRYPOINT ["/go/bin/tusd","-dir","/srv/tusd-data","--hooks-dir","/srv/tusd-hooks"]
|
ENTRYPOINT ["/go/bin/tusd","--hooks-dir","/srv/tusd-hooks"]
|
||||||
|
|
Loading…
Reference in New Issue