Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Change timezone of GKE node ?

I am having a problem when trying to change my node timezone (from UTC to UTC + 7), but I did not see any where to perform this action, did I miss something ?

0 3 3,527
3 REPLIES 3

Hi,

 

Why do you need to change your nodes TZ ?

cause my pod gets TZ from my node's TZ configuration, how can I solve it ?

There is no way in GKE to change nodes timezone, you can change it at the pod level using environment variables. something like

 

env:

            - name: TZ

              value: Europe/Warsaw

 

If you add this to your pod or deployment it might work depending on the OS using to build your container image

Top Labels in this Space