创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
发帖前请点击 发表主题 右边的 预览(👀) 按钮,确保帖子格式正确。
操作系统信息
例如:物理机,Ubuntu18.04
Kubernetes版本信息
例如:v18.6。单节点还是多节点。
容器运行时
例如,使用 docker/containerd,版本多少
KubeSphere版本信息
3.2.1
问题是什么
安装报错:
root@zh:~# ./kk create cluster –with-kubernetes v1.21.5 –with-kubesphere v3.2.1
| | / / | | | | / /
| |/ / _ _| |__ ___| |/ / ___ _ _
| \| | | | '_ \ / _ \ \ / _ \ | | |
| |\ \ || | |) | __/ |\ \ __/ |_| |
\| \/\,|./ \\| \/\|\__, |
__/ |
|___/
16:18:01 CST [NodePreCheckModule] A pre-check on nodes
16:18:03 CST success: [zh]
16:18:03 CST [ConfirmModule] Display confirmation form
+——+——+——+———+———-+——-+——-+———–+——–+——–+————+————-+——————+————–+
| name | sudo | curl | openssl | ebtables | socat | ipset | conntrack | chrony | docker | nfs client | ceph client | glusterfs client | time |
+——+——+——+———+———-+——-+——-+———–+——–+——–+————+————-+——————+————–+
| zh | y | y | y | y | y | y | y | | | y | | | CST 16:18:03 |
+——+——+——+———+———-+——-+——-+———–+——–+——–+————+————-+——————+————–+
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
16:18:06 CST success: [LocalHost]
16:18:06 CST [NodeBinariesModule] Download installation binaries
16:18:06 CST message: [localhost]
downloading amd64 kubeadm v1.21.5 …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 42.7M 100 42.7M 0 0 1036k 0 0:00:42 0:00:42 –:–:– 1205k
16:18:49 CST message: [localhost]
downloading amd64 kubelet v1.21.5 …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 112M 100 112M 0 0 1021k 0 0:01:53 0:01:53 –:–:– 1029k
16:20:44 CST message: [localhost]
downloading amd64 kubectl v1.21.5 …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 44.4M 100 44.4M 0 0 1033k 0 0:00:44 0:00:44 –:–:– 1226k
16:21:29 CST message: [localhost]
downloading amd64 helm v3.6.3 …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 43.0M 100 43.0M 0 0 1019k 0 0:00:43 0:00:43 –:–:– 1070k
16:22:13 CST message: [localhost]
downloading amd64 kubecni v0.9.1 …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 37.9M 100 37.9M 0 0 1038k 0 0:00:37 0:00:37 –:–:– 1191k
16:22:50 CST message: [localhost]
downloading amd64 docker 20.10.8 …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 58.1M 100 58.1M 0 0 1286k 0 0:00:46 0:00:46 –:–:– 1309k
16:23:38 CST message: [localhost]
downloading amd64 crictl v1.22.0 …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17.8M 100 17.8M 0 0 1054k 0 0:00:17 0:00:17 –:–:– 1176k
16:23:55 CST message: [localhost]
downloading amd64 etcd v3.4.13 …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16.5M 100 16.5M 0 0 1062k 0 0:00:15 0:00:15 –:–:– 1181k
16:24:11 CST success: [LocalHost]
16:24:11 CST [ConfigureOSModule] Prepare to init OS
16:24:12 CST success: [zh]
16:24:12 CST [ConfigureOSModule] Generate init os script
16:24:12 CST success: [zh]
16:24:12 CST [ConfigureOSModule] Exec init os script
16:24:14 CST stdout: [zh]
net.ipv4.ip_forward = 1
fs.inotify.max_user_watches = 1048576
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
vm.max_map_count = 262144
vm.swappiness = 1
fs.inotify.max_user_instances = 524288
kernel.pid_max = 65535
16:24:14 CST success: [zh]
16:24:14 CST [ConfigureOSModule] configure the ntp server for each node
16:24:14 CST skipped: [zh]
16:24:14 CST [KubernetesStatusModule] Get kubernetes cluster status
16:24:15 CST stdout: [zh]
v1.21.5
16:24:16 CST stdout: [zh]
The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?
16:24:16 CST message: [zh]
get kubernetes cluster info failed: Failed to exec command: sudo -E /bin/bash -c “/usr/local/bin/kubectl –no-headers=true get nodes -o custom-columns=:metadata.name,:status.nodeInfo.kubeletVersion,:status.addresses”
The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?: Process exited with status 1
16:24:16 CST retry: [zh]
16:24:21 CST stdout: [zh]
v1.21.5
16:24:21 CST stdout: [zh]
The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?
16:24:21 CST message: [zh]
get kubernetes cluster info failed: Failed to exec command: sudo -E /bin/bash -c “/usr/local/bin/kubectl –no-headers=true get nodes -o custom-columns=:metadata.name,:status.nodeInfo.kubeletVersion,:status.addresses”
The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?: Process exited with status 1
16:24:21 CST retry: [zh]
16:24:26 CST stdout: [zh]
v1.21.5
16:24:26 CST stdout: [zh]
The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?
16:24:26 CST message: [zh]
get kubernetes cluster info failed: Failed to exec command: sudo -E /bin/bash -c “/usr/local/bin/kubectl –no-headers=true get nodes -o custom-columns=:metadata.name,:status.nodeInfo.kubeletVersion,:status.addresses”
The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?: Process exited with status 1
16:24:26 CST failed: [zh]
error: Pipeline[CreateClusterPipeline] execute failed: Module[KubernetesStatusModule] exec failed:
failed: [zh] [GetClusterStatus] exec failed after 3 retires: get kubernetes cluster info failed: Failed to exec command: sudo -E /bin/bash -c “/usr/local/bin/kubectl –no-headers=true get nodes -o custom-columns=:metadata.name,:status.nodeInfo.kubeletVersion,:status.addresses”
The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?: Process exited with status 1