环境信息:
K3s 版本:
k3s version v1.30.5+k3s1 (9b586704)
节点 CPU 架构、操作系统和版本::
openEuler release 24.03 (LTS) x86_64
集群配置:
1 servers
问题描述:
k3s v1.30.5+k3s1通过国内镜像在线安装失败,我看到之前也有类似的问题反馈过,国产类centos系统只能通过离线安装的方式安装吗
- 安装 K3s 的命令:
curl –sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh -s - --system-default-registry “registry.cn-hangzhou.aliyuncs.com”
预期结果:
成功安装
实际结果:
安装失败
附加上下文/日志:
Errors during downloading metadata for repository ‘rancher-k3s-common-stable’:
- Curl error (28): Timeout was reached for https://rpm.rancher.io/k3s/stable/common/centos/9/noarch/repodata/repomd.xml [Failed to connect to rpm.rancher.io port 443 after 30001 ms: Timeout was reached]
- Curl error (28): Timeout was reached for https://rpm.rancher.io/k3s/stable/common/centos/9/noarch/repodata/repomd.xml [Failed to connect to rpm.rancher.io port 443 after 30000 ms: Timeout was reached]
Error: 为仓库 ‘rancher-k3s-common-stable’ 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root@localhost ~]# curl –sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh -s - --system-default-registry “registry.cn-hangzhou.aliyuncs.com”
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0curl: (6) Could not resolve host: xn–sfl-1n0a
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 37994 100 37994 0 0 32237 0 0:00:01 0:00:01 --:–:-- 32252
[INFO] Finding release for channel stable
[INFO] Using v1.30.5+k3s1 as release
[INFO] Downloading hash rancher-mirror.rancher.cn/k3s/v1.30.5-k3s1/sha256sum-amd64.txt
[INFO] Skipping binary downloaded, installed k3s matches hash
[INFO] Finding available k3s-selinux versions
[WARN] Failed to get available versions of k3s-selinux…defaulting to k3s-selinux-1.2-2.el9.noarch.rpm
Rancher K3s Common (stable) 0.0 B/s | 0 B 02:00
Errors during downloading metadata for repository ‘rancher-k3s-common-stable’: - Curl error (28): Timeout was reached for https://rpm.rancher.io/k3s/stable/common/centos/9/noarch/repodata/repomd.xml [Failed to connect to rpm.rancher.io port 443 after 30001 ms: Timeout was reached]
- Curl error (28): Timeout was reached for https://rpm.rancher.io/k3s/stable/common/centos/9/noarch/repodata/repomd.xml [Failed to connect to rpm.rancher.io port 443 after 30000 ms: Timeout was reached]
Error: 为仓库 ‘rancher-k3s-common-stable’ 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried