about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-09-02T17·28+0100
committerVincent Ambo <tazjin@google.com>2019-09-02T17·28+0100
commita0089892dd84ab78d58b76067e441cce57b27f62 (patch)
treee807311cdc6578471c7b518ddd6fb93dd9436ba7
parent785a5a29976a9682bd1a8a30c2bfa50185a0b5cf (diff)
feat(k8s): Route oslo.pub to nginx in ingress
-rw-r--r--infra/kubernetes/https-lb/ingress.yaml10
1 files changed, 9 insertions, 1 deletions
diff --git a/infra/kubernetes/https-lb/ingress.yaml b/infra/kubernetes/https-lb/ingress.yaml
index 5afb5f3a48e1..03fa2cec0738 100644
--- a/infra/kubernetes/https-lb/ingress.yaml
+++ b/infra/kubernetes/https-lb/ingress.yaml
@@ -6,10 +6,18 @@ kind: Ingress
 metadata:
   name: https-ingress
   annotations:
-    networking.gke.io/managed-certificates: tazj-in, www-tazj-in
+    networking.gke.io/managed-certificates: tazj-in, www-tazj-in, oslo-pub
 spec:
   # Default traffic is routed to the blog, in case people go to
   # peculiar hostnames.
   backend:
     serviceName: tazblog
     servicePort: 8000
+  rules:
+    # Route oslo.pub to the nginx instance which serves redirects
+    - host: oslo.pub
+      http:
+        paths:
+          - backend:
+              serviceName: nginx
+              servicePort: 80