Rancher新建基于v1.28.9+rke2r1的k8s集群,创建node节点失败

Rancher Server 设置

  • Rancher 版本:
  • 安装选项 (Docker install/Helm Chart): Helm Chart 安装
    • 如果是 Helm Chart 安装,需要提供 Local 集群的类型(RKE1, RKE2, k3s, EKS, 等)和版本:v1.28.9+k3s1
  • 在线或离线部署:在线部署

下游集群信息

  • Kubernetes 版本: v1.28.9+rke2r1
  • Cluster Type (Local/Downstream): Downstream
    • 如果 Downstream,是什么类型的集群?(自定义/导入或为托管 等): 自定义
      都是默认选项

用户信息 admin

  • 登录用户的角色是什么? (管理员/集群所有者/集群成员/项目所有者/项目成员/自定义):admin
    • 如果自定义,自定义权限集:

主机操作系统:
CentOS Stream release 8

问题描述:

新建集群一直未成功。

重现步骤:

结果:

预期结果:

截图:

systemctl status rancher-system-agent.service -l

journalctl -xefu rancher-system-agent.service

kubectl logs -f -l app=rancher -n cattle-system

其他上下文信息:

日志
-- Unit rancher-system-agent.service has finished starting up.
-- 
-- The start-up result is done.
May 16 19:21:08 rancher-k8s-m01 rancher-system-agent[2328]: time="2024-05-16T19:21:08+08:00" level=info msg="Rancher System Agent version v0.3.6 (41c07d0) is starting"
May 16 19:21:08 rancher-k8s-m01 rancher-system-agent[2328]: time="2024-05-16T19:21:08+08:00" level=info msg="Using directory /var/lib/rancher/agent/work for work"
May 16 19:21:08 rancher-k8s-m01 rancher-system-agent[2328]: time="2024-05-16T19:21:08+08:00" level=info msg="Starting remote watch of plans"
May 16 19:21:08 rancher-k8s-m01 rancher-system-agent[2328]: time="2024-05-16T19:21:08+08:00" level=fatal msg="error while connecting to Kubernetes cluster: the server has asked for the client to provide credentials"
May 16 19:21:08 rancher-k8s-m01 systemd[1]: rancher-system-agent.service: Main process exited, code=exited, status=1/FAILURE
May 16 19:21:08 rancher-k8s-m01 systemd[1]: rancher-system-agent.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- The unit rancher-system-agent.service has entered the 'failed' state with result 'exit-code'.
May 16 19:21:13 rancher-k8s-m01 systemd[1]: rancher-system-agent.service: Service RestartSec=5s expired, scheduling restart.
May 16 19:21:13 rancher-k8s-m01 systemd[1]: rancher-system-agent.service: Scheduled restart job, restart counter is at 33.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Automatic restarting of the unit rancher-system-agent.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
May 16 19:21:13 rancher-k8s-m01 systemd[1]: Stopped Rancher System Agent.
-- Subject: Unit rancher-system-agent.service has finished shutting down
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit rancher-system-agent.service has finished shutting down.
May 16 19:21:13 rancher-k8s-m01 systemd[1]: Started Rancher System Agent.
-- Subject: Unit rancher-system-agent.service has finished start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit rancher-system-agent.service has finished starting up.
-- 
-- The start-up result is done.
May 16 19:21:13 rancher-k8s-m01 rancher-system-agent[2404]: time="2024-05-16T19:21:13+08:00" level=info msg="Rancher System Agent version v0.3.6 (41c07d0) is starting"
May 16 19:21:13 rancher-k8s-m01 rancher-system-agent[2404]: time="2024-05-16T19:21:13+08:00" level=info msg="Using directory /var/lib/rancher/agent/work for work"
May 16 19:21:13 rancher-k8s-m01 rancher-system-agent[2404]: time="2024-05-16T19:21:13+08:00" level=info msg="Starting remote watch of plans"
May 16 19:21:13 rancher-k8s-m01 rancher-system-agent[2404]: time="2024-05-16T19:21:13+08:00" level=fatal msg="error while connecting to Kubernetes cluster: the server has asked for the client to provide credentials"
May 16 19:21:13 rancher-k8s-m01 systemd[1]: rancher-system-agent.service: Main process exited, code=exited, status=1/FAILURE
May 16 19:21:13 rancher-k8s-m01 systemd[1]: rancher-system-agent.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- The unit rancher-system-agent.service has entered the 'failed' state with result 'exit-code'.
May 16 19:21:18 rancher-k8s-m01 systemd[1]: rancher-system-agent.service: Service RestartSec=5s expired, scheduling restart.
May 16 19:21:18 rancher-k8s-m01 systemd[1]: rancher-system-agent.service: Scheduled restart job, restart counter is at 34.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Automatic restarting of the unit rancher-system-agent.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
May 16 19:21:18 rancher-k8s-m01 systemd[1]: Stopped Rancher System Agent.
-- Subject: Unit rancher-system-agent.service has finished shutting down
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit rancher-system-agent.service has finished shutting down.
May 16 19:21:18 rancher-k8s-m01 systemd[1]: Started Rancher System Agent.
-- Subject: Unit rancher-system-agent.service has finished start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit rancher-system-agent.service has finished starting up.
-- 
-- The start-up result is done.
May 16 19:21:18 rancher-k8s-m01 systemd[1]: rancher-system-agent.service: Main process exited, code=exited, status=203/EXEC
May 16 19:21:18 rancher-k8s-m01 systemd[1]: rancher-system-agent.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- The unit rancher-system-agent.service has entered the 'failed' state with result 'exit-code'.
May 16 19:21:22 rancher-k8s-m01 systemd[1]: Stopped Rancher System Agent.
-- Subject: Unit rancher-system-agent.service has finished shutting down
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit rancher-system-agent.service has finished shutting down.
May 16 19:21:22 rancher-k8s-m01 systemd[1]: Started Rancher System Agent.
-- Subject: Unit rancher-system-agent.service has finished start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit rancher-system-agent.service has finished starting up.
-- 
-- The start-up result is done.
May 16 19:21:22 rancher-k8s-m01 rancher-system-agent[2554]: time="2024-05-16T19:21:22+08:00" level=info msg="Rancher System Agent version v0.3.6 (41c07d0) is starting"
May 16 19:21:22 rancher-k8s-m01 rancher-system-agent[2554]: time="2024-05-16T19:21:22+08:00" level=info msg="Using directory /var/lib/rancher/agent/work for work"
May 16 19:21:22 rancher-k8s-m01 rancher-system-agent[2554]: time="2024-05-16T19:21:22+08:00" level=info msg="Starting remote watch of plans"
May 16 19:21:22 rancher-k8s-m01 rancher-system-agent[2554]: time="2024-05-16T19:21:22+08:00" level=info msg="Starting /v1, Kind=Secret controller"