Chandrasekaran Ramachandran | b515b96 | 2021-06-11 16:07:09 +0530 | [diff] [blame^] | 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 | ################################################################################ |
Chandru | 22ebf74 | 2021-06-02 17:16:37 +0530 | [diff] [blame] | 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 }} |
Chandrasekaran Ramachandran | b515b96 | 2021-06-11 16:07:09 +0530 | [diff] [blame^] | 24 | name: {{ include "common.fullname.influxdb" . }}-meta |
Chandru | 22ebf74 | 2021-06-02 17:16:37 +0530 | [diff] [blame] | 25 | labels: |
Chandrasekaran Ramachandran | b515b96 | 2021-06-11 16:07:09 +0530 | [diff] [blame^] | 26 | {{- include "common.influxdb.labels" . | nindent 4 }} |
Chandru | 22ebf74 | 2021-06-02 17:16:37 +0530 | [diff] [blame] | 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 |
Chandrasekaran Ramachandran | b515b96 | 2021-06-11 16:07:09 +0530 | [diff] [blame^] | 35 | port: {{ include "common.serviceport.influxdb.meta.bind_address" . | default 8091 }} |
Chandru | 22ebf74 | 2021-06-02 17:16:37 +0530 | [diff] [blame] | 36 | targetPort: meta |
| 37 | selector: |
Chandrasekaran Ramachandran | b515b96 | 2021-06-11 16:07:09 +0530 | [diff] [blame^] | 38 | {{- include "common.influxdb.selectorLabels" . | nindent 4 }} |
Chandru | 22ebf74 | 2021-06-02 17:16:37 +0530 | [diff] [blame] | 39 | app.kubernets.io/component: meta |
| 40 | {{- end }} |