创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
物理机,Centos7.9,4C/16G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
[root@master1 kube-offline-install-packages]# crictl version
Version: 0.1.0
RuntimeName: containerd
RuntimeVersion: v1.7.13
RuntimeApiVersion: v1
KubeSphere版本信息
使用kk离线安装 KubeSpherev4.1.2版本 + Kubernetes 1.30.6
问题是什么
试过多次,每次安装都失败,报etcd启动失败:
16:03:31 CST message: [k8s-master01]
etcd health check failed: Failed to exec command: sudo -E /bin/bash -c “export ETCDCTL_API=2;export ETCDCTL_CERT_FILE=‘/etc/ssl/etcd/ssl/admin-k8s-master01.pem’;export ETCDCTL_KEY_FILE=‘/etc/ssl/etcd/ssl/admin-k8s-master01-key.pem’;export ETCDCTL_CA_FILE=‘/etc/ssl/etcd/ssl/ca.pem’;/usr/local/bin/etcdctl –endpoints=https://10.6.2.70:2379,https://10.6.2.74:2379 cluster-health | grep -q ‘cluster is healthy’”
Error: client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 10.6.2.70:2379: connect: connection refused
; error #1: dial tcp 10.6.2.74:2379: connect: no route to host
error #0: dial tcp 10.6.2.70:2379: connect: connection refused
error #1: dial tcp 10.6.2.74:2379: connect: no route to host: Process exited with status 1
16:03:31 CST retry: [k8s-master01]
16:03:36 CST message: [k8s-master02]
etcd health check failed: Failed to exec command: sudo -E /bin/bash -c “export ETCDCTL_API=2;export ETCDCTL_CERT_FILE=‘/etc/ssl/etcd/ssl/admin-k8s-master02.pem’;export ETCDCTL_KEY_FILE=‘/etc/ssl/etcd/ssl/admin-k8s-master02-key.pem’;export ETCDCTL_CA_FILE=‘/etc/ssl/etcd/ssl/ca.pem’;/usr/local/bin/etcdctl –endpoints=https://10.6.2.70:2379,https://10.6.2.74:2379 cluster-health | grep -q ‘cluster is healthy’”
Error: client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 10.6.2.74:2379: connect: connection refused
; error #1: dial tcp 10.6.2.70:2379: connect: no route to host
error #0: dial tcp 10.6.2.74:2379: connect: connection refused
error #1: dial tcp 10.6.2.70:2379: connect: no route to host: Process exited with status 1