Unverified Commit 1c3c161b authored by aSauerwein's avatar aSauerwein Committed by GitHub

expose syslog port (#401)

parent 17baa48c
apiVersion: v2
name: telegraf
version: 1.8.11
version: 1.8.12
appVersion: 1.21.2
deprecated: false
description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
......
......@@ -63,6 +63,14 @@ spec:
targetPort: {{ trimPrefix ":" $value.service_address | int64 }}
name: "webhooks"
{{- end }}
{{- if eq $key "syslog" }}
{{- if regexMatch "^(tcp|udp).*" $value.server }}
- port: {{ regexFind "[0-9]+$" $value.server | int64 }}
targetPort: {{ regexFind "[0-9]+$" $value.server | int64 }}
protocol: {{ upper (substr 0 3 $value.server) }}
name: "syslog"
{{- end }}
{{- end }}
{{- if eq $key "socket_listener" }}
{{- if or (hasPrefix "udp" $value.service_address) (hasPrefix "tcp" $value.service_address) }}
- port: {{ regexFind "[0-9]+$" $value.service_address | int64 }}
......
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