40 lines
980 B
YAML
40 lines
980 B
YAML
apiVersion: extensions/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: tusd
|
|
namespace: tus
|
|
annotations:
|
|
kubernetes.io/tls-acme: "true"
|
|
kubernetes.io/ingress.class: "nginx"
|
|
ingress.kubernetes.io/proxy-request-buffering: 'off'
|
|
ingress.kubernetes.io/proxy-body-size: '400m'
|
|
ingress.kubernetes.io/proxy-connect-timeout: "300"
|
|
ingress.kubernetes.io/proxy-send-timeout: "300"
|
|
ingress.kubernetes.io/proxy-read-timeout: "300"
|
|
ingress.kubernetes.io/enable-cors: "true"
|
|
ingress.kubernetes.io/cors-allow-methods: "GET, PUT, POST, DELETE, PATCH, OPTIONS"
|
|
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
|
|
|