27 lines
741 B
YAML
27 lines
741 B
YAML
{{- if .Values.ingress.enabled }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ .Release.Name }}
|
|
{{- with .Values.ingress.annotations }}
|
|
annotations:
|
|
{{ toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
ingressClassName: {{ .Values.ingress.className }}
|
|
rules:
|
|
- host: {{ (index .Values.ingress.hosts 0).host }}
|
|
http:
|
|
paths:
|
|
- path: {{ (index .Values.ingress.hosts 0).path }}
|
|
pathType: {{ (index .Values.ingress.hosts 0).pathType }}
|
|
backend:
|
|
service:
|
|
name: {{ .Release.Name }}
|
|
port:
|
|
number: {{ $.Values.service.port }}
|
|
tls:
|
|
- hosts:
|
|
- {{ (index .Values.ingress.hosts 0).host }}
|
|
{{- end }}
|