Rancher Server 设置
- Rancher 版本:2.10.0
- 安装选项 (Docker install/Helm Chart): Docker install
- 如果是 Helm Chart 安装,需要提供 Local 集群的类型(RKE1, RKE2, k3s, EKS, 等)和版本:
- 在线或离线部署:
下游集群信息
- Kubernetes 版本: v1.27.1
- Cluster Type (Local/Downstream):
- 如果 Downstream,是什么类型的集群?(自定义/导入或为托管 等):
用户信息
- 登录用户的角色是什么? 管理员
- 如果自定义,自定义权限集:无自定义
**主机操作系统:Centos7.6
**问题描述:在2.10版本的rancher界面,创建rke2集群,执行命令之后,查看rancher-system-agent服务,提示k8s各种组件的证书不存在。
**重现步骤:rancher界面上创建rke2集群,导入跳过tls验证那段命令。
**结果:查看rancher-system-agent服务,提示k8s各种组件的证书不存在。
预期结果:
**截图:
其他上下文信息:
日志
12月 16 17:15:44 master rancher-system-agent[65110]: time=“2024-12-16T17:15:44-08:00” level=error msg=“error loading x509 client cert/key for probe kube-apiserver (/var/lib/rancher/rke2/server/tls/client-kube-apiserver.crt//var/lib/rancher/rke2/server/tls/client-kube-apiserver.key): open /var/lib/rancher/rke2/server/tls/client-kube-apiserver.crt: no such file or directory”
12月 16 17:15:44 master rancher-system-agent[65110]: time=“2024-12-16T17:15:44-08:00” level=error msg=“error loading CA cert for probe (kube-apiserver) /var/lib/rancher/rke2/server/tls/server-ca.crt: open /var/lib/rancher/rke2/server/tls/server-ca.crt: no such file or directory”
12月 16 17:15:44 master rancher-system-agent[65110]: time=“2024-12-16T17:15:44-08:00” level=error msg=“error while appending ca cert to pool for probe kube-apiserver”
12月 16 17:15:44 master rancher-system-agent[65110]: time=“2024-12-16T17:15:44-08:00” level=error msg=“error loading CA cert for probe (kube-controller-manager) /var/lib/rancher/rke2/server/tls/kube-controller-manager/kube-controller-manager.crt: open /var/lib/rancher/rke2/server/tls/kube-controller-manager/kube-controller-manager.crt: no such file or directory”
12月 16 17:15:44 master rancher-system-agent[65110]: time=“2024-12-16T17:15:44-08:00” level=error msg=“error while appending ca cert to pool for probe kube-controller-manager”
12月 16 17:15:44 master rancher-system-agent[65110]: time=“2024-12-16T17:15:44-08:00” level=error msg=“error loading CA cert for probe (kube-scheduler) /var/lib/rancher/rke2/server/tls/kube-scheduler/kube-scheduler.crt: open /var/lib/rancher/rke2/server/tls/kube-scheduler/kube-scheduler.crt: no such file or directory”
12月 16 17:15:44 master rancher-system-agent[65110]: time=“2024-12-16T17:15:44-08:00” level=error msg=“error while appending ca cert to pool for probe kube-scheduler”
12月 16 17:15:49 master rancher-system-agent[65110]: time=“2024-12-16T17:15:49-08:00” level=info msg=“[Applyinator] Applying one-time instructions for plan with checksum 710753dac747c0b5a6b541f1d4f2f1d3da5c39b96a156f957ce4b9c76b08c7bc”
12月 16 17:15:49 master rancher-system-agent[65110]: time=“2024-12-16T17:15:49-08:00” level=info msg=“[Applyinator] Extracting image rancher/system-agent-installer-rke2:v1.31.2-rke2r1 to directory /var/lib/rancher/agent/work/20241216-171549/710753dac747c0b5a6b541f1d4f2f1d3da5c39b96a156f957ce4b9c76b08c7bc_0”
12月 16 17:15:49 master rancher-system-agent[65110]: time=“2024-12-16T17:15:49-08:00” level=info msg=“Using private registry config file at /etc/rancher/agent/registries.yaml”
12月 16 17:15:49 master rancher-system-agent[65110]: time=“2024-12-16T17:15:49-08:00” level=info msg=“Pulling image index.docker.io/rancher/system-agent-installer-rke2:v1.31.2-rke2r1”