创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
发帖前请点击 发表主题 右边的 预览() 按钮,确保帖子格式正确。
操作系统信息
WSL虚拟机,Ubuntu20.04,4C/8G
Kubernetes版本信息
单节点,无安装k8s
容器运行时
无安装
KubeSphere版本信息
文档命令安装:
./kk create cluster –with-kubernetes v1.21.5 –with-kubesphere v3.2.1
问题是什么
无法正常安装,报错如下:
root@Terry:~# ./kk create cluster –with-kubernetes v1.21.5 –with-kubesphere v3.2.1
| | / / | | | | / /
| |/ / _ _| |__ ___| |/ / ___ _ _
| \| | | | '_ \ / _ \ \ / _ \ | | |
| |\ \ || | |) | __/ |\ \ __/ |_| |
\| \/\,|./ \\| \/\|\__, |
__/ |
|___/
20:41:08 CST [NodePreCheckModule] A pre-check on nodes
20:41:08 CST success: [Terry]
20:41:08 CST [ConfirmModule] Display confirmation form
+——-+——+——+———+———-+——-+——-+———–+——–+——–+————+————-+——————+————–+
| name | sudo | curl | openssl | ebtables | socat | ipset | conntrack | chrony | docker | nfs client | ceph client | glusterfs client | time |
+——-+——+——+———+———-+——-+——-+———–+——–+——–+————+————-+——————+————–+
| Terry | y | y | y | y | y | y | y | | | | | | CST 20:41:08 |
+——-+——+——+———+———-+——-+——-+———–+——–+——–+————+————-+——————+————–+
This is a simple check of your environment.
Before installation, you should ensure that your machines meet all requirements specified at
https://github.com/kubesphere/kubekey#requirements-and-recommendations
Continue this installation? [yes/no]: yes
20:41:10 CST success: [LocalHost]
20:41:10 CST [NodeBinariesModule] Download installation binaries
20:41:10 CST message: [localhost]
downloading amd64 kubeadm v1.21.5 …
20:41:11 CST message: [localhost]
kubeadm is existed
20:41:11 CST message: [localhost]
downloading amd64 kubelet v1.21.5 …
20:41:11 CST message: [localhost]
kubelet is existed
20:41:11 CST message: [localhost]
downloading amd64 kubectl v1.21.5 …
20:41:11 CST message: [localhost]
kubectl is existed
20:41:11 CST message: [localhost]
downloading amd64 helm v3.6.3 …
20:41:11 CST message: [localhost]
helm is existed
20:41:11 CST message: [localhost]
downloading amd64 kubecni v0.9.1 …
20:41:11 CST message: [localhost]
kubecni is existed
20:41:11 CST message: [localhost]
downloading amd64 docker 20.10.8 …
20:41:11 CST message: [localhost]
docker is existed
20:41:11 CST message: [localhost]
downloading amd64 crictl v1.22.0 …
20:41:11 CST message: [localhost]
crictl is existed
20:41:11 CST message: [localhost]
downloading amd64 etcd v3.4.13 …
20:41:12 CST message: [localhost]
etcd is existed
20:41:12 CST success: [LocalHost]
20:41:12 CST [ConfigureOSModule] Prepare to init OS
20:41:12 CST message: [Terry]
Failed to override hostname: Failed to exec command: sudo -E /bin/bash -c “hostnamectl set-hostname Terry && sed -i ‘/127.0.1.1/s/.*/127.0.1.1 Terry/g’ /etc/hosts”
System has not been booted with systemd as init system (PID 1). Can’t operate.
Failed to create bus connection: Host is down: Process exited with status 1
20:41:12 CST retry: [Terry]
20:41:17 CST message: [Terry]
Failed to override hostname: Failed to exec command: sudo -E /bin/bash -c “hostnamectl set-hostname Terry && sed -i ‘/127.0.1.1/s/.*/127.0.1.1 Terry/g’ /etc/hosts”
System has not been booted with systemd as init system (PID 1). Can’t operate.
Failed to create bus connection: Host is down: Process exited with status 1
20:41:17 CST retry: [Terry]
20:41:22 CST message: [Terry]
Failed to override hostname: Failed to exec command: sudo -E /bin/bash -c “hostnamectl set-hostname Terry && sed -i ‘/127.0.1.1/s/.*/127.0.1.1 Terry/g’ /etc/hosts”
System has not been booted with systemd as init system (PID 1). Can’t operate.
Failed to create bus connection: Host is down: Process exited with status 1
20:41:22 CST failed: [Terry]
error: Pipeline[CreateClusterPipeline] execute failed: Module[ConfigureOSModule] exec failed:
failed: [Terry] [InitOS] exec failed after 3 retires: Failed to override hostname: Failed to exec command: sudo -E /bin/bash -c “hostnamectl set-hostname Terry && sed -i ‘/127.0.1.1/s/.*/127.0.1.1 Terry/g’ /etc/hosts”
System has not been booted with systemd as init system (PID 1). Can’t operate.
Failed to create bus connection: Host is down: Process exited with status 1