163 lines
5.2 KiB
YAML
163 lines
5.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: uppy
|
|
namespace: futureporn
|
|
spec:
|
|
replicas: {{ .Values.uppy.replicas }}
|
|
minReadySeconds: 5
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 2
|
|
maxUnavailable: 1
|
|
selector:
|
|
matchLabels:
|
|
app: uppy
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: uppy
|
|
spec:
|
|
containers:
|
|
- name: uppy
|
|
image: docker.io/transloadit/companion:latest
|
|
imagePullPolicy: IfNotPresent
|
|
resources:
|
|
limits:
|
|
memory: 150Mi
|
|
requests:
|
|
memory: 100Mi
|
|
env:
|
|
- name: COMPANION_STREAMING_UPLOAD
|
|
value: "true"
|
|
- name: COMPANION_CLIENT_ORIGINS
|
|
value: "{{ .Values.uppy.clientOrigins }}"
|
|
- name: COMPANION_DATADIR
|
|
value: /tmp/
|
|
- name: COMPANION_DOMAIN
|
|
value: "{{ .Values.uppy.domain }}"
|
|
- name: COMPANION_PROTOCOL
|
|
value: https
|
|
- name: COMPANION_REDIS_URL
|
|
value: "{{ .Values.uppy.redisUrl }}"
|
|
- name: COMPANION_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: uppy
|
|
key: secret
|
|
- name: COMPANION_PREAUTH_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: uppy
|
|
key: preAuthSecret
|
|
- name: COMPANION_DROPBOX_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: uppy
|
|
key: dropboxKey
|
|
- name: COMPANION_DROPBOX_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: uppy
|
|
key: dropboxSecret
|
|
- name: COMPANION_BOX_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: uppy
|
|
key: boxKey
|
|
- name: COMPANION_BOX_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: uppy
|
|
key: boxSecret
|
|
- name: COMPANION_GOOGLE_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: uppy
|
|
key: googleKey
|
|
- name: COMPANION_GOOGLE_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: uppy
|
|
key: googleSecret
|
|
- name: COMPANION_AWS_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: uppy
|
|
key: awsKey
|
|
- name: COMPANION_AWS_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: uppy
|
|
key: awsSecret
|
|
- name: COMPANION_AWS_BUCKET
|
|
value: "{{ .Values.uppy.s3.bucket }}"
|
|
- name: COMPANION_AWS_REGION
|
|
value: "{{ .Values.uppy.s3.region }}"
|
|
- name: COMPANION_AWS_ENDPOINT
|
|
value: "{{ .Values.uppy.s3.endpoint }}"
|
|
# - name: COMPANION_AWS_PREFIX
|
|
# value: "{{ .Values.uppy.s3.prefix }}"
|
|
|
|
## COMPANION_OAUTH_DOMAIN is only necessary if using a different domain per each uppy pod.
|
|
## We don't need this because we are load balancing the pods so they all use the same domain name.
|
|
## @see https://github.com/transloadit/uppy/blob/f4dd3d534ff4378f3a2f73fe327358bcbde74059/docs/companion.md#server
|
|
- name: COMPANION_OAUTH_DOMAIN
|
|
value: ''
|
|
- name: COMPANION_PATH
|
|
value: ''
|
|
- name: COMPANION_IMPLICIT_PATH
|
|
value: ''
|
|
- name: COMPANION_DOMAINS
|
|
value: ''
|
|
## https://uppy.io/docs/companion/#uploadurls-companion_upload_urls
|
|
- name: COMPANION_UPLOAD_URLS
|
|
value: "{{ .Values.uppy.uploadUrls }}"
|
|
ports:
|
|
- containerPort: 3020
|
|
volumeMounts:
|
|
- name: uppy-data
|
|
mountPath: /mnt/uppy-data
|
|
volumes:
|
|
- name: uppy-data
|
|
emptyDir: {}
|
|
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: uppy
|
|
namespace: futureporn
|
|
annotations:
|
|
external-dns.alpha.kubernetes.io/hostname: "{{ .Values.uppy.hostname }}"
|
|
spec:
|
|
type: LoadBalancer
|
|
ports:
|
|
- port: 3020
|
|
targetPort: 3020
|
|
protocol: TCP
|
|
selector:
|
|
app: uppy
|
|
|
|
|
|
|
|
|
|
|
|
# Welcome to Companion v4.15.1
|
|
# ===================================
|
|
|
|
# Congratulations on setting up Companion! Thanks for joining our cause, you have taken
|
|
# the first step towards the future of file uploading! We
|
|
# hope you are as excited about this as we are!
|
|
|
|
# While you did an awesome job on getting Companion running, this is just the welcome
|
|
# message, so let's talk about the places that really matter:
|
|
|
|
# - Be sure to add the following URLs as your Oauth redirect uris on their corresponding developer interfaces:
|
|
# https://uppy.fp.sbtp.xyz/drive/redirect, https://uppy.fp.sbtp.xyz/googlephotos/redirect, https://uppy.fp.sbtp.xyz/dropbox/redirect, https://uppy.fp.sbtp.xyz/box/redirect, https://uppy.fp.sbtp.xyz/instagram/redirect, https://uppy.fp.sbtp.xyz/facebook/redirect, https://uppy.fp.sbtp.xyz/onedrive/redirect, https://uppy.fp.sbtp.xyz/zoom/redirect, https://uppy.fp.sbtp.xyz/unsplash/redirect
|
|
# - The URL https://uppy.fp.sbtp.xyz/metrics is available for statistics to keep Companion running smoothly
|
|
# - https://github.com/transloadit/uppy/issues - report your bugs here
|
|
|
|
# So quit lollygagging, start uploading and experience the future! |