-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dockerfiles: disable exec plugin for distroless containers #4719
Conversation
Signed-off-by: Patrick Stephens <[email protected]>
@niedbalski all gravy now if you're happy to merge? |
Signed-off-by: Patrick Stephens <[email protected]>
Hi @patrick-stephens
[2022/07/20 09:25:21] [error] [config] section 'exec' tried to instance a plugin name that don't exists Tried using fluent-bit:1.9.5-debug image, even there it fails with the above error. |
Exec is not supported in containers, it silently failed then triggered weird errors before so we made it explicit. |
@patrick-stephens , Thank you for the update. Name exec Now we are planning to upgrade to the latest i.e fluent-bit 1.9.5 version. |
Depends what your use case is and this PR is probably not the right place for that discussion, maybe try the Slack channel. Exec will never have worked in distroless containers - it just silently failed so if you were using it with a distroless container before then it was not doing what you think it was. It requires a shell to function, and specifically the Please have a look at the linked issue for details but this is the main reason for this specific PR: to highlight that a configuration using Exec works fine outside of distroless containers, i.e. with native packages (RPM/DEB/etc.) or a container with a shell also allows
Also, your use case sounds exactly like something |
Signed-off-by: Patrick Stephens [email protected]
Addresses #1758 by triggering an error when
exec
is used rather than just silently failing:Note this is for
linux/amd64
platform only currently as it is the only distroless one until #4691 . If you run with the ARM containers it will function and is not disabled therefore.Previously it would just silently fail - note the time differences here when it should start outputting the information in ~10 seconds:
Versus the working ARM64 version:
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
Documentation
fluent/fluent-bit-docs#692 indicates it is not supported now.
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.