创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机,Centos7.9 8C/16G
Kubernetes版本信息
kubectl versionClient Version: version.Info{Major:“1”, Minor:“25”, GitVersion:“v1.25.4”, GitCommit:“872a965c6c6526caa949f0c6ac028ef7aff3fb78”, GitTreeState:“clean”, BuildDate:“2022-11-09T13:36:36Z”, GoVersion:“go1.19.3”, Compiler:“gc”, Platform:“linux/amd64”}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:“1”, Minor:“22”, GitVersion:“v1.22.12”, GitCommit:“b058e1760c79f46a834ba59bd7a3486ecf28237d”, GitTreeState:“clean”, BuildDate:“2022-07-13T14:53:39Z”, GoVersion:“go1.16.15”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
KubeSphere版本信息
例如:v3.3.0。离线安装。在已有K8s上安装还是使用kk安装。
问题是什么
1. 首次使用kubekey安装没出现问题,但是发现没有配置gluster存储,于是将环境推倒(kubesphere-master、kubesphere-node节点),保留了kubekey节点没有重装
当再次在kubekey节点执行安装(./kk create cluster -f config-sample.yaml)时,就会一直报etcd证书问题,再次把kubesphere-master、kubesphere-node节点重新安装系统,报错依然存在
报错如下:
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-ks-master.pem’;export ETCDCTL_KEY_FILE=‘/etc/ssl/etcd/ssl/admin-ks-master-key.pem’;export ETCDCTL_CA_FILE=‘/etc/ssl/etcd/ssl/ca.pem’;/usr/local/bin/etcdctl –endpoints=https://172.26.160.18:2379 cluster-health | grep -q ‘cluster is healthy’”
: Process exited with status 1
17:23:54 CST retry: [ks-master]
17:23:59 CST message: [ks-master]
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-ks-master.pem’;export ETCDCTL_KEY_FILE=‘/etc/ssl/etcd/ssl/admin-ks-master-key.pem’;export ETCDCTL_CA_FILE=‘/etc/ssl/etcd/ssl/ca.pem’;/usr/local/bin/etcdctl –endpoints=https://172.26.160.18:2379 cluster-health | grep -q ‘cluster is healthy’”
: Process exited with status 1
17:23:59 CST retry: [ks-master]
17:24:04 CST message: [ks-master]
3 . 单独使用此命令在kubesphere-master节点执行,没有报错出现
麻烦各位老师给指点下。谢谢