I'm running minikube 1.32.0 on Ubuntu 22.04.4 LTS. The file ~/.minikube/files/etc/localtime has been configured with the CEST time zone. I can check that as follows:
$ minikube ssh
docker@minikube:~$ date
Thu Aug 1 17:58:31 CEST 2024
I have a deployed a pod that returns the system current date and time. The Java code is below:
return LocalDateTime.now().format(...);
However, this returns Thu Aug 1 15:58:31 CEST 2024 instead of Thu Aug 1 17:58:31 CEST 2024 . So, the date and time returned by the Linux date command is different from the one returned by the pod running in the cluster.
By setting the file ~/.minikube/files/etc/localtime I would have expected that the cluster locale be the same as the host machine. But obviously not. However, the date command show the CEST locale.
What Happened?
I'm running minikube 1.32.0 on Ubuntu 22.04.4 LTS. The file
~/.minikube/files/etc/localtime
has been configured with the CEST time zone. I can check that as follows:I have a deployed a pod that returns the system current date and time. The Java code is below:
However, this returns
Thu Aug 1 15:58:31 CEST 2024
instead ofThu Aug 1 17:58:31 CEST 2024
. So, the date and time returned by the Linuxdate
command is different from the one returned by the pod running in the cluster.I have the following
locale
:On the host machine:
On the cluster:
By setting the file
~/.minikube/files/etc/localtime
I would have expected that the cluster locale be the same as the host machine. But obviously not. However, thedate
command show the CEST locale.What might be the problem here ?
Attach the log file
log.txt
Operating System
Ubuntu
Driver
Docker