kubekey 安装kubernetes 失败
What is version of KubeKey has the issue?
v3.0.7
What is your os environment?
CentOS Linux release 7.7.1908 (Core)
KubeKey config file
apiVersion: kubekey.kubesphere.io/v1alpha2
kind: Cluster
metadata:
name: sample
spec:
hosts:
- {name: master01, address: 192.168.1.241, internalAddress: 192.168.1.241, user: root, password: "123"}
- {name: master02, address: 192.168.1.242, internalAddress: 192.168.1.242, user: root, password: "123"}
- {name: master03, address: 192.168.1.243, internalAddress: 192.168.1.243, user: root, password: "123"}
roleGroups:
etcd:
- master01
- master02
- master03
control-plane:
- master01
- master02
- master03
worker:
controlPlaneEndpoint:
## Internal loadbalancer for apiservers
internalLoadbalancer: kube-vip
domain: lb.kubesphere.local
address: "192.168.1.240"
port: 6443
kubernetes:
version: v1.27.1
clusterName: cluster.local
autoRenewCerts: true
containerManager: containerd
etcd:
type: kubekey
network:
plugin: flanner
kubePodsCIDR: 10.233.64.0/18
kubeServiceCIDR: 10.233.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.
kubekey 安装kubernetes 失败,kubernete版本,v.1.26 v1.27.0-v1.27.1 ,提示找不着sha256, 但是源代码https://github.com/kubesphere/kubekey/blob/master/version/components.json 又存在相关版本的sha256值。官方文档也有相应的支持。
Relevant log output
Continue this installation? [yes/no]: yes
00:03:29 EDT success: [LocalHost]
00:03:29 EDT [NodeBinariesModule] Download installation binaries
00:03:29 EDT message: [localhost]
downloading amd64 kubeadm v1.27.1 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45.9M 100 45.9M 0 0 827k 0 0:00:56 0:00:56 --:--:-- 981k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45.9M 100 45.9M 0 0 961k 0 0:00:48 0:00:48 --:--:-- 1049k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45.9M 100 45.9M 0 0 820k 0 0:00:57 0:00:57 --:--:-- 837k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45.9M 100 45.9M 0 0 1017k 0 0:00:46 0:00:46 --:--:-- 1045k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45.9M 100 45.9M 0 0 955k 0 0:00:49 0:00:49 --:--:-- 1018k
00:07:49 EDT message: [LocalHost]
Failed to download kubeadm binary: curl -L -o /home/kubekey/kube/v1.27.1/amd64/kubeadm https://kubernetes-release.pek3b.qingstor.com/release/v1.27.1/bin/linux/amd64/kubeadm error: No SHA256 found for kubeadm. v1.27.1 is not supported.
00:07:49 EDT 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 /home/kubekey/kube/v1.27.1/amd64/kubeadm https://kubernetes-release.pek3b.qingstor.com/release/v1.27.1/bin/linux/amd64/kubeadm error: No SHA256 found for kubeadm. v1.27.1 is not supported.
Additional information
No response
same error here
执行 kubeadm token create --print-join-command 会重新生成一个带token的命令 然后再master与node节点执行 新成的带token那条命令 案例: kubeadm join lb.kubesphere.local:6443 --token v6mx57.titqt1sbbpd7wv5n --discovery-token-ca-cert-hash sha256:cb51b65286a540dfb517591e8720954e1212eb7abb00e7xxxxxxxxxxx00ed
我也遇到同样的问题,用的3.0.10版本 现在修复了吗?
If you want to install k8s v1.27+,kk v3.1.0-alpha.5 can be used.
已修复
------------------ 原始邮件 ------------------ 发件人: Jay Chang @.> 发送时间: 2023年9月25日 10:42 收件人: kubesphere/kubekey @.> 抄送: fenlin88l @.>, Comment @.> 主题: Re: [kubesphere/kubekey] kubekey 安装kubernetes 失败 (Issue #1822)
同样的问题,现在修复了吗?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Ok thankyou
------------------ 原始邮件 ------------------ 发件人: pixiake @.> 发送时间: 2023年9月26日 09:51 收件人: kubesphere/kubekey @.> 抄送: fenlin88l @.>, Comment @.> 主题: Re: [kubesphere/kubekey] kubekey 安装kubernetes 失败 (Issue #1822)
If you want to install k8s v1.27+,kk v3.1.0-alpha.5 can be used.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
kk version: &version.Info{Major:"3", Minor:"0", GitVersion:"v3.0.13",
same error: