环境信息:
K3s 版本:
节点 CPU 架构、操作系统和版本:Linux linshi-pro 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
集群配置:
1 servers
问题描述:
使用国内镜像源安装指定版本的k3s失败
复现步骤:
- 安装 K3s 的命令: curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn INSTALL_K3S_CHANNEL=v1.27 sh -s - --system-default-registry “registry.cn-hangzhou.aliyuncs.com”
预期结果:
安装成功
实际结果:
附加上下文/日志:
日志
[INFO] Finding release for channel v1.27
[INFO] Using v1.27.15+k3s2 as release
[INFO] Downloading hash rancher-mirror.rancher.cn/k3s/v1.27.15-k3s2/sha256sum-amd64.txt
[INFO] Downloading binary rancher-mirror.rancher.cn/k3s/v1.27.15-k3s2/k3s
[INFO] Verifying binary download
[INFO] Installing k3s to /usr/local/bin/k3s
[INFO] Finding available k3s-selinux versions
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base | 3.6 kB 00:00:00
epel | 4.3 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3036::6815:2a0: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 12] Timeout on https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: (28, 'Operation timed out after 30000 milliseconds with 0 out of 0 bytes received')
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3036::6815:2a0: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 12] Timeout on https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: (28, 'Operation timed out after 30001 milliseconds with 0 out of 0 bytes received')
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3036::6815:2a0: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3036::6815:2a0: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3031::ac43:815f: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3031::ac43:815f: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3031::ac43:815f: Network is unreachable"
Trying other mirror.
https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2606:4700:3031::ac43:815f: Network is unreachable"
Trying other mirror.