正在运行
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]但是,如果我向confd模板和conf所具有的完全相同的服务器和键/值对发出curl请求,我会正确地从etcd返回json响应。不确定,为什么confd不工作?
有谁有什么想法吗?
发布于 2014-09-17 07:41:30
您需要在etcd上配置-addr和-bind-addr。
https://stackoverflow.com/questions/25199742
复制相似问题