Unverified Commit 2e84a738 authored by Craig Hobbs's avatar Craig Hobbs Committed by GitHub

feat(influxdb-enterprise): add nodeport service (#185)

* feat(influxdb-enterprise): add nodeport service * feat(influxdb-enterprise): add nodeport service
parent db980fd0
apiVersion: v1 apiVersion: v1
version: 0.1.9 version: 0.1.10
appVersion: 1.8.0 appVersion: 1.8.0
engine: gotpl engine: gotpl
......
...@@ -6,8 +6,10 @@ metadata: ...@@ -6,8 +6,10 @@ metadata:
influxdb.influxdata.com/component: data influxdb.influxdata.com/component: data
{{- include "influxdb-enterprise.labels" . | nindent 4 }} {{- include "influxdb-enterprise.labels" . | nindent 4 }}
spec: spec:
type: ClusterIP type: {{ .Values.data.service.type }}
{{- if (eq "ClusterIP" .Values.data.service.type) }}
clusterIP: None clusterIP: None
{{- end }}
publishNotReadyAddresses: true publishNotReadyAddresses: true
ports: ports:
- port: 8086 - port: 8086
...@@ -16,9 +18,6 @@ spec: ...@@ -16,9 +18,6 @@ spec:
- port: 8088 - port: 8088
protocol: TCP protocol: TCP
name: rpc name: rpc
- port: 8089
protocol: UDP
name: udp
- port: 2003 - port: 2003
# Graphite supports TCP and UDP, # Graphite supports TCP and UDP,
# so this should __maybe__ be configurable # so this should __maybe__ be configurable
...@@ -28,9 +27,26 @@ spec: ...@@ -28,9 +27,26 @@ spec:
- port: 4242 - port: 4242
protocol: TCP protocol: TCP
name: opentsdb name: opentsdb
# LoadBalancer service type only allows for one protocol
# disbaling UDP ports
{{- if (ne "LoadBalancer" .Values.data.service.type) }}
- port: 25826 - port: 25826
protocol: UDP protocol: UDP
name: collectd name: collectd
- port: 8089
protocol: UDP
name: udp
{{- end }}
selector: selector:
influxdb.influxdata.com/component: data influxdb.influxdata.com/component: data
{{- include "influxdb-enterprise.selectorLabels" . | nindent 4 }} {{- include "influxdb-enterprise.selectorLabels" . | nindent 4 }}
{{- if .Values.data.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.data.service.loadBalancerIP }}
{{- end }}
{{- if .Values.data.service.externalIPs }}
externalIPs:
{{ toYaml .Values.data.service.externalIPs | indent 4 }}
{{- end }}
{{- if .Values.data.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.data.service.externalTrafficPolicy }}
{{- end }}
\ No newline at end of file
...@@ -167,6 +167,20 @@ data: ...@@ -167,6 +167,20 @@ data:
# #
## Persist data to a persistent volume ## Persist data to a persistent volume
## ##
## Specify a service type
## NodePort is default
## ref: http://kubernetes.io/docs/user-guide/services/
##
service:
## Specify a service type
## ClusterIP is default
## ref: http://kubernetes.io/docs/user-guide/services/
## Add annotations to service
# annotations: {}
type: ClusterIP
# loadBalancerIP: ""
# externalIPs: []
# externalTrafficPolicy: ""
persistence: persistence:
enabled: false enabled: false
## A manually managed Persistent Volume and Claim ## A manually managed Persistent Volume and Claim
......
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