From 4a18b3971a533232c11c03afe6a971a1a6988066 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 9 Feb 2020 01:54:13 +0000 Subject: fix(ops/infra/k8s): Send www.* to nginx for redirections --- ops/infra/kubernetes/https-lb/ingress.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ops') diff --git a/ops/infra/kubernetes/https-lb/ingress.yaml b/ops/infra/kubernetes/https-lb/ingress.yaml index b50ea21cee..930affec7a 100644 --- a/ops/infra/kubernetes/https-lb/ingress.yaml +++ b/ops/infra/kubernetes/https-lb/ingress.yaml @@ -9,7 +9,7 @@ metadata: networking.gke.io/managed-certificates: tazj-in, git-tazj-in, www-tazj-in, oslo-pub spec: rules: - # Route blog to the blog ... + # Route website to, well, the website ... - host: tazj.in http: paths: @@ -17,6 +17,14 @@ spec: 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: -- cgit 1.4.1