78d18e5ebec1a8051c96f8c3583a4a637b874d88
[ric-plt/ric-dep.git] / helm / 3rdparty / influxdb / templates / meta-service.yaml
1 {{ if .Values.enterprise.enabled -}}
2 apiVersion: v1
3 kind: Service
4 metadata:
5 {{- if .Values.service.annotations }}
6   annotations:
7 {{ toYaml .Values.service.annotations | indent 4 }}
8 {{- end }}
9   name: {{ include "influxdb.fullname" . }}-meta
10   labels:
11     {{- include "influxdb.labels" . | nindent 4 }}
12     app.kubernets.io/component: meta
13 spec:
14   type: ClusterIP
15   clusterIP: None
16   # publishNotReadyAddresses is used for service discovery of meta and data nodes by querying the service's SRV record.
17   publishNotReadyAddresses: true
18   ports:
19     - name: meta
20       port: {{ .Values.config.meta.bind_address | default 8091 }}
21       targetPort: meta
22   selector:
23     {{- include "influxdb.selectorLabels" . | nindent 4 }}
24     app.kubernets.io/component: meta
25 {{- end }}