-
Hi, Is there a way to set the timezone inside the pods created by the NiFi operator? We need to use the same timezone that is defined in our database server, but NiFi is using UTC, which breaks some of our processes. The only way I see is to map /etc/localtime and /etc/timezone from the host, but if I use extraVolumes they will be mounted on /stackable/userdata instead of /etc. Maybe using podOverrides to define the volumes and/or volumemounts? Thanks. Best regards. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
That is not a use case/question we have considered before. Maybe setting the TZ environment variable might work? It is not something I have tested though and I'm not at my computer this week to do so. I'll see if someone else has a different suggestion. |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue with our Airflow operator (in my case, for the pendulum python library): the ubi-minimal images don't include some of the "normal" timezone data information, but I got around it by setting
|
Beta Was this translation helpful? Give feedback.
That is not a use case/question we have considered before.
Maybe setting the TZ environment variable might work?
It is not something I have tested though and I'm not at my computer this week to do so. I'll see if someone else has a different suggestion.