ingress.yaml
825 Bytes
{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "moqui.fullname" . }}
labels: {{- include "moqui.labels" . | nindent 4 }}
annotations: {{ .Values.ingress.annotations | toYaml | nindent 4 }}
spec:
ingressClassName: {{ .Values.ingress.ingressClassName }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ . }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "moqui.fullname" $ }}
port:
name: http-moqui
{{- end }}
{{- if .Values.ingress.tls.enabled }}
tls:
- hosts: {{ .Values.ingress.hosts | toYaml | nindent 8 }}
secretName: {{ .Values.ingress.tls.secretName }}
{{- end }}
{{- end }}