Commit 8716b2e5 authored by Raphael Couto's avatar Raphael Couto Committed by Kubernetes Prow Robot

[stable/telegraf] Allow ENV vars (#15265)

* Allow ENV vars Signed-off-by: 's avatarRaphael Couto <raphael.couto@gmail.com> * Version bump Signed-off-by: 's avatarRaphael Couto <raphael.couto@gmail.com> * Fixing lint Signed-off-by: 's avatarRaphael Couto <raphael.couto@gmail.com>
parent b076c6ba
apiVersion: v1 apiVersion: v1
name: telegraf name: telegraf
version: 1.1.2 version: 1.1.3
appVersion: 1.10 appVersion: 1.10
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.
......
...@@ -29,8 +29,7 @@ spec: ...@@ -29,8 +29,7 @@ spec:
resources: resources:
{{ toYaml .Values.resources | indent 10 }} {{ toYaml .Values.resources | indent 10 }}
env: env:
- name: HOSTNAME {{ toYaml .Values.env | indent 8 }}
value: "telegraf-polling-service"
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /etc/telegraf mountPath: /etc/telegraf
......
...@@ -11,6 +11,10 @@ image: ...@@ -11,6 +11,10 @@ image:
podAnnotations: {} podAnnotations: {}
env:
- name: HOSTNAME
value: "telegraf-polling-service"
## Configure resource requests and limits ## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
resources: {} resources: {}
......
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