imfreedom/k8s-cluster

Parents e89f20d223ee
Children 23b5aca98e8b
Update the docs ingress to redirect when the trailing slash is missing. Also fix the secretName for the certificate
--- a/50-docs.pidgin.im.yaml Tue Aug 13 15:34:27 2019 -0500
+++ b/50-docs.pidgin.im.yaml Wed Aug 14 00:03:02 2019 -0500
@@ -10,6 +10,10 @@
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "X-Frame-Options: SAMEORIGIN";
+ rewrite ^(/libgnt/latest)$ $1/ redirect;
+ rewrite ^(/libgnt/next)$ $1/ redirect;
+ rewrite ^(/pidgin/2.x.y)$ $1/ redirect;
+ rewrite ^(/talkatu/latest)$ $1/ redirect;
labels:
app: docs
spec:
@@ -20,19 +24,19 @@
- backend:
serviceName: docs-libgnt-latest
servicePort: 3000
- path: /libgnt/latest(/(.*)|$)
+ path: /libgnt/latest(/|$)(.*)
- backend:
serviceName: docs-libgnt-next
servicePort: 3000
- path: /libgnt/next(/(.*)|$)
+ path: /libgnt/next(/|$)(.*)
- backend:
serviceName: docs-pidgin-2-x-y
servicePort: 3000
- path: /pidgin/2.x.y(/(.*)|$)
+ path: /pidgin/2.x.y(/|$)(.*)
- backend:
serviceName: docs-talkatu-latest
servicePort: 3000
- path: /talkatu/latest(/(.*)|$)
+ path: /talkatu/latest(/|$)(.*)
tls:
- hosts:
- docs.pidgin.im
@@ -44,7 +48,7 @@
namespace: pidgin
name: docs
spec:
- secretname: docs-tls
+ secretName: docs-tls
issuerRef:
name: letsencrypt
commonName: docs.pidgin.im