mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/fluent-bit] Add support for init containers (#23074)
* [stable/fluent-bit] Implement support for init containers Signed-off-by: Pavel Dmytrenko <dmytrenko.pavel@gmail.com> * [stable/fluent-bit] Update README Signed-off-by: Pavel Dmytrenko <dmytrenko.pavel@gmail.com> * [stable/fluent-bit] Bump chart version Signed-off-by: Pavel Dmytrenko <dmytrenko.pavel@gmail.com> * [stable/fluent-bit] Resolve conflict Signed-off-by: Pavel Dmytrenko <dmytrenko.pavel@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: fluent-bit
|
||||
version: 2.9.0
|
||||
version: 2.10.0
|
||||
appVersion: 1.3.7
|
||||
description: Fast and Lightweight Log/Data Forwarder for Linux, BSD and OSX
|
||||
keywords:
|
||||
|
||||
@@ -112,6 +112,7 @@ The following table lists the configurable parameters of the Fluent-Bit chart an
|
||||
| `extraPorts` | List of extra ports | |
|
||||
| `extraVolumeMounts` | Mount an extra volume, required to mount ssl certificates when elasticsearch has tls enabled | |
|
||||
| `extraVolume` | Extra volume | |
|
||||
| `initContainers` | Init containers | `{}` |
|
||||
| `service.flush` | Interval to flush output (seconds) | `1` |
|
||||
| `service.logLevel` | Diagnostic level (error/warning/info/debug/trace) | `info` |
|
||||
| `filter.enableExclude` | Enable the use of monitoring for a pod annotation of `fluentbit.io/exclude: true`. If present, discard logs from that pod. | `true` |
|
||||
|
||||
@@ -49,6 +49,13 @@ spec:
|
||||
{{ toYaml .Values.dnsConfig | indent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ template "fluent-bit.serviceAccountName" . }}
|
||||
{{- if .Values.initContainers }}
|
||||
initContainers:
|
||||
{{- range $key, $value := .Values.initContainers }}
|
||||
- name: "{{ $key }}"
|
||||
{{ toYaml $value | indent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: fluent-bit
|
||||
image: "{{ .Values.image.fluent_bit.repository }}:{{ .Values.image.fluent_bit.tag }}"
|
||||
|
||||
@@ -331,3 +331,21 @@ securityContext: {}
|
||||
podSecurityContext: {}
|
||||
# podSecurityContext:
|
||||
# runAsUser: 1000
|
||||
|
||||
## Add your own init container (example installation of Lua filter plugin)
|
||||
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
|
||||
initContainers: {}
|
||||
# load-plugin:
|
||||
# image: "appropriate/curl:latest"
|
||||
# imagePullPolicy: "IfNotPresent"
|
||||
# # Assumed plugins volume is configured at Pod level via extraVolumes
|
||||
# volumeMounts:
|
||||
# - name: plugins
|
||||
# mountPath: /fluent-bit/plugins
|
||||
# command:
|
||||
# - "/bin/sh"
|
||||
# - "-c"
|
||||
# - |
|
||||
# curl -sS <download-url> -o /plugin.zip
|
||||
# unzip /plugin.zip
|
||||
# cp -av <plugin-zip-contents> /fluent-bit/plugins/
|
||||
|
||||
Reference in New Issue
Block a user