83 lines
1.8 KiB
YAML
83 lines
1.8 KiB
YAML
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: ["-s3-bucket","tusdtest.transloadit.com","-port=8080","-behind-proxy","-max-size=20000000000","-timeout=6000"]
|
|
name: tusd
|
|
resources:
|
|
limits:
|
|
memory: "1Gi"
|
|
requests:
|
|
memory: "1Gi"
|
|
ports:
|
|
- name: tusd-web
|
|
containerPort: 8080
|
|
envFrom:
|
|
- secretRef:
|
|
name: tusd-env
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: tusd
|
|
namespace: tus
|
|
spec:
|
|
ports:
|
|
- name: tusd-web
|
|
port: 80
|
|
targetPort: 8080
|
|
protocol: TCP
|
|
selector:
|
|
app: tusd
|
|
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: tusd
|
|
namespace: tus
|
|
annotations:
|
|
certmanager.k8s.io/cluster-issuer: "letsencrypt-prod"
|
|
certmanager.k8s.io/acme-challenge-type: "http01"
|
|
kubernetes.io/tls-acme: "true"
|
|
kubernetes.io/ingress.class: "nginx"
|
|
nginx.ingress.kubernetes.io/proxy-body-size: 0m
|
|
nginx.ingress.kubernetes.io/proxy-connect-timeout: "300"
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
|
|
nginx.ingress.kubernetes.io/proxy-request-buffering: "off"
|
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "300"
|
|
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- tusd.tus.io
|
|
secretName: tusd-tls
|
|
- hosts:
|
|
- master.tus.io
|
|
secretName: master-tls
|
|
rules:
|
|
- host: tusd.tus.io
|
|
http:
|
|
paths:
|
|
- path: /
|
|
backend:
|
|
serviceName: tusd
|
|
servicePort: 80
|
|
- host: master.tus.io
|
|
http:
|
|
paths:
|
|
- path: /
|
|
backend:
|
|
serviceName: tusd
|
|
servicePort: 80
|