confd peer无法访问

时间:2014-08-08 09:05:18

标签: coreos etcd confd

运行

confd -debug=true -verbose -onetime -node 172.17.0.61:4001 -confdir ./confd

给我以下

2014-08-08T10:57:25+02:00 HAL75 confd[20762]: WARNING Skipping confd config file.
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: NOTICE Starting confd
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: NOTICE etcd nodes set to http://172.17.0.61:4001
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: DEBUG Loading template resources from confdir ./confd
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: DEBUG Processing template resource confd/conf.d/test.toml
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: DEBUG Loading template resource from confd/conf.d/test.toml
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: DEBUG Retrieving keys from etcd
2014-08-08T10:57:25+02:00 HAL75 confd[20762]: DEBUG Key prefix set to /
2014-08-08T10:57:26+02:00 HAL75 confd[20762]: ERROR 501: All the given peers are not reachable (Tried to connect to each peer twice and failed) [0]

然而,如果我对完全相同的服务器和密钥/值对进行curl请求 模板和conf有,我从etcd正确地得到了json响应。不确定,为什么confd不起作用?

有人有什么想法吗?

1 个答案:

答案 0 :(得分:-1)

您需要在etcd上配置-addr-bind-addr