创建第一个集群

环境信息:
RKE2 版本:


rke2 version v1.30.6+rke2r1 (2959cd2193af9ed18d0fc2912fc5c11d6462103d)
go version go1.22.8 X:boringcrypto
节点 CPU 架构,操作系统和版本:

Linux localhost.localdomain 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 31 14:01:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
集群配置:

问题描述:

master 节点一直等待中为啥呢
重现步骤:

  • 安装 RKE2 的命令:
    点击创建集群只填写名称dev
    分别在 10.0.0.221 10.0.0.222 10.0.0.223 3个节点上执行
  1. 10.0.0.221 执行
    curl -fL https://10.0.0.220/system-agent-install.sh | sudo sh -s - --server https://10.0.0.220 --label ‘cattle.io/os=linux’ --token 8kx2fl9wvplj5dhqmhcdmk5bpm4gqjbbpnx7mq9qkvm8cdkgrcgq7q --ca-checksum f7132402f21460d35f2329ac5d3a401cf8e79fcfd449fdb5e88dd3cd7fb8a3fa --etcd --controlplane --worker
  2. 10.0.0.222 10.0.0.223 执行
    curl -fL https://10.0.0.220/system-agent-install.sh | sudo sh -s - --server https://10.0.0.220 --label ‘cattle.io/os=linux’ --token 8kx2fl9wvplj5dhqmhcdmk5bpm4gqjbbpnx7mq9qkvm8cdkgrcgq7q --ca-checksum f7132402f21460d35f2329ac5d3a401cf8e79fcfd449fdb5e88dd3cd7fb8a3fa --worker

预期结果:
集群正常启动开始部署服务了。

实际结果:
现在一直在等待状态是updaing

日志


master 起来了 是因为下载慢吗?需要等待时间长一些 ?

两个worker 不上线呀
错误日志

Nov 20 09:12:02 localhost.localdomain rancher-system-agent[2464]: time="2024-11-20T09:12:02+08:00" level=info msg="[d142c8978d1768a194f8133e90430d0f227235e6df8496897e3e9f469b52c1cb_0:stderr]: + systemctl --no-block restart rke2-agent"
Nov 20 09:12:02 localhost.localdomain rancher-system-agent[2464]: time="2024-11-20T09:12:02+08:00" level=info msg="[Applyinator] Command sh [-c run.sh] finished with err: <nil> and exit code: 0"
Nov 20 09:12:03 localhost.localdomain rancher-system-agent[2464]: time="2024-11-20T09:12:03+08:00" level=info msg="[K8s] updated plan secret fleet-default/custom-3082bed49f1c-machine-plan with feedback"
Nov 20 09:12:03 localhost.localdomain rancher-system-agent[2464]: time="2024-11-20T09:12:03+08:00" level=error msg="[K8s] received secret to process that was older than the last secret operated on. (202536 vs 202728)"
Nov 20 09:12:03 localhost.localdomain rancher-system-agent[2464]: time="2024-11-20T09:12:03+08:00" level=error msg="error syncing 'fleet-default/custom-3082bed49f1c-machine-plan': handler secret-watch: secret received was too old, requeuing"
Nov 20 09:12:03 localhost.localdomain rancher-system-agent[2464]: time="2024-11-20T09:12:03+08:00" level=info msg="[K8s] updated plan secret fleet-default/custom-3082bed49f1c-machine-plan with feedback"
Nov 20 09:12:03 localhost.localdomain rancher-system-agent[2464]: time="2024-11-20T09:12:03+08:00" level=error msg="[K8s] received secret to process that was older than the last secret operated on. (202730 vs 202733)"
Nov 20 09:12:03 localhost.localdomain rancher-system-agent[2464]: time="2024-11-20T09:12:03+08:00" level=error msg="error syncing 'fleet-default/custom-3082bed49f1c-machine-plan': handler secret-watch: secret received was too old, requeuing"

应该是节点主机名重复的原因,K8s 要求节点主机名不能相同

重新设置主机名称重启后

还是有问题

卸载了重建吧

修改主机名称后出现这个问题了?