confd: dns srv function is not perfect
Firstly, -srv-domain
doesn’t support _etcd-client-ssl._tcp.example.com which is etcd dns srv with ssl. Even if I use -scheme https
Secondly, when I use -srv-record _etcd-client-ssl._tcp.example.com -scheme https
to replace, it shows
2017-08-30T15:27:13+08:00 linux confd[9653]: INFO SRV record set to _etcd-client-ssl._tcp.example.com
2017-08-30T15:27:13+08:00 linux confd[9653]: INFO Backend set to etcd
2017-08-30T15:27:13+08:00 linux confd[9653]: INFO Starting confd
2017-08-30T15:27:13+08:00 linux confd[9653]: INFO Backend nodes set to 02.example.com:4758, 01.example.com:4758, 03.example.com:4758
2017-08-30T15:27:13+08:00 linux confd[9653]: ERROR client: etcd cluster is unavailable or misconfigured; error #0: unsupported protocol scheme "01.example.com"
; error #1: unsupported protocol scheme "03.example.com"
; error #2: unsupported protocol scheme "02.example.com"
2017-08-30T15:27:13+08:00 linux confd[9653]: FATAL client: etcd cluster is unavailable or misconfigured; error #0: unsupported protocol scheme "01.example.com"
; error #1: unsupported protocol scheme "03.example.com"
; error #2: unsupported protocol scheme "02.example.com"
It seems that -scheme
doesn’t work.
Finally, I use -node
and it connects successfully. But it tells me that key doesn’t exist, because confd prepends /
to my key automatically, even if I set prefix = ""
in toml.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 27 (23 by maintainers)
@zyf0330 done. Thanks for noticing