How to change host machine time for Kubernetes cluster on Azure

7/9/2019

How do I change system time (not timezone) for all containers deployed on Azure Kubernetes cluster?

Can this be changed from inside container / pods? I guess it should be changeable from host machine. How to do that?

-- Naisheel Verdhan
azure
azure-aks
kubernetes
ubuntu

1 Answer

7/9/2019

I don't believe this is possible.

Time comes from the underlying kernel and that is not something that you will be able to adjust from code that runs in a pod.

Even if you could, I suspect it would cause a whole heap of trouble; the pod time and api-server time would be inconsistent and that won't end well!

-- Lou O.
Source: StackOverflow