且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Google Kubernetes Engine容器中设置正确的时间?我需要配置NTP吗?

更新时间:2023-01-08 22:08:39

否.您不需要自己进行任何NTP配置. Google Kubernetes Engine(GKE)在每个容器中运行时间同步服务.该服务已预先配置为与 Google的NTP服务器同步.如果要自己设置时间,则需要停止时间同步服务并手动覆盖时间设置.

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.