From 19932ff7f51bd51cf3f0522635afd6138e17ded4 Mon Sep 17 00:00:00 2001 From: Martina Iglesias Fernandez Date: Mon, 5 Oct 2020 17:29:28 +0200 Subject: [PATCH] Use hosts in ingress based on baseUrls again --- .../chart/backstage/templates/ingress.yaml | 31 +++++++++++++------ 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/contrib/chart/backstage/templates/ingress.yaml b/contrib/chart/backstage/templates/ingress.yaml index a4a3c0ff00..2ff713a3b6 100644 --- a/contrib/chart/backstage/templates/ingress.yaml +++ b/contrib/chart/backstage/templates/ingress.yaml @@ -8,14 +8,25 @@ metadata: {{- end }} spec: rules: - - http: - paths: - - path: /api - backend: - serviceName: {{ include "backend.serviceName" . }} - servicePort: 80 - - path: / - backend: - serviceName: {{ include "frontend.serviceName" . }} - servicePort: 80 + - host: {{ .Values.appConfig.app.baseUrl | trimPrefix "https://" | trimSuffix "/" }} + http: + paths: + - path: / + backend: + serviceName: {{ include "frontend.serviceName" . }} + servicePort: 80 + - host: {{ .Values.appConfig.backend.baseUrl | trimPrefix "https://" | trimSuffix "/" }} + http: + paths: + - path: /api + backend: + serviceName: {{ include "backend.serviceName" . }} + servicePort: 80 + - host: {{ .Values.appConfig.lighthouse.baseUrl | trimPrefix "https://" | trimSuffix "/" }} + http: + paths: + - path: / + backend: + serviceName: {{ include "lighthouse.serviceName" . }} + servicePort: 80