1 {{- if .Values.replicaSet.enabled }}
5 name: {{ template "mongodb.fullname" . }}-headless
6 namespace: {{.Values.namespace }}
8 app: {{ template "mongodb.name" . }}
9 chart: {{ template "mongodb.chart" . }}
10 release: "{{ .Release.Name }}"
11 heritage: "{{ .Release.Service }}"
12 {{- with .Values.service.annotations }}
13 annotations: {{ tpl (toYaml .) $ | nindent 4 }}
20 port: {{ .Values.service.port }}
22 app: {{ template "mongodb.name" . }}
23 release: {{ .Release.Name }}