From 2f470660a6e27d6c9a7a9af6f6cfd9054364c520 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 26 Sep 2022 19:39:02 +0200 Subject: [PATCH] Serving from nav.tum.de (#211) enabled serving from nav.tum.de --- deployment/k3s/templates/ingress/https-cert.yaml | 1 + deployment/k3s/templates/ingress/ingress.yaml | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/deployment/k3s/templates/ingress/https-cert.yaml b/deployment/k3s/templates/ingress/https-cert.yaml index e02e7e4f1..5c4df9eea 100644 --- a/deployment/k3s/templates/ingress/https-cert.yaml +++ b/deployment/k3s/templates/ingress/https-cert.yaml @@ -11,6 +11,7 @@ spec: - {{ .Values.url }} {{ if eq "nav.tum.sexy" .Values.url }} - nav.tum.app + - nav.tum.de {{ end }} secretName: {{ .Values.url }} issuerRef: diff --git a/deployment/k3s/templates/ingress/ingress.yaml b/deployment/k3s/templates/ingress/ingress.yaml index cf6c25e29..342944f05 100644 --- a/deployment/k3s/templates/ingress/ingress.yaml +++ b/deployment/k3s/templates/ingress/ingress.yaml @@ -12,7 +12,7 @@ spec: # temporary workaround for traefik bug (interoperability with ingress) - kind: Rule match: | - {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} && + {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) || Host(`nav.tum.de`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} && PathPrefix(`/.well-known/acme-challenge/`) priority: 13 services: @@ -21,7 +21,7 @@ spec: kind: Service - kind: Rule match: | - {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} && + {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) || Host(`nav.tum.de`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} && PathPrefix(`/api/`) priority: 12 services: @@ -29,7 +29,7 @@ spec: port: 7000 - kind: Rule match: | - {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} && + {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) || Host(`nav.tum.de`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} && PathPrefix(`/maps/`) priority: 11 services: @@ -39,7 +39,7 @@ spec: - name: stripprefix - kind: Rule match: | - {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} && + {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) || Host(`nav.tum.de`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} && PathPrefix(`/cdn/`) priority: 10 services: @@ -47,7 +47,7 @@ spec: port: 8000 - kind: Rule match: | - {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} && + {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) || Host(`nav.tum.de`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} && PathPrefix(`/rendertron/`) priority: 9 services: @@ -56,7 +56,7 @@ spec: middlewares: - name: stripprefix - kind: Rule - match: {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} + match: {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) || Host(`nav.tum.de`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} priority: 8 services: - name: webclient-svc @@ -78,7 +78,7 @@ spec: # temproary workaround for traefik bug (interoperability with ingress) - kind: Rule match: | - {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} && + {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) || Host(`nav.tum.de`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} && PathPrefix(`/.well-known/acme-challenge/`) priority: 12 services: @@ -86,7 +86,7 @@ spec: port: 8089 kind: Service - kind: Rule - match: {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} + match: {{ if eq "nav.tum.sexy" .Values.url }}( Host(`{{ .Values.url }}`) || Host(`nav.tum.app`)) || Host(`nav.tum.de`)) {{ else }} Host(`{{ .Values.url }}`) {{ end }} priority: 9 services: - name: noop@internal