码迷,mamicode.com
首页 > 其他好文 > 详细

cluster may be unhealthy: failed to list members

时间:2018-05-24 16:36:07      阅读:523      评论:0      收藏:0      [点我收藏+]

标签:cluster may be unhea

[root@kube-etcd etcd]# etcdctl -C http://etcd:2379 cluster-health

cluster may be unhealthy: failed to list members

Error:  client: etcd cluster is unavailable or misconfigured; error #0: dial tcp: lookup etcd on 114.114.114.114:53: no such host


error #0: dial tcp: lookup etcd on 114.114.114.114:53: no such host



[root@kube-etcd etcd]# vi /etc/hosts    配置hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

10.0.0.10    etcd

10.0.0.11    kube-master

10.0.0.12    kube-node-1

10.0.0.13    kube-node-2

10.0.0.14    kube-node-3


[root@kube-etcd etcd]# etcdctl -C http://etcd:2379 cluster-health

member 8e9e05c52164694d is healthy: got healthy result from http://kube-etcd:2379

cluster is healthy


[root@kube-etcd etcd]# etcdctl -C http://etcd:4001 cluster-health

member 8e9e05c52164694d is healthy: got healthy result from http://kube-etcd:2379

cluster is healthy





cluster may be unhealthy: failed to list members

标签:cluster may be unhea

原文地址:http://blog.51cto.com/sf1314/2119868

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!