34 lines
926 B
YAML
34 lines
926 B
YAML
|
{{- if .Values.ingress.enabled }}
|
||
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: {{ .Values.ingress.name }}
|
||
|
namespace: {{ .Values.ingress.namespace }}
|
||
|
annotations:
|
||
|
{{- range $key, $value := .Values.ingress.annotations }}
|
||
|
{{ $key }}: "{{ $value }}"
|
||
|
{{- end }}
|
||
|
spec:
|
||
|
ingressClassName: {{ .Values.ingress.ingressClassName }}
|
||
|
tls:
|
||
|
- secretName: "{{ .Values.ingress.tls.secretName }}"
|
||
|
hosts:
|
||
|
{{- range .Values.ingress.tls.hosts }}
|
||
|
- "{{ . }}"
|
||
|
{{- end }}
|
||
|
rules:
|
||
|
{{- range .Values.ingress.rules }}
|
||
|
- host: "{{ .host }}"
|
||
|
http:
|
||
|
paths:
|
||
|
{{- range .paths }}
|
||
|
- path: {{ .path }}
|
||
|
pathType: {{ .pathType }}
|
||
|
backend:
|
||
|
service:
|
||
|
name: {{ .service.name }}
|
||
|
port:
|
||
|
number: {{ .service.port | int }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|