Fix ingress template of navix
This commit is contained in:
parent
3dbb363c45
commit
509fa526fa
@ -10,16 +10,20 @@ metadata:
|
||||
spec:
|
||||
ingressClassName: {{ .Values.frontend.ingress.className }}
|
||||
rules:
|
||||
- host: {{ .Values.frontend.ingress.hosts[0].host }}
|
||||
{{- range .Values.frontend.ingress.hosts }}
|
||||
- host: {{ .host }}
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
{{- range .paths }}
|
||||
- path: {{ .path }}
|
||||
pathType: {{ .pathType }}
|
||||
backend:
|
||||
service:
|
||||
name: navix-frontend
|
||||
port:
|
||||
number: {{ .Values.frontend.service.port }}
|
||||
number: {{ $.Values.frontend.service.port }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
---
|
||||
@ -36,14 +40,18 @@ metadata:
|
||||
spec:
|
||||
ingressClassName: {{ .Values.backend.ingress.className }}
|
||||
rules:
|
||||
- host: {{ .Values.backend.ingress.hosts[0].host }}
|
||||
{{- range .Values.backend.ingress.hosts }}
|
||||
- host: {{ .host }}
|
||||
http:
|
||||
paths:
|
||||
- path: /api
|
||||
pathType: Prefix
|
||||
{{- range .paths }}
|
||||
- path: {{ .path }}
|
||||
pathType: {{ .pathType }}
|
||||
backend:
|
||||
service:
|
||||
name: navix-backend
|
||||
port:
|
||||
number: {{ .Values.backend.service.port }}
|
||||
{{- end }}
|
||||
number: {{ $.Values.backend.service.port }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user