环境信息:
RKE2 版本: v1.23.15+rke2r1
节点 CPU 架构,操作系统和版本:
ubuntu18.04
问题描述:
systemctl start rke2-server.service总是报错
重现步骤:
实际结果:
环境信息:
RKE2 版本: v1.23.15+rke2r1
节点 CPU 架构,操作系统和版本:
ubuntu18.04
问题描述:
systemctl start rke2-server.service总是报错
重现步骤:
实际结果:
看不清
sudo systemctl start rke2-server.service
Job for rke2-server.service failed because the control process exited with error code.
Jul 24 16:41:22 aiab rke2[13152]: time=“2023-07-24T16:41:22+08:00” level=info msg=“Tunnel server egress proxy waiting for runtime core to become available”
Jul 24 16:41:24 aiab rke2[13152]: time=“2023-07-24T16:41:24+08:00” level=info msg="Waiting to retrieve kube-proxy configuration; server is not ready: https://127.0.0.1:9345/v1-rke2/readyz: 5Jul 24 16:41:24 aiab rke2[13152]: {“level”:“warn”,“ts”:“2023-07-24T16:41:24.550+0800”,“logger”:“etcd-client”,“caller”:“v3@v3.5.4-k3s1/retry_interceptor.go:62”,“msg”:"retrying of unary invokeJul 24 16:41:24 aiab rke2[13152]: time=“2023-07-24T16:41:24+08:00” level=error msg=“Failed to check local etcd status for learner management: context deadline exceeded”
大概率是网络问题,尝试配置 /etc/rancher/rke2/registries.yaml dockerhub mirror选项,参考文档:Containerd 镜像仓库配置 | RKE 2
可以使用南京大学的docker mirror,地址:https://docker.nju.edu.cn/
如果使用dockerhub mirror,则不需要设置system-default-registry,能增加成功率