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