更换Rancher版本为v2.7.4和v2.7.3通过上述方法安装均提示报错:Error: INSTALLATION FAILED: execution error at (rancher/templates/validate-psp-install.yaml:4:5): The target cluster does not have the PodSecurityPolicy API resource. Please disable PSPs in this chart before proceeding. 我在rancher-2.7.4.tgz和rancher-2.7.3.tgz中没有找到PSP的相关配置。
但是在通过Rancher UI创建下游集群的时候仍报同样的错误错:(物理服务器,Centos7.9安装完成后直接通过命令注册)
6月 18 01:42:43 xxh_testplatform1 rancher-system-agent[2554]: time=“2023-06-18T01:42:43+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”
6月 18 01:42:43 xxh_testplatform1 rancher-system-agent[2554]: time=“2023-06-18T01:42:43+08:00” level=error msg=“error while appending ca cert to pool for probe kube-scheduler”
6月 18 01:42:48 xxh_testplatform1 rancher-system-agent[2554]: time=“2023-06-18T01:42:48+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”
6月 18 01:42:48 xxh_testplatform1 rancher-system-agent[2554]: time=“2023-06-18T01:42:48+08:00” level=error msg=“error while appending ca cert to pool for probe kube-controller-manager”
6月 18 01:42:48 xxh_testplatform1 rancher-system-agent[2554]: time=“2023-06-18T01:42:48+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”
6月 18 01:42:48 xxh_testplatform1 rancher-system-agent[2554]: time=“2023-06-18T01:42:48+08:00” level=error msg=“error while appending ca cert to pool for probe kube-scheduler”
6月 18 01:42:53 xxh_testplatform1 rancher-system-agent[2554]: time=“2023-06-18T01:42:53+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”
6月 18 01:42:53 xxh_testplatform1 rancher-system-agent[2554]: time=“2023-06-18T01:42:53+08:00” level=error msg=“error while appending ca cert to pool for probe kube-controller-manager”
6月 18 01:42:53 xxh_testplatform1 rancher-system-agent[2554]: time=“2023-06-18T01:42:53+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”
6月 18 01:42:53 xxh_testplatform1 rancher-system-agent[2554]: time=“2023-06-18T01:42:53+08:00” level=error msg=“error while appending ca cert to pool for probe kube-scheduler”