mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
Kubernetes Prow Robot
parent
1dad189536
commit
1c4f2fe4e8
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user