Issue-ID: RICAPP-169 - Inclusion of InfluxDB helm chart for KPIMON, AD, TS, QP xApps
[ric-plt/ric-dep.git] / helm / 3rdparty / influxdb / templates / meta-service.yaml
diff --git a/helm/3rdparty/influxdb/templates/meta-service.yaml b/helm/3rdparty/influxdb/templates/meta-service.yaml
new file mode 100644 (file)
index 0000000..78d18e5
--- /dev/null
@@ -0,0 +1,25 @@
+{{ if .Values.enterprise.enabled -}}
+apiVersion: v1
+kind: Service
+metadata:
+{{- if .Values.service.annotations }}
+  annotations:
+{{ toYaml .Values.service.annotations | indent 4 }}
+{{- end }}
+  name: {{ include "influxdb.fullname" . }}-meta
+  labels:
+    {{- include "influxdb.labels" . | nindent 4 }}
+    app.kubernets.io/component: meta
+spec:
+  type: ClusterIP
+  clusterIP: None
+  # publishNotReadyAddresses is used for service discovery of meta and data nodes by querying the service's SRV record.
+  publishNotReadyAddresses: true
+  ports:
+    - name: meta
+      port: {{ .Values.config.meta.bind_address | default 8091 }}
+      targetPort: meta
+  selector:
+    {{- include "influxdb.selectorLabels" . | nindent 4 }}
+    app.kubernets.io/component: meta
+{{- end }}