[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:
Pavel Dmytrenko
2020-07-18 05:40:50 -07:00
committed by GitHub
parent d328a333f4
commit 983796fdb5
4 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -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:
+1
View File
@@ -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 }}"
+18
View File
@@ -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/