kubesphere / kubesphere/website

kubekey支持arm64架构吗?

Open
#3,157 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
SCSS
Stars
97
Forks
418
PR merge metrics
No merged PRs in 30d

Description

## 系统:ubantu22.04
## 架构:ARM64
## CPU: Kunpeng-920
## 内核:5.15.0-118-generic
在arm64架构下,部署K8S1.24版本集群,会去下载X86架构的包,这有办法解决吗?

```
root@k8s-master1:~# ./kk create cluster -f config-sample.yaml

_ __ _ _ __
| | / / | | | | / /
| |/ / _ _| |__ ___| |/ / ___ _ _
| \| | | | '_ \ / _ \ \ / _ \ | | |
| |\ \ |_| | |_) | __/ |\ \ __/ |_| |
\_| \_/\__,_|_.__/ \___\_| \_/\___|\__, |
__/ |
|___/

10:57:36 CST [GreetingsModule] Greetings
10:57:37 CST message: [k8s-master1]
Greetings, KubeKey!
10:57:37 CST success: [k8s-master1]
10:57:37 CST [NodePreCheckModule] A pre-check on nodes
10:57:37 CST success: [k8s-master1]
10:57:37 CST [ConfirmModule] Display confirmation form
+-------------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+
| name | sudo | curl | openssl | ebtables | socat | ipset | ipvsadm | conntrack | chrony | docker | containerd | nfs client | ceph client | glusterfs client | time |
+-------------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+
| k8s-master1 | y | y | y | y | y | y | y | y | | | | y | | | CST 10:57:37 |
+-------------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+

This is a simple check of your environment.
Before installation, ensure that your machines meet all requirements specified at
https://github.com/kubesphere/kubekey#requirements-and-recommendations

Continue this installation? [yes/no]: yes
10:57:56 CST success: [LocalHost]
10:57:56 CST [NodeBinariesModule] Download installation binaries
10:57:56 CST message: [localhost]
downloading amd64 kubeadm v1.24.9 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104
10:57:56 CST [WARN] Having a problem with accessing https://storage.googleapis.com? You can try again after setting environment 'export KKZONE=cn'
10:57:56 CST message: [LocalHost]
Failed to download kubeadm binary: curl -L -o /root/kubekey/kube/v1.24.9/amd64/kubeadm https://storage.googleapis.com/kubernetes-release/release/v1.24.9/bin/linux/amd64/kubeadm error: exit status 56
10:57:56 CST failed: [LocalHost]
error: Pipeline[CreateClusterPipeline] execute failed: Module[NodeBinariesModule] exec failed:
failed: [LocalHost] [DownloadBinaries] exec failed after 1 retires: Failed to download kubeadm binary: curl -L -o /root/kubekey/kube/v1.24.9/amd64/kubeadm https://storage.googleapis.com/kubernetes-release/release/v1.24.9/bin/linux/amd64/kubeadm error: exit status 56
```
## 相关组件系统版本
```
root@k8s-master1:~# ./kk version
kk version: &version.Info{Major:"3", Minor:"0", GitVersion:"v3.0.7-dirty", GitCommit:"e755baf67198d565689d7207378174f429b508ba", GitTreeState:"dirty", BuildDate:"2023-01-18T01:59:52Z", GoVersion:"go1.19.2", Compiler:"gc", Platform:"linux/arm64"}
root@k8s-master1:~# uname -a
Linux k8s-master1 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:30:28 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
```

Contributor guide

No contributing guide indexed for this repository

Research direction

The report points to ./kk create cluster -f config-sample.yaml and the NodeBinariesModule download step, which selects amd64 kubeadm v1.24.9. Start by tracing that download path and the architecture used for linux/arm64, then verify whether an ARM64 binary is available; done means ARM64 deployment no longer requests amd64 binaries or the limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes, linux
Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.