Description
The TestLoggingDynamicConfigReload test fails when using a custom mount path.
This highlights that if you are using a custom path to mount your secret for configuration, the sidecar will still default to using the configuration at /fluent-bit/config/fluent-bit.conf.
The reason is that the COUCHBASE_LOGS_CONFIG_FILE environment variable is not being set to inform the sidecar to use the new location and there is a default value provided always in the container image.
The logs will show the environment variable mismatch:
"COUCHBASE_LOGS_DYNAMIC_CONFIG=/test/custom","COUCHBASE_LOGS_CONFIG_FILE=/fluent-bit/config/fluent-bit.conf"
Here we have a custom mount point but the config file overrides it.
Until this is resolved, if you want to use a custom log configuration then do not change the mount path.
Attachments
Issue Links
- relates to
-
K8S-2108 Fluent bit improvements
- Closed