Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubekey在arm64架构下执行,但是拉取X86环境的包。 #2361

Open
llody55 opened this issue Aug 15, 2024 · 2 comments
Open

kubekey在arm64架构下执行,但是拉取X86环境的包。 #2361

llody55 opened this issue Aug 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@llody55
Copy link

llody55 commented Aug 15, 2024

What is version of KubeKey has the issue?

v3.0.7

What is your os environment?

Ubuntu 22.04.4 LTS

KubeKey config file

apiVersion: kubekey.kubesphere.io/v1alpha2
kind: Cluster
metadata:
  name: sample
spec:
  hosts:
  - {name: k8s-master1, address: 192.168.174.212, internalAddress: 192.168.174.212, user: root, password: ""}
  roleGroups:
    etcd:
    - k8s-master1
    control-plane: 
    - k8s-master1
    worker:
    - k8s-master1

  controlPlaneEndpoint:
    ## Internal loadbalancer for apiservers 
    # internalLoadbalancer: haproxy

    domain: lb.kubesphere.local
    address: ""
    port: 6443
  kubernetes:
    version: v1.24.9
    clusterName: cluster.local
    autoRenewCerts: true
    containerManager: containerd
  etcd:
    type: kubekey
  network:
    plugin: calico
    kubePodsCIDR: 10.233.64.0/18
    kubeServiceCIDR: 10.234.0.0/18
    ## multus support. https://github.com/k8snetworkplumbingwg/multus-cni
    multusCNI:
      enabled: false
  registry:
    privateRegistry: ""
    namespaceOverride: ""
    registryMirrors: []
    insecureRegistries: []
  addons: []

A clear and concise description of what happend.

kubekey3.0.7版本,在arm64架构下,拉取x86环境的包。

Relevant log output

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 


### Additional information

### 系统版本信息
```shell
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
@llody55 llody55 added the bug Something isn't working label Aug 15, 2024
@LiuG-lynx
Copy link

相同问题

@lnnt
Copy link

lnnt commented Sep 2, 2024

# If you install Kubernetes on ARM, add "arch: arm64". For example, {...user: ubuntu, password: Qcloud@123, arch: arm64}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants