From 929a624fc5250c2dd09b33b459e35e06c6b39a2d Mon Sep 17 00:00:00 2001 From: Matthieu Huin Date: Tue, 12 Mar 2024 10:36:00 +0100 Subject: [PATCH] nodepool-builder: fix fluent bit config regarding logs path Change-Id: I8da4892458ef04f83d63d986479df778055b7468 --- CHANGELOG.md | 3 +++ controllers/static/nodepool/fluentbit/fluent-bit.conf.tmpl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f020883e..c681953d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ All notable changes to this project will be documented in this file. ### Deprecated ### Removed ### Fixed + +- nodepool-builder: fixed the log path configuration when using the fluent bit log forwarder, resulting in much less file access errors appearing in fluent bit logs. + ### Security ## [v0.0.26] - 2024-03-08 diff --git a/controllers/static/nodepool/fluentbit/fluent-bit.conf.tmpl b/controllers/static/nodepool/fluentbit/fluent-bit.conf.tmpl index 7cc1260a..e24c0fe4 100644 --- a/controllers/static/nodepool/fluentbit/fluent-bit.conf.tmpl +++ b/controllers/static/nodepool/fluentbit/fluent-bit.conf.tmpl @@ -6,7 +6,7 @@ [INPUT] name tail tag ${K8S_NAMESPACE}.${K8S_NODENAME}.${K8S_PODNAME}.dib - path /watch/logs/* + path /watch/*/*.log path_key full_path refresh_interval 5 read_from_head True