fix(ops/infra/k8s): Send www.* to nginx for redirections
This commit is contained in:
parent
1fa3316ca1
commit
4a18b3971a
1 changed files with 9 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ metadata:
|
||||||
networking.gke.io/managed-certificates: tazj-in, git-tazj-in, www-tazj-in, oslo-pub
|
networking.gke.io/managed-certificates: tazj-in, git-tazj-in, www-tazj-in, oslo-pub
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
# Route blog to the blog ...
|
# Route website to, well, the website ...
|
||||||
- host: tazj.in
|
- host: tazj.in
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
|
|
@ -17,6 +17,14 @@ spec:
|
||||||
backend:
|
backend:
|
||||||
serviceName: website
|
serviceName: website
|
||||||
servicePort: 8080
|
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
|
# Route git.tazj.in to the cgit pods
|
||||||
- host: git.tazj.in
|
- host: git.tazj.in
|
||||||
http:
|
http:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue