如何在Google Kubernetes Engine容器中设置正确的时间?我需要配置NTP吗? [英] How do I set the correct time in my Google Kubernetes Engine container? Do I need to configure NTP?

查看:183
本文介绍了如何在Google Kubernetes Engine容器中设置正确的时间?我需要配置NTP吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的k8s集群中的容器需要高精度设置为正确的时间,这意味着我最多只能处理10毫秒的差异.

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.

我是否需要在Google Kubernetes Engine上为容器设置NTP配置,以确保容器中的时钟设置为正确的时间?

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?

推荐答案

否.您不需要自己进行任何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.

这篇关于如何在Google Kubernetes Engine容器中设置正确的时间?我需要配置NTP吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆