Unverified Commit 8614c432 authored by alespour's avatar alespour Committed by GitHub

[telegraf-ds] add custom volumes and mountPoints support (#446)

* add custom volumes and mount points * bump chart version
parent bcadf3d7
apiVersion: v1
name: telegraf-ds
version: 1.0.33
version: 1.0.34
appVersion: 1.22.0
deprecated: false
description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
......
......@@ -52,6 +52,9 @@ spec:
{{- end }}
- name: config
mountPath: /etc/telegraf
{{- if .Values.mountPoints }}
{{ toYaml .Values.mountPoints | indent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
......@@ -80,6 +83,9 @@ spec:
- name: config
configMap:
name: {{ include "telegraf.fullname" . }}
{{- if .Values.volumes }}
{{ toYaml .Values.volumes | indent 6 }}
{{- end }}
hostNetwork: {{ default false .Values.hostNetwork }}
{{- if .Values.dnsPolicy }}
dnsPolicy: {{ .Values.dnsPolicy }}
......
......@@ -44,6 +44,16 @@ env:
- name: "HOST_MOUNT_PREFIX"
value: "/hostfs"
## Add custom volumes and mountPoints
# volumes:
# - name: telegraf-output-influxdb2
# configMap:
# name: "telegraf-output-influxdb2"
# mountPoints:
# - name: telegraf-output-influxdb2
# mountPath: /etc/telegraf/conf.d
# subPath: influxdb2.conf
## Tolerations for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
......
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