Commit fc4eb183 authored by Joseph (Jy) Yaworski's avatar Joseph (Jy) Yaworski Committed by David McKay

Fix UDP support for influxdb

parent eee881f7
...@@ -22,4 +22,11 @@ spec: ...@@ -22,4 +22,11 @@ spec:
backend: backend:
serviceName: {{ include "influxdb.fullname" . }} serviceName: {{ include "influxdb.fullname" . }}
servicePort: 8086 servicePort: 8086
{{- if .Values.config.udp.enabled }}
- path: /
backend:
protocol: UDP
serviceName: {{ include "influxdb.fullname" . }}
servicePort: 8089
{{- end }}
{{- end -}} {{- end -}}
...@@ -24,17 +24,18 @@ spec: ...@@ -24,17 +24,18 @@ spec:
{{- end }} {{- end }}
{{- if .Values.config.collectd.enabled }} {{- if .Values.config.collectd.enabled }}
- name: collectd - name: collectd
port: {{ .Values.config.collectd.bind_address | default 25826 }} port: {{ .Values.config.collectd.bind_address | default 25826 }}
targetPort: collectd targetPort: collectd
{{- end }} {{- end }}
{{- if .Values.config.udp.enabled }} {{- if .Values.config.udp.enabled }}
- name: udp - name: udp
port: {{ .Values.config.udp.bind_address | default 8089 }} port: {{ .Values.config.udp.bind_address | default 8089 }}
protocol: UDP
targetPort: udp targetPort: udp
{{- end }} {{- end }}
{{- if .Values.config.opentsdb.enabled }} {{- if .Values.config.opentsdb.enabled }}
- name: opentsdb - name: opentsdb
port: {{ .Values.config.opentsdb.bind_address | default 4242 }} port: {{ .Values.config.opentsdb.bind_address | default 4242 }}
targetPort: opentsdb targetPort: opentsdb
{{- end }} {{- end }}
selector: selector:
......
...@@ -68,7 +68,8 @@ spec: ...@@ -68,7 +68,8 @@ spec:
{{- end }} {{- end }}
{{- if .Values.config.udp.enabled }} {{- if .Values.config.udp.enabled }}
- name: udp - name: udp
containerPort: {{ .Values.config.udp.bind_address | default 8089 }} containerPort: {{ .Values.config.udp.bind_address | default 8089 }}
protocol: UDP
{{- end }} {{- end }}
{{- if .Values.config.opentsdb.enabled }} {{- if .Values.config.opentsdb.enabled }}
- name: opentsdb - name: opentsdb
......
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