Unverified Commit 3219dd54 authored by Pavel Závora's avatar Pavel Závora Committed by GitHub

feat(influxdb-enterprise): allow to customize meta service properties (#468)

* feat(influxdb-enterprise): allow to specify meta service type * feat(influxdb-enterprise): use meta service properties from Values * feat(influxdb-enterprise): allow to specify meta and data service nodePort * chore: bump chart version
parent 4e56a0f5
apiVersion: v1
version: 0.1.18
version: 0.1.19
appVersion: 1.9.6
engine: gotpl
......
......@@ -19,6 +19,9 @@ spec:
- port: 8086
protocol: TCP
name: http
{{- if .Values.data.service.nodePort }}
nodePort: {{ .Values.data.service.nodePort }}
{{- end }}
- port: 8088
protocol: TCP
name: rpc
......
......@@ -10,8 +10,10 @@ metadata:
influxdb.influxdata.com/component: meta
{{- include "influxdb-enterprise.labels" . | nindent 4 }}
spec:
type: ClusterIP
type: {{ .Values.meta.service.type }}
{{- if (eq "ClusterIP" .Values.meta.service.type) }}
clusterIP: None
{{- end }}
publishNotReadyAddresses: true
ports:
- port: 8089
......@@ -20,6 +22,19 @@ spec:
- port: 8091
protocol: TCP
name: http
{{- if .Values.meta.service.nodePort }}
nodePort: {{ .Values.meta.service.nodePort }}
{{- end }}
selector:
influxdb.influxdata.com/component: meta
{{- include "influxdb-enterprise.selectorLabels" . | nindent 4 }}
{{- if .Values.meta.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.meta.service.loadBalancerIP }}
{{- end }}
{{- if .Values.meta.service.externalIPs }}
externalIPs:
{{ toYaml .Values.meta.service.externalIPs | indent 4 }}
{{- end }}
{{- if .Values.meta.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.meta.service.externalTrafficPolicy }}
{{- end }}
......@@ -117,6 +117,10 @@ meta:
## ClusterIP is default
## ref: http://kubernetes.io/docs/user-guide/services/
type: ClusterIP
# loadBalancerIP: ""
# externalIPs: []
# externalTrafficPolicy: ""
# nodePort: 30086
## Add annotations to service
# annotations: {}
#
......@@ -217,6 +221,7 @@ data:
# loadBalancerIP: ""
# externalIPs: []
# externalTrafficPolicy: ""
# nodePort: 30091
## Add annotations to service
# annotations: {}
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment