mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Added options to allow custom variables in the fluentd conf files (#9607)
* Added options to allow custom variables in the fluentd conf files Signed-off-by: Oliver Isaac <oisaac@gmail.com> * Chart version bump Signed-off-by: Oliver Isaac <oisaac@gmail.com> * Switched to using .Values.env instead of .Values.elasticsearch.env as it is more accurate for what env does Signed-off-by: Oliver Isaac <oisaac@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: fluentd-elasticsearch
|
||||
version: 1.3.0
|
||||
version: 1.4.0
|
||||
appVersion: 2.3.1
|
||||
home: https://www.fluentd.org/
|
||||
description: A Fluentd Helm chart for Kubernetes with Elasticsearch output
|
||||
|
||||
@@ -52,6 +52,7 @@ The following table lists the configurable parameters of the Fluentd elasticsear
|
||||
| `elasticsearch.logstash_prefix` | Elasticsearch Logstash prefix | `logstash` |
|
||||
| `elasticsearch.buffer_chunk_limit` | Elasticsearch buffer chunk limit | `2M` |
|
||||
| `elasticsearch.buffer_queue_limit` | Elasticsearch buffer queue limit | `8` |
|
||||
| `env` | List of environment variables that are 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` |
|
||||
|
||||
@@ -53,6 +53,12 @@ spec:
|
||||
value: {{ .Values.elasticsearch.buffer_chunk_limit | quote }}
|
||||
- name: OUTPUT_BUFFER_QUEUE_LIMIT
|
||||
value: {{ .Values.elasticsearch.buffer_queue_limit | quote }}
|
||||
{{- if .Values.env }}
|
||||
{{- range $key, $value := .Values.env }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
- name: K8S_NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
|
||||
@@ -24,6 +24,12 @@ elasticsearch:
|
||||
buffer_queue_limit: 8
|
||||
logstash_prefix: 'logstash'
|
||||
|
||||
# If you want to add custom environment variables, use the env dict
|
||||
# You can then reference these in your config file e.g.:
|
||||
# user "#{ENV['OUTPUT_USER']}"
|
||||
env:
|
||||
# OUTPUT_USER: my_user
|
||||
|
||||
rbac:
|
||||
create: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user