2022-07-01 15:00:51 +02:00
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: {{ tpl .Values.ingress.name . }}
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
{{- with .Values.ingress.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- tpl (. | toYaml) $ | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
spec:
|
|
|
|
ingressClassName: {{ .Values.ingress.className }}
|
|
|
|
{{- if .Values.ingress.tls }}
|
|
|
|
tls:
|
|
|
|
{{- range .Values.ingress.tls }}
|
|
|
|
- hosts:
|
|
|
|
{{- range .hosts }}
|
|
|
|
- {{ tpl . $ | quote }}
|
|
|
|
{{- end }}
|
|
|
|
secretName: {{ tpl (.secretName | toYaml) $ }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
rules:
|
|
|
|
{{- range .Values.ingress.hosts }}
|
|
|
|
- host: {{ tpl .host $ | quote }}
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
{{- range .paths }}
|
|
|
|
- path: {{ .path }}
|
|
|
|
pathType: {{ .pathType }}
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: {{ tpl $.Values.service.name $ }}
|
|
|
|
port:
|
2022-07-01 15:18:52 +02:00
|
|
|
number: {{ $.Values.service.port }}
|
2022-07-01 15:00:51 +02:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|