创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机/物理机,Centos7.5/Ubuntu18.04,4C/8G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
KubeSphere版本信息
[root@luban-node01 kubekey]# vim config-sample.yaml
[root@luban-node01 kubekey]# ./kk create cluster -f config-sample.yaml -a kubekey-artifact.tar.gz
| | / / | | | | / /
| |/ / _ _| |__ ___| |/ / ___ _ _
| \| | | | '_ \ / _ \ \ / _ \ | | |
| |\ \ || | |) | __/ |\ \ __/ |_| |
\| \/\,|./ \\| \/\|\__, |
__/ |
|___/
00:03:53 CST [GreetingsModule] Greetings
00:03:53 CST message: [luban-worker3]
Greetings, KubeKey!
00:03:54 CST message: [luban-controlplane1]
Greetings, KubeKey!
00:03:54 CST message: [luban-controlplane2]
Greetings, KubeKey!
00:03:54 CST message: [luban-controlplane3]
Greetings, KubeKey!
00:03:54 CST message: [luban-registry]
Greetings, KubeKey!
00:03:55 CST message: [luban-worker1]
Greetings, KubeKey!
00:03:55 CST message: [luban-worker2]
Greetings, KubeKey!
00:03:55 CST success: [luban-worker3]
00:03:55 CST success: [luban-controlplane1]
00:03:55 CST success: [luban-controlplane2]
00:03:55 CST success: [luban-controlplane3]
00:03:55 CST success: [luban-registry]
00:03:55 CST success: [luban-worker1]
00:03:55 CST success: [luban-worker2]
00:03:55 CST [NodePreCheckModule] A pre-check on nodes
00:03:56 CST success: [luban-registry]
00:03:56 CST success: [luban-worker3]
00:03:56 CST success: [luban-controlplane1]
00:03:56 CST success: [luban-worker1]
00:03:56 CST success: [luban-controlplane3]
00:03:56 CST success: [luban-controlplane2]
00:03:56 CST success: [luban-worker2]
00:03:56 CST [ConfirmModule] Display confirmation form
+———————+——+——+———+———-+——-+——-+———+———–+——–+——–+————+————+————-+——————+————–+
| name | sudo | curl | openssl | ebtables | socat | ipset | ipvsadm | conntrack | chrony | docker | containerd | nfs client | ceph client | glusterfs client | time |
+———————+——+——+———+———-+——-+——-+———+———–+——–+——–+————+————+————-+——————+————–+
| luban-controlplane1 | y | y | y | y | y | y | | y | | | | | | | CST 00:03:56 |
| luban-controlplane2 | y | y | y | y | y | y | | y | | | | | | | CST 00:03:56 |
| luban-controlplane3 | y | y | y | y | y | y | | y | | | | | | | CST 00:03:56 |
| luban-registry | y | y | y | y | y | y | | y | | | | | | | CST 00:03:58 |
| luban-worker1 | y | y | y | y | y | y | | y | | | | | | | CST 00:03:56 |
| luban-worker2 | y | y | y | y | y | y | | y | | | | | | | CST 00:03:56 |
| luban-worker3 | y | y | y | y | y | y | | y | | | | | | | CST 00:03:58 |
+———————+——+——+———+———-+——-+——-+———+———–+——–+——–+————+————+————-+——————+————–+
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
Install k8s with specify version: v1.31.0
[Notice]
For Kubernetes v1.24 and later, dockershim has been deprecated.
Current runtime is set to Docker and `cri-dockerd` will be installed to support Kubernetes v1.24 and later.
Yoc can also specify a container runtime other than Docker to install Kubernetes v1.24 or later.
You can set “spec.kubernetes.containerManager” in the configuration file to “containerd” or add “–container-manager containerd” to the “./kk create cluster” command.
For more information, see:
https://github.com/kubesphere/kubekey/blob/master/docs/commands/kk-create-cluster.md
https://kubernetes.io/docs/setup/production-environment/container-runtimes/#container-runtimes
https://kubernetes.io/blog/2022/02/17/dockershim-faq/
https://github.com/Mirantis/cri-dockerd
Continue this installation? [yes/no]: yes
00:04:01 CST success: [LocalHost]
00:04:01 CST [UnArchiveArtifactModule] Check the KubeKey artifact md5 value
00:04:02 CST success: [LocalHost]
00:04:02 CST [UnArchiveArtifactModule] UnArchive the KubeKey artifact
00:04:02 CST skipped: [LocalHost]
00:04:02 CST [UnArchiveArtifactModule] Create the KubeKey artifact Md5 file
00:04:02 CST skipped: [LocalHost]
00:04:02 CST [NodeBinariesModule] Download installation binaries
00:04:02 CST message: [localhost]
downloading amd64 kubeadm v1.31.0 …
00:04:04 CST message: [localhost]
kubeadm exists
00:04:04 CST message: [localhost]
downloading amd64 kubelet v1.31.0 …
00:04:07 CST message: [localhost]
kubelet exists
00:04:07 CST message: [localhost]
downloading amd64 kubectl v1.31.0 …
00:04:09 CST message: [localhost]
kubectl exists
00:04:09 CST message: [localhost]
downloading amd64 helm v3.14.3 …
00:04:11 CST message: [localhost]
helm exists
00:04:11 CST message: [localhost]
downloading amd64 kubecni v1.2.0 …
00:04:13 CST message: [localhost]
kubecni exists
00:04:13 CST message: [localhost]
downloading amd64 crictl v1.29.0 …
00:04:14 CST message: [localhost]
crictl exists
00:04:14 CST message: [localhost]
downloading amd64 etcd v3.5.13 …
00:04:14 CST message: [localhost]
etcd exists
00:04:14 CST message: [localhost]
downloading amd64 docker 24.0.9 …
% 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: mirrors.aliyun.com
00:04:14 CST message: [LocalHost]
Failed to download docker binary: curl -L -o /root/kubekey/kubekey/docker/24.0.9/amd64/docker-24.0.9.tgz https://mirrors.aliyun.com/docker-ce/linux/static/stable/x86_64/docker-24.0.9.tgz error: exit status 6
00:04:14 CST failed: [LocalHost]
error: Pipeline[CreateClusterPipeline] execute failed: Module[NodeBinariesModule] exec failed:
failed: [LocalHost] [DownloadBinaries] exec failed after 1 retries: Failed to download docker binary: curl -L -o /root/kubekey/kubekey/docker/24.0.9/amd64/docker-24.0.9.tgz https://mirrors.aliyun.com/docker-ce/linux/static/stable/x86_64/docker-24.0.9.tgz error: exit status 6
[root@luban-node01 kubekey]#