2019-08-27 13:44:37 +02:00
|
|
|
# This resource configures the HTTPS load balancer that is used as the
|
|
|
|
# entrypoint to all HTTPS services running in the cluster.
|
|
|
|
---
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: https-ingress
|
|
|
|
annotations:
|
2019-12-20 17:07:40 +01:00
|
|
|
networking.gke.io/managed-certificates: tazj-in, git-tazj-in, www-tazj-in, oslo-pub
|
2019-08-27 13:44:37 +02:00
|
|
|
spec:
|
2019-09-02 19:28:39 +02:00
|
|
|
rules:
|
2020-02-09 02:54:13 +01:00
|
|
|
# Route website to, well, the website ...
|
2019-12-20 19:42:56 +01:00
|
|
|
- host: tazj.in
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /*
|
|
|
|
backend:
|
2020-02-09 02:27:46 +01:00
|
|
|
serviceName: website
|
|
|
|
servicePort: 8080
|
2020-02-09 02:54:13 +01:00
|
|
|
# Same for www.* (the redirect is handled by the website nginx)
|
|
|
|
- host: www.tazj.in
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /*
|
|
|
|
backend:
|
|
|
|
serviceName: website
|
|
|
|
servicePort: 8080
|
2019-12-20 17:07:40 +01:00
|
|
|
# Route git.tazj.in to the cgit pods
|
|
|
|
- host: git.tazj.in
|
|
|
|
http:
|
|
|
|
paths:
|
2019-12-20 19:42:56 +01:00
|
|
|
- path: /*
|
2019-12-20 17:07:40 +01:00
|
|
|
backend:
|
2019-12-20 19:42:56 +01:00
|
|
|
serviceName: nginx
|
|
|
|
servicePort: 6756
|
2019-09-02 19:28:39 +02:00
|
|
|
# Route oslo.pub to the nginx instance which serves redirects
|
|
|
|
- host: oslo.pub
|
|
|
|
http:
|
|
|
|
paths:
|
2019-09-02 21:16:49 +02:00
|
|
|
- path: /
|
|
|
|
backend:
|
2019-09-02 19:28:39 +02:00
|
|
|
serviceName: nginx
|
2019-09-02 21:16:49 +02:00
|
|
|
servicePort: 6756
|