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