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