1 ################################################################################
2 # Copyright (c) 2021 HCL Technolgies Limited. #
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 #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
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 ################################################################################
19 {{- if .Values.service.annotations }}
21 {{ toYaml .Values.service.annotations | indent 4 }}
23 name: {{ include "common.fullname.influxdb" . }}
25 {{- include "common.influxdb.labels" . | nindent 4 }}
27 type: {{ .Values.service.type }}
30 port: {{ include "common.serviceport.influxdb.http.bind_address" . | default 8086 }}
33 port: {{ include "common.serviceport.influxdb.rpc.bind_address" . | default 8088 }}
35 {{- if .Values.config.graphite.enabled }}
37 port: {{ include "common.serviceport.influxdb.graphite.bind_address" . | default 2003 }}
40 {{- if .Values.config.collectd.enabled }}
42 port: {{ include "common.serviceport.influxdb.collectd.bind_address" . | default 25826 }}
46 {{- if .Values.config.udp.enabled }}
48 port: {{ include "common.serviceport.influxdb.udp.bind_address" . | default 8089 }}
52 {{- if .Values.config.opentsdb.enabled }}
54 port: {{ include "common.serviceport.influxdb.opentsdb.bind_address" . | default 4242 }}
58 {{- include "common.influxdb.selectorLabels" . | nindent 4 }}
59 {{- if .Values.service.loadBalancerIP }}
60 loadBalancerIP: {{ .Values.service.loadBalancerIP }}
62 {{- if .Values.service.externalIPs }}
64 {{ toYaml .Values.service.externalIPs | indent 4 }}
66 {{- if .Values.service.externalTrafficPolicy }}
67 externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}