skynetservices / skydns

DNS service discovery for etcd
MIT License
2.2k stars 307 forks source link

How to use etcd3 backend? #331

Open NoxisStyle opened 6 years ago

NoxisStyle commented 6 years ago

Hi,

I tried to use the etcd3 backend with version 2.5.3a of the skydns container ( skynetservices/skydns:2.5.3a docker image) but all my attemps failed.

I tried to add "etcd3":true in /skydns/config using both the etcd v2 and v3 APIs before starting the container but Skydns only seems to consider etcd v2. e.g. {"dns_addr":"0.0.0.0:53", "ttl":60, "domain": "cluster.local", "nameservers": ["8.8.8.8:53","8.8.4.4:53"], "etcd3":true}

How are we supposed to enable the etcd v3 mode ?

NoxisStyle commented 6 years ago

I also tried starting the container with /skydns -etcd3=true, but the flag does not seem to be supported

NoxisStyle commented 6 years ago

In fact it does not work because the last SkyDNS tag does not yet contain etcd v3 support. Is there a plan to make a new tag of the project ?

AlexKapustin commented 4 years ago

Currently you need to enable support for v2 from etcd server side: –enable-v2 https://etcd.io/docs/v3.2.17/op-guide/configuration/