Open gpapaz opened 3 months ago
@kenhys As @gpapaz pointed out, the removal of the -dev packages in https://github.com/fluent/fluentd-kubernetes-daemonset/commit/9df196c29220f25d94bdffc7e303ba9f15e1656c seems to have introduced this regression. Could you please look into this and consider reverting the change, at least for the required package?
Describe the bug
All tags after the version of v1.16.3-debian-kafka2-2.0, i.e. v1.16.3-debian-kafka2-2.0, v1.16.3-debian-kafka2-2.1 and v1.16.5-debian-kafka2-1.0, suffer from this issue. They are unable to correctly start the rdkafka output plugin for fluentd.
In version fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kafka2-2.0 when the container is started with the configuration mentione in the 'To reproduce' section the below errors can be seen:
A bit of checking shows that the libssl-dev is not available any more in the container. This is the result of from fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kafka2-1.0
where everything seems to work as expected.
The result from the fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kafka2-2.0 is
You can see that libssl-dev is missing.
On fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kafka2-2.1 the error changes and becomes:
Looking into the container we can see that libsasl2 is not present:
The same happens with the latest tag you provide as of today: fluent/fluentd-kubernetes-daemonset:v1.16.5-debian-kafka2-1.0 Keep in mind that in both these last image the openssl-dev is not present, either.
To me it looks like this commit created this issue by purgin still necessary libraries: https://github.com/fluent/fluentd-kubernetes-daemonset/blob/29fdf0324742de37b635e1fa3884366e4f38b183/templates/Dockerfile.erb#L52
To Reproduce
Use below configuration to start the fluentd container:
`
@type forward
port 29999
bind 0.0.0.0