K3s国内源安装也会去docker.io下载镜像--前情提要:2024.6.7国内无法无法访问docker.io

环境信息:
K3s 版本:

k3s version v1.29.5+k3s1 (4e53a323)
go version go1.21.9
节点 CPU 架构、操作系统和版本::

Linux VM-1-8-debian 4.19.0-26-amd64 #1 SMP Debian 4.19.304-1 (2024-01-09) x86_64 GNU/Linux

集群配置:

无agent
问题描述:

前情提要:2024.6.7国内无法无法访问docker.io
使用国内源安装k3s也回去docker.io下载镜像,因为不可达,导致镜像无法下载,报错:
Warning FailedCreatePodSandBox 3m6s (x8 over 15m) kubelet Failed to create pod sandbox: 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”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6”: net/http: TLS handshake timeout

复现步骤:

预期结果:

实际结果:

附加上下文/日志:

日志


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