d3f2efb8 by Adam Heath

Add an Ingress object.

1 parent 2e3a2ef0
{{- 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 }}
......@@ -43,6 +43,14 @@ service:
port: 8080
ingress:
enabled: false
annotations: {}
ingressClassName: ""
hosts:
- moqui.local
tls:
enabled: false
secretName: moqui-tls
virtualService:
enabled: false
gateways:
......