Kubernetes环境搭建

一、在Kubernetes环境搭建过程中,会创建CA、admin、etcd等等证书,创建证书的过程中需要注意当前系统的时间,否则很可能因为生成证书时间同其他系统时间差别,造成证书验证失败。

1. 通过VirtualBox设置vm系统时间同宿主机时间同步(参考),不过都没成功。。。

2. 大多数采用的方式(参考另外参考

echo "ntpdate cn.pool.ntp.org" >> /etc/profile
chmod +s /usr/sbin/ntpdate
source /etc/profile

 

posted on 2022-10-20 16:36  -赶鸭子上架-  阅读(19)  评论(0编辑  收藏  举报