Added options to allow custom variables from secrets (#10221)

Signed-off-by: Nisan Itzhakov <nisan.mfy@gmail.com>
This commit is contained in:
Nisan Itzhakov
2018-12-22 08:08:15 -08:00
committed by Kubernetes Prow Robot
parent e6065e7e2f
commit 254f214478
4 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: fluentd-elasticsearch
version: 2.0.1
version: 2.0.2
appVersion: 2.3.2
home: https://www.fluentd.org/
description: A Fluentd Helm chart for Kubernetes with Elasticsearch output
+1
View File
@@ -54,6 +54,7 @@ The following table lists the configurable parameters of the Fluentd elasticsear
| `elasticsearch.buffer_queue_limit` | Elasticsearch buffer queue limit | `8` |
| `elasticsearch.scheme` | Elasticsearch scheme setting | `http` |
| `env` | List of environment variables that are added to the fluentd pods | `{}` |
| `secret` | List of environment variables that are set from secrets and added to the fluentd pods | `[]` |
| `extraVolumeMounts` | Mount an extra volume, required to mount ssl certificates when elasticsearch has tls enabled | |
| `extraVolume` | Extra volume | |
| `image.repository` | Image | `gcr.io/google-containers/fluentd-elasticsearch` |
@@ -62,6 +62,15 @@ spec:
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.secret }}
{{- range $key, $value := .Values.secret }}
- name: {{ .name }}
valueFrom:
secretKeyRef:
name: {{ $value.secret_name }}
key: {{ $value.secret_key | quote }}
{{- end }}
{{- end }}
- name: K8S_NODE_NAME
valueFrom:
fieldRef:
+6
View File
@@ -32,6 +32,12 @@ elasticsearch:
env:
# OUTPUT_USER: my_user
# If you want to add custom environment variables from secrets, use the secret list
secret:
# - name: ELASTICSEARCH_PASSWORD
# secret_name: elasticsearch
# secret_key: password
rbac:
create: true