etcd集群无法启动

[root@k8s-master02 conf]# systemctl status etcd.service
 etcd.service - Etcd Server
   Loaded: loaded (/usr/lib/systemd/system/etcd.service; disabled; vendor preset: disabled)
   Active: activating (start) since 日 2021-06-27 19:37:53 CST; 4s ago
     Docs: https://github.com/coreos
 Main PID: 4464 (etcd)
   Memory: 23.8M
   CGroup: /system.slice/etcd.service
           └─4464 /opt/kubernetes/bin/etcd --name etcd2 --cert-file=/opt/kubernetes/ssl/etcd.pem --key-file=/opt/kubernetes/ssl/etcd-key.pem ...

6月 27 19:37:57 k8s-master02 etcd[4464]: failed to find member e99d560084d446c8 in cluster 5eaea69d6cf5b5ea
6月 27 19:37:57 k8s-master02 etcd[4464]: failed to find member 

报错 failed to find member e99d560084d446c8 in cluster 5eaea69d6cf5b5ea
解决方式删除/data/etcd/目录下数据重启即可
检查集群健康状况

[root@k8s-master01 ssl]# etcdctl --ca-file=ca.pem --cert-file=etcd.pem --key-file=etcd-key.pem --endpoints="https://192.168.2.10:2379,https://192.168.2.11:2379,https://192.168.2.12:2379" cluster-health
member 272dad16f2666b47 is healthy: got healthy result from https://192.168.2.11:2379
member 2ab38a249cac7a26 is healthy: got healthy result from https://192.168.2.12:2379
member e99d560084d446c8 is healthy: got healthy result from https://192.168.2.10:2379
cluster is healthy

你可能感兴趣的:(etcd集群无法启动)