mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Added options to allow custom variables from secrets (#10221)
Signed-off-by: Nisan Itzhakov <nisan.mfy@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
e6065e7e2f
commit
254f214478
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user