环境信息:
RKE2 版本: v1.27.8 +rke2r1
集群配置:
问题描述:
rancher2.8.2 安装 v1.27.8 +rke2r1 集群,然后在宿主机系欸但重启rke2-server操作,无法成功。
日志
重启rke2-server后,使用journalctl -xe查看报错如下:
-- Subject: Unit rke2-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rke2-server.service has failed.
--
-- The result is failed.
Apr 06 15:18:27 rke2-03 systemd[1]: Unit rke2-server.service entered failed state.
Apr 06 15:18:27 rke2-03 systemd[1]: rke2-server.service failed.
Apr 06 15:18:27 rke2-03 polkitd[787]: Unregistered Authentication Agent for unix-process:123985:16432679 (system bus name :1.665, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF
Apr 06 15:18:32 rke2-03 systemd[1]: rke2-server.service holdoff time over, scheduling restart.
Apr 06 15:18:32 rke2-03 systemd[1]: Stopped Rancher Kubernetes Engine v2 (server).
-- Subject: Unit rke2-server.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rke2-server.service has finished shutting down.
Apr 06 15:18:32 rke2-03 systemd[1]: Starting Rancher Kubernetes Engine v2 (server)...
-- Subject: Unit rke2-server.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rke2-server.service has begun starting up.
Apr 06 15:18:32 rke2-03 sh[124475]: + /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service
Apr 06 15:18:32 rke2-03 sh[124475]: Failed to get unit file state for nm-cloud-setup.service: No such file or directory
Apr 06 15:18:32 rke2-03 rke2[124485]: time="2024-04-06T15:18:32+08:00" level=warning msg="not running in CIS mode"
Apr 06 15:18:32 rke2-03 rke2[124485]: time="2024-04-06T15:18:32+08:00" level=info msg="Applying Pod Security Admission Configuration"
Apr 06 15:18:32 rke2-03 rke2[124485]: time="2024-04-06T15:18:32+08:00" level=info msg="Starting rke2 v1.27.8+rke2r1 (77c9470934d7073341fb297aefa2dda0b97909c9)"
Apr 06 15:18:32 rke2-03 rke2[124485]: time="2024-04-06T15:18:32+08:00" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full t
Apr 06 15:18:32 rke2-03 rke2[124485]: time="2024-04-06T15:18:32+08:00" level=info msg="Managed etcd cluster not yet initialized"
Apr 06 15:18:32 rke2-03 rke2[124485]: time="2024-04-06T15:18:32+08:00" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full t
Apr 06 15:18:32 rke2-03 rke2[124485]: time="2024-04-06T15:18:32+08:00" level=fatal msg="starting kubernetes: preparing server: https://[2409:8a02:482b:f910:20c:29ff:fe80:2f4]:9345/v1-rke2/server-bootstrap: 4
Apr 06 15:18:32 rke2-03 systemd[1]: rke2-server.service: main process exited, code=exited, status=1/FAILURE
Apr 06 15:18:32 rke2-03 systemd[1]: Failed to start Rancher Kubernetes Engine v2 (server).
-- Subject: Unit rke2-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rke2-server.service has failed.
--
-- The result is failed.
Apr 06 15:18:32 rke2-03 systemd[1]: Unit rke2-server.service entered failed state.
Apr 06 15:18:32 rke2-03 systemd[1]: rke2-server.service failed.