blob: 0ee4aae5fccd5aa194f6077ff9c102d5eb6bc9b5 [file] [log] [blame]
Chandrasekaran Ramachandranb515b962021-06-11 16:07:09 +05301################################################################################
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################################################################################
Chandru22ebf742021-06-02 17:16:37 +053016{{ if .Values.enterprise.enabled -}}
17apiVersion: v1
18kind: Service
19metadata:
20{{- if .Values.service.annotations }}
21 annotations:
22{{ toYaml .Values.service.annotations | indent 4 }}
23{{- end }}
Chandrasekaran Ramachandranb515b962021-06-11 16:07:09 +053024 name: {{ include "common.fullname.influxdb" . }}-meta
Chandru22ebf742021-06-02 17:16:37 +053025 labels:
Chandrasekaran Ramachandranb515b962021-06-11 16:07:09 +053026 {{- include "common.influxdb.labels" . | nindent 4 }}
Chandru22ebf742021-06-02 17:16:37 +053027 app.kubernets.io/component: meta
28spec:
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
Chandrasekaran Ramachandranb515b962021-06-11 16:07:09 +053035 port: {{ include "common.serviceport.influxdb.meta.bind_address" . | default 8091 }}
Chandru22ebf742021-06-02 17:16:37 +053036 targetPort: meta
37 selector:
Chandrasekaran Ramachandranb515b962021-06-11 16:07:09 +053038 {{- include "common.influxdb.selectorLabels" . | nindent 4 }}
Chandru22ebf742021-06-02 17:16:37 +053039 app.kubernets.io/component: meta
40{{- end }}