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 apiVersion: v1
version: 0.1.18 version: 0.1.19
appVersion: 1.9.6 appVersion: 1.9.6
engine: gotpl engine: gotpl
......
...@@ -19,6 +19,9 @@ spec: ...@@ -19,6 +19,9 @@ spec:
- port: 8086 - port: 8086
protocol: TCP protocol: TCP
name: http name: http
{{- if .Values.data.service.nodePort }}
nodePort: {{ .Values.data.service.nodePort }}
{{- end }}
- port: 8088 - port: 8088
protocol: TCP protocol: TCP
name: rpc name: rpc
......
...@@ -10,8 +10,10 @@ metadata: ...@@ -10,8 +10,10 @@ metadata:
influxdb.influxdata.com/component: meta influxdb.influxdata.com/component: meta
{{- include "influxdb-enterprise.labels" . | nindent 4 }} {{- include "influxdb-enterprise.labels" . | nindent 4 }}
spec: spec:
type: ClusterIP type: {{ .Values.meta.service.type }}
{{- if (eq "ClusterIP" .Values.meta.service.type) }}
clusterIP: None clusterIP: None
{{- end }}
publishNotReadyAddresses: true publishNotReadyAddresses: true
ports: ports:
- port: 8089 - port: 8089
...@@ -20,6 +22,19 @@ spec: ...@@ -20,6 +22,19 @@ spec:
- port: 8091 - port: 8091
protocol: TCP protocol: TCP
name: http name: http
{{- if .Values.meta.service.nodePort }}
nodePort: {{ .Values.meta.service.nodePort }}
{{- end }}
selector: selector:
influxdb.influxdata.com/component: meta influxdb.influxdata.com/component: meta
{{- include "influxdb-enterprise.selectorLabels" . | nindent 4 }} {{- 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: ...@@ -117,6 +117,10 @@ meta:
## ClusterIP is default ## ClusterIP is default
## ref: http://kubernetes.io/docs/user-guide/services/ ## ref: http://kubernetes.io/docs/user-guide/services/
type: ClusterIP type: ClusterIP
# loadBalancerIP: ""
# externalIPs: []
# externalTrafficPolicy: ""
# nodePort: 30086
## Add annotations to service ## Add annotations to service
# annotations: {} # annotations: {}
# #
...@@ -217,6 +221,7 @@ data: ...@@ -217,6 +221,7 @@ data:
# loadBalancerIP: "" # loadBalancerIP: ""
# externalIPs: [] # externalIPs: []
# externalTrafficPolicy: "" # externalTrafficPolicy: ""
# nodePort: 30091
## Add annotations to service ## Add annotations to service
# annotations: {} # 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