[stable/fluent-bit] Add collection of node logs via systemd input (#10303)

* Add bool value to enable collection of kubelet logs

Signed-off-by: Naseem Ullah <naseemkullah@gmail.com>

* Make systemd input configurable in order to collect node logs

Signed-off-by: Naseem Ullah <naseemkullah@gmail.com>

* Collect kubelet, dockerd and node-problem-detector logs by default

Signed-off-by: Naseem Ullah <naseemkullah@gmail.com>

* Bump chart minor version

Signed-off-by: Naseem Ullah <naseemkullah@gmail.com>

* Disabling node logging by default

Signed-off-by: Naseem Ullah <naseemkullah@gmail.com>
This commit is contained in:
Naseem
2019-01-11 15:36:47 -08:00
committed by Kubernetes Prow Robot
parent 777ee084e6
commit 91e84f2569
5 changed files with 37 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: fluent-bit
version: 1.2.2
version: 1.3.0
appVersion: 1.0.1
description: Fast and Lightweight Log/Data Forwarder for Linux, BSD and OSX
keywords:
+5
View File
@@ -99,6 +99,11 @@ The following table lists the configurable parameters of the Fluent-Bit chart an
| `image.pullSecrets` | Specify image pull secrets | `nil` |
| `input.tail.memBufLimit` | Specify Mem_Buf_Limit in tail input | `5MB` |
| `input.tail.path` | Specify log file(s) through the use of common wildcards. | `/var/log/containers/*.log` |
| `input.systemd.enabled` | [Enable systemd input](https://fluentbit.io/documentation/current/input/systemd.html) | `false` |
| `input.systemd.filters.systemdUnit | Please see https://fluentbit.io/documentation/current/input/systemd.html | `[docker.service, kubelet.service`, `node-problem-detector.service]` |
| `input.systemd.maxEntries` | Please see https://fluentbit.io/documentation/current/input/systemd.html | `1000` |
| `input.systemd.readFromTail` | Please see https://fluentbit.io/documentation/current/input/systemd.html | `true`|
| `input.systemd.tag` | Please see https://fluentbit.io/documentation/current/input/systemd.html | `host.*`|
| `rbac.create` | Specifies whether RBAC resources should be created. | `true` |
| `serviceAccount.create` | Specifies whether a ServiceAccount should be created. | `true` |
| `serviceAccount.name` | The name of the ServiceAccount to use. | `NULL` |
+10
View File
@@ -37,6 +37,16 @@ data:
DB /tail-db/tail-containers-state.db
DB.Sync Normal
{{- end }}
{{- if .Values.input.systemd.enabled }}
[INPUT]
Name systemd
Tag {{ .Values.input.systemd.tag }}
{{- range $value := .Values.input.systemd.filters.systemdUnit }}
Systemd_Filter _SYSTEMD_UNIT="{{ $value }}"
{{- end }}
Max_Entries {{ .Values.input.systemd.maxEntries }}
Read_From_Tail {{ .Values.input.systemd.readFromTail }}
{{- end }}
{{ .Values.extraEntries.input | indent 8 }}
fluent-bit-filter.conf: |-
@@ -53,6 +53,11 @@ spec:
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
{{- if .Values.input.systemd.enabled }}
- name: etcmachineid
mountPath: /etc/machine-id
readOnly: true
{{- end }}
{{- if .Values.fullConfigMap }}
- name: config
mountPath: /fluent-bit/etc
@@ -112,6 +117,12 @@ spec:
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
{{- if .Values.input.systemd.enabled }}
- name: etcmachineid
hostPath:
path: /etc/machine-id
type: File
{{- end }}
{{- if .Values.backend.es.tls_ca }}
- name: es-tls-secret
secret:
+10 -1
View File
@@ -181,7 +181,16 @@ input:
tail:
memBufLimit: 5MB
path: /var/log/containers/*.log
systemd:
enabled: false
filters:
systemdUnit:
- docker.service
- kubelet.service
- node-problem-detector.service
maxEntries: 1000
readFromTail: true
tag: host.*
filter:
kubeURL: https://kubernetes.default.svc:443