about summary refs log tree commit diff
path: root/ops/infra/kubernetes/https-lb/ingress.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ops/infra/kubernetes/https-lb/ingress.yaml')
-rw-r--r--ops/infra/kubernetes/https-lb/ingress.yaml43
1 files changed, 43 insertions, 0 deletions
diff --git a/ops/infra/kubernetes/https-lb/ingress.yaml b/ops/infra/kubernetes/https-lb/ingress.yaml
new file mode 100644
index 000000000000..930affec7a15
--- /dev/null
+++ b/ops/infra/kubernetes/https-lb/ingress.yaml
@@ -0,0 +1,43 @@
+# 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:
+    networking.gke.io/managed-certificates: tazj-in, git-tazj-in, www-tazj-in, oslo-pub
+spec:
+  rules:
+    # Route website to, well, the website ...
+    - host: tazj.in
+      http:
+        paths:
+          - path: /*
+            backend:
+              serviceName: website
+              servicePort: 8080
+    # Same for www.* (the redirect is handled by the website nginx)
+    - host: www.tazj.in
+      http:
+        paths:
+          - path: /*
+            backend:
+              serviceName: website
+              servicePort: 8080
+    # Route git.tazj.in to the cgit pods
+    - host: git.tazj.in
+      http:
+        paths:
+          - path: /*
+            backend:
+              serviceName: nginx
+              servicePort: 6756
+    # Route oslo.pub to the nginx instance which serves redirects
+    - host: oslo.pub
+      http:
+        paths:
+          - path: /
+            backend:
+              serviceName: nginx
+              servicePort: 6756