This commit is contained in:
artem.drozdov
2024-08-13 10:04:44 +03:00
parent 2b16b7af4a
commit 681b9324a8
2 changed files with 68 additions and 24 deletions

View File

@@ -1,3 +1,4 @@
{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
@@ -16,10 +17,11 @@ spec:
- "{{ . }}"
{{- end }}
rules:
- host: "{{ .Values.ingress.hostname }}"
{{- range .Values.ingress.rules }}
- host: "{{ .host }}"
http:
paths:
{{- range .Values.ingress.rules.paths }}
{{- range .paths }}
- path: {{ .path }}
pathType: {{ .pathType }}
backend:
@@ -27,4 +29,6 @@ spec:
name: {{ .service.name }}
port:
number: {{ .service.port | int }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}