a8507520df54a30af380d4421e3a4a13fa07e9d1
[it/otf.git] / otf-helm / otf / charts / databases / mongodb / templates / svc-headless-rs.yaml
1 {{- if .Values.replicaSet.enabled }}
2 apiVersion: v1
3 kind: Service
4 metadata:
5   name: {{ template "mongodb.fullname" . }}-headless
6   namespace: {{.Values.namespace }}
7   labels:
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 }}
14 {{- end }}
15 spec:
16   type: ClusterIP
17   clusterIP: None
18   ports:
19   - name: mongodb
20     port: {{ .Values.service.port }}
21   selector:
22     app: {{ template "mongodb.name" . }}
23     release: {{ .Release.Name }}
24 {{- end }}