Rancher 创建RKE2 集群时报错。


日志
W0815 06:49:57.812369 39 transport.go:301] Unable to cancel request for *client.addQuery
W0815 06:49:57.829582 39 transport.go:301] Unable to cancel request for *client.addQuery
W0815 06:49:57.886750 39 transport.go:301] Unable to cancel request for *client.addQuery
W0815 06:49:57.886806 39 transport.go:301] Unable to cancel request for *client.addQuery
2024/08/15 06:50:05 [ERROR] Failed to install system chart rancher-webhook: pod cattle-system/helm-operation-crm95 failed, watch closed
2024/08/15 06:50:27 [ERROR] error syncing ‘fleet-default/china’: handler rke-cluster: failed to create fleet-default/china cluster.x-k8s.io/v1beta1, Kind=Cluster for rke-cluster fleet-default/china: Internal error occurred: failed calling webhook “default.cluster.cluster.x-k8s.io”: failed to call webhook: Post “https://capi-webhook-service.cattle-provisioning-capi-system.svc:443/mutate-cluster-x-k8s-io-v1beta1-cluster?timeout=10s”: service “capi-webhook-service” not found, requeuing
2024/08/15 06:51:07 [ERROR] [rkecluster] fleet-default/china: error getting CAPI cluster no matching controller owner ref
2024/08/15 06:51:07 [ERROR] error syncing ‘fleet-default/china’: handler rke-cluster: no matching controller owner ref, requeuing
2024/08/15 06:51:08 [ERROR] Failed to install system chart rancher-provisioning-capi: pod cattle-system/helm-operation-4nvrw failed, watch closed
2024/08/15 06:51:29 [ERROR] [planner] rkecluster fleet-default/china: error during plan processing: no matching controller owner ref
2024/08/15 06:51:29 [ERROR] error syncing ‘fleet-default/china’: handler planner: no matching controller owner ref, requeuing
W0815 06:51:49.863909 39 warnings.go:80] cluster.x-k8s.io/v1alpha3 Cluster is deprecated; use cluster.x-k8s.io/v1beta1 Cluster
W0815 06:51:54.870210 39 warnings.go:80] cluster.x-k8s.io/v1alpha3 MachineHealthCheck is deprecated; use cluster.x-k8s.io/v1beta1 MachineHealthCheck
2024/08/15 06:52:10 [ERROR] Failed to install system chart fleet-crd: pod cattle-system/helm-operation-thtpr failed, watch closed
2024/08/15 06:52:27 [ERROR] error syncing ‘fleet-default/china’: handler rke-cluster: failed to create fleet-default/china cluster.x-k8s.io/v1beta1, Kind=Cluster for rke-cluster fleet-default/china: Internal error occurred: failed calling webhook “default.cluster.cluster.x-k8s.io”: failed to call webhook: Post “https://capi-webhook-service.cattle-provisioning-capi-system.svc:443/mutate-cluster-x-k8s-io-v1beta1-cluster?timeout=10s”: service “capi-webhook-service” not found, requeuing
2024/08/15 06:53:07 [ERROR] [rkecluster] fleet-default/china: error getting CAPI cluster no matching controller owner ref
2024/08/15 06:53:07 [ERROR] error syncing ‘fleet-default/china’: handler rke-cluster: no matching controller owner ref, requeuing
2024/08/15 06:53:12 [ERROR] Failed to install system chart fleet: pod cattle-system/helm-operation-nw5qk failed, watch closed
2024/08/15 06:53:29 [ERROR] [planner] rkecluster fleet-default/china: error during plan processing: no matching controller owner ref
2024/08/15 06:53:29 [ERROR] error syncing ‘fleet-default/china’: handler planner: no matching controller owner ref, requeuing
2024/08/15 06:54:14 [ERROR] Failed to install system chart rancher-webhook: pod cattle-system/helm-operation-66tt7 failed, watch closed
W0815 06:54:22.847558 39 transport.go:301] Unable to cancel request for *client.addQuery
2024/08/15 06:54:27 [ERROR] error syncing ‘fleet-default/china’: handler rke-cluster: failed to create fleet-default/china cluster.x-k8s.io/v1beta1, Kind=Cluster for rke-cluster fleet-default/china: Internal error occurred: failed calling webhook “default.cluster.cluster.x-k8s.io”: failed to call webhook: Post “https://capi-webhook-service.cattle-provisioning-capi-system.svc:443/mutate-cluster-x-k8s-io-v1beta1-cluster?timeout=10s”: service “capi-webhook-service” not found, requeuing
W0815 06:54:31.949321 39 transport.go:301] Unable to cancel request for *client.addQuery
W0815 06:54:47.060992 39 transport.go:301] Unable to cancel request for *client.addQuery
W0815 06:54:47.065734 39 transport.go:301] Unable to cancel request for *client.addQuery
W0815 06:54:47.072033 39 transport.go:301] Unable to cancel request for *client.addQuery
W0815 06:54:47.075754 39 transport.go:301] Unable to cancel request for *client.addQuery
2024/08/15 06:55:07 [ERROR] [rkecluster] fleet-default/china: error getting CAPI cluster no matching controller owner ref
2024/08/15 06:55:07 [ERROR] error syncing ‘fleet-default/china’: handler rke-cluster: no matching controller owner ref, requeuing
2024/08/15 06:55:16 [ERROR] Failed to install system chart rancher-provisioning-capi: pod cattle-system/helm-operation-hh7lq failed, watch closed
2024/08/15 06:55:29 [ERROR] [planner] rkecluster fleet-default/china: error during plan processing: no matching controller owner ref
2024/08/15 06:55:29 [ERROR] error syncing ‘fleet-default/china’: handler planner: no matching controller owner ref, requeuing
W0815 06:56:16.852506 39 warnings.go:80] cluster.x-k8s.io/v1alpha3 Machine is deprecated; use cluster.x-k8s.io/v1beta1 Machine
2024/08/15 06:56:18 [ERROR] Failed to install system chart fleet-crd: pod cattle-system/helm-operation-mvdz2 failed, watch closed
2024/08/15 06:56:27 [ERROR] error syncing ‘fleet-default/china’: handler rke-cluster: failed to create fleet-default/china cluster.x-k8s.io/v1beta1, Kind=Cluster for rke-cluster fleet-default/china: Internal error occurred: failed calling webhook “default.cluster.cluster.x-k8s.io”: failed to call webhook: Post “https://capi-webhook-service.cattle-provisioning-capi-system.svc:443/mutate-cluster-x-k8s-io-v1beta1-cluster?timeout=10s”: service “capi-webhook-service” not found, requeuing
W0815 06:56:50.831175 39 warnings.go:80] cluster.x-k8s.io/v1alpha3 MachineDeployment is deprecated; use cluster.x-k8s.io/v1beta1 MachineDeployment
W0815 06:56:59.873811 39 transport.go:301] Unable to cancel request for *client.addQuery
2024/08/15 06:57:07 [ERROR] [rkecluster] fleet-default/china: error getting CAPI cluster no matching controller owner ref

参考这个 Docker run 启动 rancher,由于映射数据目录导致 rancher/mirrored-pause 无法拉取 看看

照着操作之后启动不显示默认密码了?

你把原来的数据目录清空了在去操作