K8S邮件告警: ++++Annotations description = Clock on c86-15 is not synchronising. Ensure NTP is configured on this host. summary = Clock not synchronising.++++
检查:
#chronyc tracking Reference ID : 0A060003 (10.0.0.3) Stratum : 2 Ref time (UTC) : Tue Aug 19 09:09:53 2025 System time : 0.000033923 seconds fast of NTP time Last offset : +0.000050807 seconds RMS offset : 0.000036618 seconds Frequency : 12.700 ppm slow Residual freq : +0.004 ppm Skew : 0.064 ppm Root delay : 0.000631168 seconds Root dispersion : 0.011151751 seconds Update interval : 1035.7 seconds Leap status : Normal
根据 chronyc tracking 的输出,您的 NTP 时间同步状态看起来基本正常,但有一些细节需要注意: 当前状态分析
时间同步状态良好:系统时间与 NTP 时间仅相差 0.000033923 秒(约 34 微秒),这完全在正常范围内Leap status: Normal 表示没有闰秒调整,状态正常时间源信息:使用的时间源是 10.0.0.3(内网的 NTP 服务器)Stratum 2 表示您连接的是二级时间服务器(Stratum 1 是直接连接原子钟的服务器)潜在关注点:频率偏差:12.700 ppm slow(系统时钟比实际时间慢约 12.7 ppm)更新间隔:1035.7 秒(约 17 分钟)稍长,但仍在正常范围内
建议操作 监控频率偏差: chronyc sourcestats 检查是否有持续增长的偏差 如果需要更精确同步: sudo chronyc makestep 强制立即同步时间 检查时间源质量: chronyc sources -v 确认所有时间源的状态是否正常
详细参数,可参考: https://www.cnblogs.com/ydswin/p/18675228