1 ################################################################################
\r
2 # Copyright (c) 2021 HCL Technologies Limited. #
\r
4 # Licensed under the Apache License, Version 2.0 (the "License"); #
\r
5 # you may not use this file except in compliance with the License. #
\r
6 # You may obtain a copy of the License at #
\r
8 # http://www.apache.org/licenses/LICENSE-2.0 #
\r
10 # Unless required by applicable law or agreed to in writing, software #
\r
11 # distributed under the License is distributed on an "AS IS" BASIS, #
\r
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
\r
13 # See the License for the specific language governing permissions and #
\r
14 # limitations under the License. #
\r
15 ################################################################################
\r
17 {{- define "common.name.influxdb" -}}
\r
18 {{- printf "influxdb" -}}
\r
21 {{- define "common.fullname.influxdb" -}}
\r
22 {{- $name := ( include "common.name.influxdb" . ) -}}
\r
23 {{- $namespace := ( include "common.namespace.platform" . ) -}}
\r
24 {{- printf "%s-%s" $namespace $name | trunc 63 | trimSuffix "-" -}}
\r
27 {{- define "common.influxdb.chart" -}}
\r
28 {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
\r
31 {{- define "common.influxdb.labels" -}}
\r
32 helm.sh/chart: {{ include "common.influxdb.chart" . }}
\r
33 {{ include "common.influxdb.selectorLabels" . }}
\r
34 {{- if .Chart.AppVersion }}
\r
35 app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
\r
37 app.kubernetes.io/managed-by: {{ .Release.Service }}
\r
40 {{- define "common.influxdb.selectorLabels" -}}
\r
41 app.kubernetes.io/name: {{ include "common.name.influxdb" . }}
\r
42 app.kubernetes.io/instance: {{ .Release.Name }}
\r
45 {{- define "common.influxdb.serviceAccountName" -}}
\r
46 {{- $name := ( include "common.fullname.influxdb" . ) -}}
\r
47 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
\r
50 {{- define "common.serviceport.influxdb.http" -}}8086{{- end -}}
\r
51 {{- define "common.serviceport.influxdb.meta.bind_address" -}}8091{{- end -}}
\r
52 {{- define "common.serviceport.influxdb.http.bind_address" -}}8086{{- end -}}
\r
53 {{- define "common.serviceport.influxdb.rpc.bind_address" -}}8088{{- end -}}
\r
54 {{- define "common.serviceport.influxdb.graphite.bind_address" -}}2003{{- end -}}
\r
55 {{- define "common.serviceport.influxdb.udp.bind_address" -}}8089{{- end -}}
\r
56 {{- define "common.serviceport.influxdb.opentsdb.bind_address" -}}4242{{- end -}}
\r
57 {{- define "common.serviceport.influxdb.collectd.bind_address" -}}25826{{- end -}}
\r