1 {{- if .Values.ingress.enabled }}
2 apiVersion: extensions/v1beta1
5 name: {{ template "mongodb.fullname" . }}
6 namespace: {{.Values.namespace }}
8 app: {{ template "mongodb.name" . }}
9 chart: {{ template "mongodb.chart" . }}
10 release: "{{ .Release.Name }}"
11 heritage: "{{ .Release.Service }}"
13 {{- if .Values.ingress.certManager }}
14 kubernetes.io/tls-acme: "true"
16 {{- range $key, $value := .Values.ingress.annotations }}
17 {{ $key }}: {{ $value | quote }}
21 {{- range .Values.ingress.hosts }}
25 - path: {{ default "/" .path }}
27 serviceName: {{ template "mongodb.serviceName" $ }}
30 {{- if .Values.ingress.tls }}
32 {{ toYaml .Values.ingress.tls | indent 4 }}