mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 12:18:29 +01:00
32 lines
750 B
YAML
32 lines
750 B
YAML
apiVersion: extensions/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: "${DEPLOYMENT_NAME}"
|
|
labels:
|
|
app: "${DEPLOYMENT_APP}"
|
|
annotations:
|
|
kubernetes.io/ingress.class: "nginx"
|
|
kubernetes.io/tls-acme: "true"
|
|
nginx.ingress.kubernetes.io/use-regex: "true"
|
|
spec:
|
|
rules:
|
|
- host: "${HOST}"
|
|
http:
|
|
paths:
|
|
- path: /haddock.*
|
|
backend:
|
|
serviceName: "${DEPLOYMENT_NAME}"
|
|
servicePort: 80
|
|
- path: /.+/hoogle
|
|
backend:
|
|
serviceName: "${HOOGLE_DEPLOYMENT_NAME}"
|
|
servicePort: 80
|
|
- backend:
|
|
serviceName: "${DEPLOYMENT_NAME}"
|
|
servicePort: 80
|
|
tls:
|
|
- hosts:
|
|
- "${HOST}"
|
|
secretName: "${DEPLOYMENT_NAME}-tls"
|
|
|