-
Bug
-
Resolution: Done
-
Undefined
-
2.2.0.GA
-
None
-
None
-
False
-
None
-
False
-
-
-
- [RFE] Allow Kafka exporter to change the timezone
- [Problem]
- It seems unable to change the timezone of the Kafka exporter
- ZK environment variable can be changed on the Kafka exporter container as below, but the timezone of the logs of the Kafka exporter can not be changed.
kafkaExporter: template: container: env: - name: TZ value: Asia/Tokyo
- [As far as investigated]
- Kafka exporter application itself has the ability to use the timezone that is defined by the ZK environment variable
- However, the container image of the Kafka exporter doesn't have the zone info (/usr/share/zoneinfo/) because of ubi8-minimal[1].
- FYI, If the image is customized as follows, the timezone of the logs of the Kafka exporter can be changed as expected. I don't know why, but it seems that "microdnf update" is more important for timezone info(/usr/share/zoneinfo/), instead of "microdnf reinstall tzdata". Maybe such changes should be made carefully, as the deletion of the timezone is intentional for ubi8-minimal[1].
FROM registry.redhat.io/amq7/amq-streams-kafka-32-rhel8:2.2.0 USER root:root RUN microdnf update RUN microdnf reinstall tzdata -y USER 1001
[1] Why is /usr/share/zoneinfo empty in ubi8-minimal images despite the tzdata package being present?
https://access.redhat.com/solutions/5616681