[草稿]k8s遇到的问题汇总

场景1:时间不一致导致集群初始化失败

问题

etcd数据库要求所有节点的时区及时间必须一致,否则集群初始化在rancher控制台会报如下错误信息:

报错

[etcd] Failed to bring up Etcd Plane: etcd cluster is unhealthy: hosts [192.168.4.231] failed to report healthy.

解决

所有节点执行如下命令

timedatectl set-timezone Asia/Shanghai && /usr/sbin/ntpdate -u ntp.aliyun.com
Copyright © www.sqlfans.cn 2023 All Right Reserved更新时间: 2023-04-13 14:10:42

results matching ""

    No results matching ""