I had a question about the timezone used by my Kubernetes Cluster. I know I can adjust the timezone of the pods(https://evalle.xyz/posts/kubernetes-tz/).
However, I want to make sure my Cluster always uses UTC in the time zone. Is this a default option or can it change over time?
Have a look at the documentation Using Container-Optimized OS:
Container-Optimized OS is the default node OS Image in Kubernetes Engine and other Kubernetes deployments on Google Cloud Platform.
then move to the Changing the time zone for Container-Optimized OS:
The default time zone of Container-Optimized OS is UTC0.
and
Note that /etc is stateless, so the timezone will be reset to the default (UTC0) every reboot.
So, if you don't change Image type
for your nodes from default Container-Optimized OS to Ubuntu you have nothing to do with time zone settings.
In addition, I've checked on my cluster:
$ date
Tue Feb 4 09:15:51 UTC 2020
$ ls -l /etc/ | grep localtime
lrwxrwxrwx 1 root root 25 Jan 29 08:37 localtime -> ../usr/share/zoneinfo/UTC