K8S启动etcd报错:“request sent was ignored”(已解决)

K8S配置完etcd后无法启动

环境:CentOS7、docker已安装

[root@Master ~]# yum install -y kubernetes-master etcd #安装命令

启动时报错

[root@Master ~]# systemctl start etcd
Job for etcd.service failed because a timeout was exceeded. See "systemctl status etcd.                                                                                                  service" and "journalctl -xe" for details.
[root@Master ~]# journalctl -xe
Sep 16 14:46:40 Master etcd[3266]: request sent was ignored (cluster ID mismatch: peer[cd2399c9b3be0308]=cdf818194e3a8c32, local=461557d8fc1d3ae9)
Sep 16 14:46:40 Master etcd[3266]: request sent was ignored (cluster ID mismatch: peer[cd2399c9b3be0308]=cdf818194e3a8c32, local=461557d8fc1d3ae9)
Sep 16 14:46:40 Master etcd[3266]: request sent was ignored (cluster ID mismatch: peer[608369cbfeecea7f]=4136874c444f4cb0, local=461557d8fc1d3ae9)

[root@Master ~]# etcdctl cluster-health
cluster may be unhealthy: failed to list members
Error:  client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 127.0.0.1:4001: connect: connection refused
; error #1: client: endpoint http://127.0.0.1:2379 exceeded header timeout

error #0: dial tcp 127.0.0.1:4001: connect: connection refused
error #1: client: endpoint http://127.0.0.1:2379 exceeded header timeout

清理缓存(master、node1、node2)

[root@Master ~]# cd /var/lib/etcd/
[root@Master etcd]# rm ./* -rf

重启etcd(解决)

[root@Master etcd]# systemctl start etcd
[root@Master etcd]# etcdctl cluster-health
member 608369cbfeecea7f is healthy: got healthy result from http://10.0.0.134:2379
member 855cd77f1417e4bb is healthy: got healthy result from http://10.0.0.132:2379
member cd2399c9b3be0308 is healthy: got healthy result from http://10.0.0.133:2379
cluster is healthy

你可能感兴趣的:(实验报错集合(已解决),etcd,docker)