[草稿]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

场景2:RKE 集群 Docker 版本不兼容

  • 问题:2026.06.08,由于安装 Rancher 2.14.2 控制台一直提示 API Aggregation not ready,就想着部署 Rancher 2.7.1 看看,结果安装了 Docker 29.0.0 之后,k8s 初始化报错:[ERROR] Failed to set up SSH tunneling for host [192.168.31.101]: Can't retrieve Docker Info: Error response from daemon: client version 1.41 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version
  • 解决:若使用 Rancher 2.7.1,就不要安装过新的 docker 版本,改回 Docker 24.0.1 就好了
curl -sL 'http://iso.sqlfans.cn/docker/install_docker_2401.sh' | bash
docker --version
Copyright © www.sqlfans.cn 2021 - 2026 All Right Reserved更新时间: 2026-06-08 10:29:08

results matching ""

    No results matching ""