Commit f85b1abc authored by Enno Lohmeier's avatar Enno Lohmeier Committed by David McKay

allow passing args in telegraf/telegraf-ds

parent eadeed1d
apiVersion: v1 apiVersion: v1
name: telegraf-ds name: telegraf-ds
version: 1.0.12 version: 1.0.13
appVersion: 1.14 appVersion: 1.14
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.
......
...@@ -26,6 +26,10 @@ spec: ...@@ -26,6 +26,10 @@ spec:
imagePullPolicy: {{ default "" .Values.image.pullPolicy | quote }} imagePullPolicy: {{ default "" .Values.image.pullPolicy | quote }}
resources: resources:
{{ toYaml .Values.resources | indent 10 }} {{ toYaml .Values.resources | indent 10 }}
{{- if .Values.args }}
args:
{{ toYaml .Values.args | indent 8 }}
{{- end }}
env: env:
- name: HOSTIP - name: HOSTIP
valueFrom: valueFrom:
......
...@@ -17,6 +17,9 @@ resources: ...@@ -17,6 +17,9 @@ resources:
memory: 2Gi memory: 2Gi
cpu: 1 cpu: 1
## Configure args passed to Telegraf containers
args: []
env: env:
# This pulls HOSTNAME from the node, not the pod. # This pulls HOSTNAME from the node, not the pod.
- name: HOSTNAME - name: HOSTNAME
......
apiVersion: v1 apiVersion: v1
name: telegraf name: telegraf
version: 1.7.17 version: 1.7.18
appVersion: 1.14 appVersion: 1.14
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.
......
...@@ -28,6 +28,10 @@ spec: ...@@ -28,6 +28,10 @@ spec:
imagePullPolicy: {{ default "" .Values.image.pullPolicy | quote }} imagePullPolicy: {{ default "" .Values.image.pullPolicy | quote }}
resources: resources:
{{ toYaml .Values.resources | indent 10 }} {{ toYaml .Values.resources | indent 10 }}
{{- if .Values.args }}
args:
{{ toYaml .Values.args | indent 8 }}
{{- end }}
env: env:
{{ toYaml .Values.env | indent 8 }} {{ toYaml .Values.env | indent 8 }}
volumeMounts: volumeMounts:
......
...@@ -13,6 +13,9 @@ podAnnotations: {} ...@@ -13,6 +13,9 @@ podAnnotations: {}
imagePullSecrets: [] imagePullSecrets: []
## Configure args passed to Telegraf containers
args: []
env: env:
- name: HOSTNAME - name: HOSTNAME
value: "telegraf-polling-service" value: "telegraf-polling-service"
......
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