mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-01 13:50:25 +01:00
Route ingress hoogle traffic to separate service
This commit is contained in:
parent
0afe4a7ab5
commit
cca49c10b8
@ -7,15 +7,25 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: "nginx"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
kubernetes.io/tls-acme: "true"
|
kubernetes.io/tls-acme: "true"
|
||||||
|
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: "${HOST}"
|
- host: "${HOST}"
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- backend:
|
- path: /haddock.*
|
||||||
serviceName: "${DEPLOYMENT_NAME}"
|
backend:
|
||||||
servicePort: 80
|
serviceName: "${DEPLOYMENT_NAME}"
|
||||||
|
servicePort: 80
|
||||||
|
- path: /.+/hoogle
|
||||||
|
backend:
|
||||||
|
serviceName: "${HOOGLE_DEPLOYMENT_NAME}"
|
||||||
|
servicePort: 80
|
||||||
|
- backend:
|
||||||
|
serviceName: "${DEPLOYMENT_NAME}"
|
||||||
|
servicePort: 80
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- "${HOST}"
|
- "${HOST}"
|
||||||
secretName: "${DEPLOYMENT_NAME}-tls"
|
secretName: "${DEPLOYMENT_NAME}-tls"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user