使用rancher创建rek2时报错
rancher-system-agent.service 日志
– Logs begin at Thu 2023-12-14 17:13:47 CST. –
Dec 28 14:01:46 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:46+08:00” level=info msg=“[8ee6926c6f53868900fedfbe148f17eed3e93fedbaf5cccebcb1ec4912195379_0:stderr]: + ‘[’ ‘’ = true ‘]’”
Dec 28 14:01:46 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:46+08:00” level=info msg=“[8ee6926c6f53868900fedfbe148f17eed3e93fedbaf5cccebcb1ec4912195379_0:stderr]: + ‘[’ server = server ‘]’”
Dec 28 14:01:46 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:46+08:00” level=info msg=“[8ee6926c6f53868900fedfbe148f17eed3e93fedbaf5cccebcb1ec4912195379_0:stderr]: + systemctl is-active --quiet rke2-agent”
Dec 28 14:01:46 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:46+08:00” level=info msg=“[8ee6926c6f53868900fedfbe148f17eed3e93fedbaf5cccebcb1ec4912195379_0:stderr]: + systemctl enable rke2-server”
Dec 28 14:01:46 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:46+08:00” level=info msg=“[8ee6926c6f53868900fedfbe148f17eed3e93fedbaf5cccebcb1ec4912195379_0:stderr]: + ‘[’ ‘’ = true ‘]’”
Dec 28 14:01:46 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:46+08:00” level=info msg=“[8ee6926c6f53868900fedfbe148f17eed3e93fedbaf5cccebcb1ec4912195379_0:stderr]: + ‘[’ false = true ‘]’”
Dec 28 14:01:46 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:46+08:00” level=info msg=“[Applyinator] Command sh [-c run.sh] finished with err: and exit code: 0”
Dec 28 14:01:46 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:46+08:00” level=info msg=“[Applyinator] No image provided, creating empty working directory /var/lib/rancher/agent/work/20231228-140144/8ee6926c6f53868900fedfbe148f17eed3e93fedbaf5cccebcb1ec4912195379_0”
Dec 28 14:01:46 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:46+08:00” level=info msg=“[Applyinator] Running command: sh [-c rke2 etcd-snapshot list --etcd-s3=false 2>/dev/null]”
Dec 28 14:01:46 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:46+08:00” level=info msg=“[Applyinator] Command sh [-c rke2 etcd-snapshot list --etcd-s3=false 2>/dev/null] finished with err: and exit code: 1”
Dec 28 14:01:47 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:47+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”
Dec 28 14:01:47 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:47+08:00” level=error msg=“error while appending ca cert to pool for probe kube-scheduler”
Dec 28 14:01:47 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:47+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”
Dec 28 14:01:47 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:47+08:00” level=error msg=“error while appending ca cert to pool for probe kube-controller-manager”
Dec 28 14:01:47 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:47+08:00” level=info msg=“[K8s] updated plan secret fleet-default/custom-4e3df2f115f8-machine-plan with feedback”
Dec 28 14:01:47 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:47+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”
Dec 28 14:01:47 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:47+08:00” level=error msg=“error while appending ca cert to pool for probe kube-controller-manager”
Dec 28 14:01:47 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:47+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”
Dec 28 14:01:47 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:47+08:00” level=error msg=“error while appending ca cert to pool for probe kube-scheduler”
Dec 28 14:01:52 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:52+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”
Dec 28 14:01:52 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:52+08:00” level=error msg=“error while appending ca cert to pool for probe kube-scheduler”
Dec 28 14:01:52 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:52+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”
Dec 28 14:01:52 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:52+08:00” level=error msg=“error while appending ca cert to pool for probe kube-controller-manager”
Dec 28 14:01:57 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:57+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”
Dec 28 14:01:57 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:57+08:00” level=error msg=“error while appending ca cert to pool for probe kube-controller-manager”
Dec 28 14:01:57 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:57+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”
Dec 28 14:01:57 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:01:57+08:00” level=error msg=“error while appending ca cert to pool for probe kube-scheduler”
Dec 28 14:02:02 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:02:02+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”
Dec 28 14:02:02 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:02:02+08:00” level=error msg=“error while appending ca cert to pool for probe kube-controller-manager”
Dec 28 14:02:02 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:02:02+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”
Dec 28 14:02:02 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:02:02+08:00” level=error msg=“error while appending ca cert to pool for probe kube-scheduler”
Dec 28 14:02:07 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:02:07+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”
Dec 28 14:02:07 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:02:07+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”
Dec 28 14:02:07 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:02:07+08:00” level=error msg=“error while appending ca cert to pool for probe kube-scheduler”
Dec 28 14:02:07 WX-K8S-NODO06 rancher-system-agent[185166]: time=“2023-12-28T14:02:07+08:00” level=error msg=“error while appending ca cert to pool for probe kube-controller-manager”
环境信息:
RKE2 版本:
节点 CPU 架构,操作系统和版本:
集群配置:
问题描述:
重现步骤:
- 安装 RKE2 的命令:
预期结果:
实际结果: