d3f2efb8 by Adam Heath

Add an Ingress object.

1 parent 2e3a2ef0
1 {{- if .Values.ingress.enabled }}
2 apiVersion: networking.k8s.io/v1
3 kind: Ingress
4 metadata:
5 name: {{ include "moqui.fullname" . }}
6 labels: {{- include "moqui.labels" . | nindent 4 }}
7 annotations: {{ .Values.ingress.annotations | toYaml | nindent 4 }}
8 spec:
9 ingressClassName: {{ .Values.ingress.ingressClassName }}
10 rules:
11 {{- range .Values.ingress.hosts }}
12 - host: {{ . }}
13 http:
14 paths:
15 - path: /
16 pathType: Prefix
17 backend:
18 service:
19 name: {{ include "moqui.fullname" $ }}
20 port:
21 name: http-moqui
22 {{- end }}
23 {{- if .Values.ingress.tls.enabled }}
24 tls:
25 - hosts: {{ .Values.ingress.hosts | toYaml | nindent 8 }}
26 secretName: {{ .Values.ingress.tls.secretName }}
27 {{- end }}
28 {{- end }}
29
...@@ -43,6 +43,14 @@ service: ...@@ -43,6 +43,14 @@ service:
43 port: 8080 43 port: 8080
44 ingress: 44 ingress:
45 enabled: false 45 enabled: false
46 annotations: {}
47 ingressClassName: ""
48 hosts:
49 - moqui.local
50 tls:
51 enabled: false
52 secretName: moqui-tls
53
46 virtualService: 54 virtualService:
47 enabled: false 55 enabled: false
48 gateways: 56 gateways:
......