K3s拉取镜像失败

环境信息:
K3s 版本:

image

节点 CPU 架构、操作系统和版本::

集群配置:


问题描述:

用k3s server快速部署,拉取镜像,不能拉取下来

预期结果:
可以部署

部署了节点不能搜索到节点

附加上下文/日志:

日志
I1230 02:33:38.639612   72983 controller.go:236] Starting service controller
I1230 02:33:38.639684   72983 shared_informer.go:313] Waiting for caches to sync for service
I1230 02:33:38.720460   72983 range_allocator.go:247] "Successfully synced" key="server"
I1230 02:33:38.736141   72983 range_allocator.go:247] "Successfully synced" key="server"
I1230 02:33:38.739807   72983 shared_informer.go:320] Caches are synced for service
I1230 02:33:38.746003   72983 desired_state_of_world_populator.go:154] "Finished populating initial desired state of world"
INFO[0016] Tunnel authorizer set Kubelet Port 0.0.0.0:10250
I1230 02:33:42.926632   72983 node_lifecycle_controller.go:1055] "Controller detected that some Nodes are Ready. Exiting master disruption mode"
E1230 02:33:53.075689   72983 proxier.go:1564] "Failed to execute iptables-restore" err=<
        exit status 1: Warning: Extension nfacct revision 0 not supported, missing kernel module?
        iptables-restore: line 16 failed
 >
I1230 02:33:53.075789   72983 proxier.go:833] "Sync failed" retryingTime="30s"

E1230 02:34:03.072117   72983 resource_quota_controller.go:446] "Unhandled Error" err="unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: stale GroupVersion discovery: metrics.k8s.io/v1beta1"
I1230 02:34:03.638727   72983 garbagecollector.go:826] "failed to discover some groups" groups="<internal error: json: unsupported type: map[schema.GroupVersion]error>"
E1230 02:34:11.425744   72983 log.go:32] "RunPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to resolve reference \"docker.io/rancher/mirrored-pause:3.6\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden"
E1230 02:34:11.426007   72983 kuberuntime_sandbox.go:72] "Failed to create sandbox for pod" err="rpc error: code = Unknown desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to resolve reference \"docker.io/rancher/mirrored-pause:3.6\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden" pod="kube-system/coredns-ccb96694c-w5dst"
E1230 02:34:11.426146   72983 kuberuntime_manager.go:1170] "CreatePodSandbox for pod failed" err="rpc error: code = Unknown desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to resolve reference \"docker.io/rancher/mirrored-pause:3.6\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden" pod="kube-system/coredns-ccb96694c-w5dst"
E1230 02:34:11.426387   72983 pod_workers.go:1301] "Error syncing pod, skipping" err="failed to \"CreatePodSandbox\" for \"coredns-ccb96694c-w5dst_kube-system(24cf2ce1-e412-4715-beb8-145f94ac45ee)\" with CreatePodSandboxError: \"Failed to create sandbox for pod \\\"coredns-ccb96694c-w5dst_kube-system(24cf2ce1-e412-4715-beb8-145f94ac45ee)\\\": rpc error: code = Unknown desc = failed to get sandbox image \\\"rancher/mirrored-pause:3.6\\\": failed to pull image \\\"rancher/mirrored-pause:3.6\\\": failed to pull and unpack image \\\"docker.io/rancher/mirrored-pause:3.6\\\": failed to resolve reference \\\"docker.io/rancher/mirrored-pause:3.6\\\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden\"" pod="kube-system/coredns-ccb96694c-w5dst" podUID="24cf2ce1-e412-4715-beb8-145f94ac45ee"
E1230 02:34:11.431937   72983 log.go:32] "RunPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to resolve reference \"docker.io/rancher/mirrored-pause:3.6\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden"
E1230 02:34:11.432025   72983 kuberuntime_sandbox.go:72] "Failed to create sandbox for pod" err="rpc error: code = Unknown desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to resolve reference \"docker.io/rancher/mirrored-pause:3.6\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden" pod="kube-system/helm-install-traefik-crd-cww9p"
E1230 02:34:11.432077   72983 kuberuntime_manager.go:1170] "CreatePodSandbox for pod failed" err="rpc error: code = Unknown desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to resolve reference \"docker.io/rancher/mirrored-pause:3.6\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden" pod="kube-system/helm-install-traefik-crd-cww9p"
E1230 02:34:11.432171   72983 pod_workers.go:1301] "Error syncing pod, skipping" err="failed to \"CreatePodSandbox\" for \"helm-install-traefik-crd-cww9p_kube-system(d8689c15-1389-4c41-a2f6-1f282dcc521c)\" with CreatePodSandboxError: \"Failed to create sandbox for pod \\\"helm-install-traefik-crd-cww9p_kube-system(d8689c15-1389-4c41-a2f6-1f282dcc521c)\\\": rpc error: code = Unknown desc = failed to get sandbox image \\\"rancher/mirrored-pause:3.6\\\": failed to pull image \\\"rancher/mirrored-pause:3.6\\\": failed to pull and unpack image \\\"docker.io/rancher/mirrored-pause:3.6\\\": failed to resolve reference \\\"docker.io/rancher/mirrored-pause:3.6\\\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden\"" pod="kube-system/helm-install-traefik-crd-cww9p" podUID="d8689c15-1389-4c41-a2f6-1f282dcc521c"
E1230 02:34:11.433434   72983 log.go:32] "RunPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to resolve reference \"docker.io/rancher/mirrored-pause:3.6\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden"
E1230 02:34:11.433658   72983 kuberuntime_sandbox.go:72] "Failed to create sandbox for pod" err="rpc error: code = Unknown desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to resolve reference \"docker.io/rancher/mirrored-pause:3.6\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden" pod="kube-system/metrics-server-5985cbc9d7-qd9zs"
E1230 02:34:11.433789   72983 kuberuntime_manager.go:1170] "CreatePodSandbox for pod failed" err="rpc error: code = Unknown desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to resolve reference \"docker.io/rancher/mirrored-pause:3.6\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden" pod="kube-system/metrics-server-5985cbc9d7-qd9zs"
E1230 02:34:11.433999   72983 pod_workers.go:1301] "Error syncing pod, skipping" err="failed to \"CreatePodSandbox\" for \"metrics-server-5985cbc9d7-qd9zs_kube-system(008d2771-2b25-42b6-b127-892a11a7a3d9)\" with CreatePodSandboxError: \"Failed to create sandbox for pod \\\"metrics-server-5985cbc9d7-qd9zs_kube-system(008d2771-2b25-42b6-b127-892a11a7a3d9)\\\": rpc error: code = Unknown desc = failed to get sandbox image \\\"rancher/mirrored-pause:3.6\\\": failed to pull image \\\"rancher/mirrored-pause:3.6\\\": failed to pull and unpack image \\\"docker.io/rancher/mirrored-pause:3.6\\\": failed to resolve reference \\\"docker.io/rancher/mirrored-pause:3.6\\\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden\"" pod="kube-system/metrics-server-5985cbc9d7-qd9zs" podUID="008d2771-2b25-42b6-b127-892a11a7a3d9"
E1230 02:34:11.496889   72983 log.go:32] "RunPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to resolve reference \"docker.io/rancher/mirrored-pause:3.6\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden"
E1230 02:34:11.496995   72983 kuberuntime_sandbox.go:72] "Failed to create sandbox for pod" err="rpc error: code = Unknown desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to resolve reference \"docker.io/rancher/mirrored-pause:3.6\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden" pod="kube-system/local-path-provisioner-5cf85fd84d-4rffk"
E1230 02:34:11.497049   72983 kuberuntime_manager.go:1170] "CreatePodSandbox for pod failed" err="rpc error: code = Unknown desc = failed to get sandbox image \"rancher/mirrored-pause:3.6\": failed to pull image \"rancher/mirrored-pause:3.6\": failed to pull and unpack image \"docker.io/rancher/mirrored-pause:3.6\": failed to resolve reference \"docker.io/rancher/mirrored-pause:3.6\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden" pod="kube-system/local-path-provisioner-5cf85fd84d-4rffk"
E1230 02:34:11.497142   72983 pod_workers.go:1301] "Error syncing pod, skipping" err="failed to \"CreatePodSandbox\" for \"local-path-provisioner-5cf85fd84d-4rffk_kube-system(ec7a07c3-03c0-4e8e-a572-64d91bef3099)\" with CreatePodSandboxError: \"Failed to create sandbox for pod \\\"local-path-provisioner-5cf85fd84d-4rffk_kube-system(ec7a07c3-03c0-4e8e-a572-64d91bef3099)\\\": rpc error: code = Unknown desc = failed to get sandbox image \\\"rancher/mirrored-pause:3.6\\\": failed to pull image \\\"rancher/mirrored-pause:3.6\\\": failed to pull and unpack image \\\"docker.io/rancher/mirrored-pause:3.6\\\": failed to resolve reference \\\"docker.io/rancher/mirrored-pause:3.6\\\": unexpected status from HEAD request to https://m.daocloud.io/v2/rancher/mirrored-pause/manifests/3.6?ns=docker.io: 403 Forbidden\"" pod="kube-system/local-path-provisioner-5cf85fd84d-4rffk" podUID="ec7a07c3-03c0-4e8e-a572-64d91bef3099"


参考:如何使用国内资源安装 K3s