Issue-ID: RICAPP-169 - Inclusion of InfluxDB helm chart for KPIMON, AD, TS, QP xApps
[ric-plt/ric-dep.git] / helm / 3rdparty / influxdb / templates / meta-service.yaml
1 ################################################################################
2 #   Copyright (c) 2021 HCL Technolgies Limited.                                #
3 #                                                                              #
4 #   Licensed under the Apache License, Version 2.0 (the "License");            #
5 #   you may not use this file except in compliance with the License.           #
6 #   You may obtain a copy of the License at                                    #
7 #                                                                              #
8 #       http://www.apache.org/licenses/LICENSE-2.0                             #
9 #                                                                              #
10 #   Unless required by applicable law or agreed to in writing, software        #
11 #   distributed under the License is distributed on an "AS IS" BASIS,          #
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
13 #   See the License for the specific language governing permissions and        #
14 #   limitations under the License.                                             #
15 ################################################################################
16 {{ if .Values.enterprise.enabled -}}
17 apiVersion: v1
18 kind: Service
19 metadata:
20 {{- if .Values.service.annotations }}
21   annotations:
22 {{ toYaml .Values.service.annotations | indent 4 }}
23 {{- end }}
24   name: {{ include "common.fullname.influxdb" . }}-meta
25   labels:
26     {{- include "common.influxdb.labels" . | nindent 4 }}
27     app.kubernets.io/component: meta
28 spec:
29   type: ClusterIP
30   clusterIP: None
31   # publishNotReadyAddresses is used for service discovery of meta and data nodes by querying the service's SRV record.
32   publishNotReadyAddresses: true
33   ports:
34     - name: meta
35       port: {{ include "common.serviceport.influxdb.meta.bind_address" . | default 8091 }}
36       targetPort: meta
37   selector:
38     {{- include "common.influxdb.selectorLabels" . | nindent 4 }}
39     app.kubernets.io/component: meta
40 {{- end }}