[stable/elasticsearch-exporter] Enabling environment from secrets (#19115)

* [stable/elasticsearch-exporter] Enabling environment from secrets

Signed-off-by: VladyslavTokar <g.vtokar@gmail.com>

* [stable/elasticsearch-exporter] Update description for envFromSecret parameter in readme

Signed-off-by: VladyslavTokar <g.vtokar@gmail.com>
This commit is contained in:
VladyslavTokar
2020-01-14 20:05:31 -08:00
committed by Kubernetes Prow Robot
parent 1dad189536
commit 1c4f2fe4e8
4 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Elasticsearch stats exporter for Prometheus
name: elasticsearch-exporter
version: 2.1.1
version: 2.2.0
kubeVersion: ">=1.10.0-0"
appVersion: 1.1.0
home: https://github.com/justwatchcom/elasticsearch_exporter
+1
View File
@@ -72,6 +72,7 @@ Parameter | Description | Default
`service.annotations` | Annotations on the http service | `{}`
`service.labels` | Additional labels for the service definition | `{}`
`env` | Extra environment variables passed to pod | `{}`
`envFromSecret` | The name of an existing secret in the same kubernetes namespace which contains values to be added to the environment | `nil`
`secretMounts` | list of secrets and their paths to mount inside the pod | `[]`
`affinity` | Affinity rules | `{}`
`es.uri` | address of the Elasticsearch node to connect to | `localhost:9200`
@@ -55,6 +55,11 @@ spec:
value: "{{ $value }}"
{{- end }}
{{- end }}
{{- if .Values.envFromSecret }}
envFrom:
- secretRef:
name: {{ .Values.envFromSecret }}
{{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["elasticsearch_exporter",
+5 -1
View File
@@ -51,7 +51,11 @@ service:
## env:
## KEY_1: value1
## KEY_2: value2
# env:
env: {}
## The name of a secret in the same kubernetes namespace which contain values to be added to the environment
## This can be useful for auth tokens, etc
envFromSecret: ""
# A list of secrets and their paths to mount inside the pod
# This is useful for mounting certificates for security