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
|
||||
kind: Deployment
|
||||
metadata:
|
||||
|
@ -18,8 +5,6 @@ metadata:
|
|||
namespace: tus
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
@ -28,7 +13,7 @@ spec:
|
|||
containers:
|
||||
- image: docker.io/tusproject/tusd:latest
|
||||
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
|
||||
resources:
|
||||
limits:
|
||||
|
@ -38,16 +23,19 @@ spec:
|
|||
ports:
|
||||
- name: tusd-web
|
||||
containerPort: 8080
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: tusd-env
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
fsGroup: 0
|
||||
volumeMounts:
|
||||
- name: tusd-disk
|
||||
mountPath: /srv/tusd-data
|
||||
- name: tusd-account
|
||||
mountPath: /gcs
|
||||
volumes:
|
||||
- name: tusd-disk
|
||||
persistentVolumeClaim:
|
||||
claimName: standard-tusd
|
||||
- name: tusd-account
|
||||
secret:
|
||||
secretName: gcs-account
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
|
|
@ -24,4 +24,4 @@ RUN addgroup -g 1000 tusd \
|
|||
|
||||
WORKDIR /srv/tusd-data
|
||||
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