1

k8s系统因为改了系统时间导致的问题

 2 years ago
source link: https://huanghantao.github.io/2021/12/09/k8s%E7%B3%BB%E7%BB%9F%E5%9B%A0%E4%B8%BA%E6%94%B9%E4%BA%86%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%97%B4%E5%AF%BC%E8%87%B4%E7%9A%84%E9%97%AE%E9%A2%98/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

k8s系统因为改了系统时间导致的问题

2021-12-09

Comments Word Count: 178(words) Read Count: 1(minutes)

因为资源不够,虚拟机三天两头奔溃一下。

然后,又没有配置和宿主机时间同步,久而久之,虚拟机的时间和宿主机相差了2小时!

今天,就出问题了!

问题大概长这样:

This certificate has expired or is not yet valid

然后,告诉我证书过期了,并且显示当前时间和过期时间。仔细对比时间,发现分钟对不上,时间出现了问题。

所以,执行如下命令,同步了一下时间:

ntpdate us.pool.ntp.org

然后。rancher不知道为啥就gg了。创建的pod,在管理系统上面看不到。

嗯,就这样一来一回,重启机器后解决了。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK