Skip to content

Commit

Permalink
Promtail Helm Chart: Add support for extra environment variables (#1529)
Browse files Browse the repository at this point in the history
* Make Promtail's Helm chart support passing extra env variables
* bump charts versions
  • Loading branch information
tourea authored Feb 5, 2020
1 parent f1dc58c commit d830612
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion production/helm/loki-stack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: "v1"
name: loki-stack
version: 0.30.0
version: 0.31.0
appVersion: v1.3.0
kubeVersion: "^1.10.0-0"
description: "Loki: like Prometheus, but for logs."
Expand Down
2 changes: 1 addition & 1 deletion production/helm/promtail/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: "v1"
name: promtail
version: 0.18.0
version: 0.18.1
appVersion: v1.3.0
kubeVersion: "^1.10.0-0"
description: "Responsible for gathering logs and sending them to Loki"
Expand Down
11 changes: 7 additions & 4 deletions production/helm/promtail/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,13 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
env:
- name: HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
- name: HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
ports:
- containerPort: {{ .Values.config.server.http_listen_port }}
name: http-metrics
Expand Down
3 changes: 3 additions & 0 deletions production/helm/promtail/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,6 @@ serviceMonitor:
interval: ""
additionalLabels: {}
# scrapeTimeout: 10s

# Extra env variables to pass to the promtail container
env: []

0 comments on commit d830612

Please sign in to comment.