1 {{- if .Values.enterprise.enabled }}
5 name: {{ include "influxdb.fullname" . }}-meta
7 {{- include "influxdb.labels" . | nindent 4 }}
8 app.kubernetes.io/component: meta
10 replicas: {{ .Values.enterprise.meta.clusterSize }}
13 {{- include "influxdb.selectorLabels" . | nindent 6 }}
14 app.kubernetes.io/component: meta
15 serviceName: "{{ include "influxdb.fullname" . }}-meta"
19 {{- include "influxdb.selectorLabels" . | nindent 8 }}
20 app.kubernetes.io/component: meta
21 {{- if .Values.podAnnotations }}
23 {{ toYaml .Values.podAnnotations | indent 8 }}
26 {{- if .Values.image.pullSecrets }}
28 {{- range .Values.image.pullSecrets }}
32 serviceAccountName: {{ include "influxdb.serviceAccountName" . }}
34 - name: "{{ include "influxdb.fullname" . }}-meta"
35 image: "{{ .Values.image.repository }}:{{ .Values.enterprise.meta.image.tag }}"
36 imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
38 {{ toYaml .Values.enterprise.meta.resources | indent 10 }}
41 containerPort: {{ .Values.config.udp.bind_address | default 8089 }}
43 containerPort: {{ .Values.config.rpc.bind_address | default 8088 }}
45 containerPort: {{ .Values.config.meta.bind_address | default 8091 }}
48 {{ toYaml .Values.env | indent 10 }}
49 # Values.env's HOSTNAME isn't fundamentally different from $HOSTNAME, but this way we get a distinguished name for InfluxDB at runtime.
50 - name: INFLUXDB_HOSTNAME
51 value: "$(_HOSTNAME).{{ include "influxdb.fullname" . }}-meta"
55 path: {{ .Values.livenessProbe.path | default "/ping" }}
57 initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 30 }}
58 timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds | default 5 }}
61 path: {{ .Values.readinessProbe.path | default "/ping" }}
63 initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds | default 5 }}
64 timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds | default 1 }}
65 {{- if .Values.startupProbe.enabled }}
68 path: {{ .Values.startupProbe.path | default "/ping" }}
70 failureThreshold: {{ .Values.startupProbe.failureThreshold | default 6 }}
71 periodSeconds: {{ .Values.startupProbe.periodSeconds | default 5 }}
74 - name: {{ include "influxdb.fullname" . }}-meta
75 mountPath: /var/lib/influxdb
77 mountPath: /etc/influxdb
78 {{- if .Values.initScripts.enabled }}
80 mountPath: /docker-entrypoint-initdb.d
85 name: {{ include "influxdb.fullname" . }}-meta
86 {{- if .Values.initScripts.enabled }}
89 name: {{ include "influxdb.fullname" . }}-init
91 {{- if (not .Values.persistence.enabled ) }}
92 - name: {{ include "influxdb.fullname" . }}-meta
95 {{- if .Values.schedulerName }}
96 schedulerName: "{{ .Values.schedulerName }}"
98 {{- if .Values.nodeSelector }}
100 {{ toYaml .Values.nodeSelector | indent 8 }}
102 {{- if .Values.affinity }}
104 {{ toYaml .Values.affinity | indent 8 }}
106 {{- if .Values.tolerations }}
108 {{ toYaml .Values.tolerations | indent 8 }}
110 {{- if .Values.persistence.enabled }}
111 volumeClaimTemplates:
113 name: {{ include "influxdb.fullname" . }}-meta
115 {{- range $key, $value := .Values.persistence.annotations }}
116 {{ $key }}: "{{ $value }}"
120 - {{ .Values.persistence.accessMode | quote}}
123 storage: {{ .Values.persistence.size | quote }}
124 {{- if .Values.persistence.storageClass }}
125 {{- if (eq "-" .Values.persistence.storageClass) }}
128 storageClassName: "{{ .Values.persistence.storageClass }}"