Use hosts in ingress based on baseUrls again

This commit is contained in:
Martina Iglesias Fernandez
2020-10-05 17:29:28 +02:00
parent 8d578eed59
commit 19932ff7f5
+21 -10
View File
@@ -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