How do I set the correct time in my Google Kubernetes Engine container? Do I need to configure NTP?

耗尽温柔 提交于 2019-12-07 10:27:46

问题


The containers in my k8s cluster need to be set to the correct time with high accuracy, meaning that I can only handle 10s of milliseconds difference max.

Do I need to setup NTP configuration for the containers on Google Kubernetes Engine to make sure that that clock in the containers is set to the correct time?


回答1:


No. You don't need to do any of your own NTP configuration. Google Kubernetes Engine (GKE) runs a timesyncd service in each of the containers. The service is pre-configured to sync up with Google's NTP servers. If you want to set the time yourself, you need to stop the timesyncd service and override the time settings manually.



来源:https://stackoverflow.com/questions/48792742/how-do-i-set-the-correct-time-in-my-google-kubernetes-engine-container-do-i-nee

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!