{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-incubator/external-dns/issues/659","repository_url":"https://api.github.com/repos/kubernetes-incubator/external-dns","labels_url":"https://api.github.com/repos/kubernetes-incubator/external-dns/issues/659/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-incubator/external-dns/issues/659/comments","events_url":"https://api.github.com/repos/kubernetes-incubator/external-dns/issues/659/events","html_url":"https://github.com/kubernetes-incubator/external-dns/issues/659","id":346972812,"node_id":"MDU6SXNzdWUzNDY5NzI4MTI=","number":659,"title":"CoreDNS Provider: ETCD datastore version","user":{"login":"muffin87","id":22658582,"node_id":"MDQ6VXNlcjIyNjU4NTgy","avatar_url":"https://avatars1.githubusercontent.com/u/22658582?v=4","gravatar_id":"","url":"https://api.github.com/users/muffin87","html_url":"https://github.com/muffin87","followers_url":"https://api.github.com/users/muffin87/followers","following_url":"https://api.github.com/users/muffin87/following{/other_user}","gists_url":"https://api.github.com/users/muffin87/gists{/gist_id}","starred_url":"https://api.github.com/users/muffin87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffin87/subscriptions","organizations_url":"https://api.github.com/users/muffin87/orgs","repos_url":"https://api.github.com/users/muffin87/repos","events_url":"https://api.github.com/users/muffin87/events{/privacy}","received_events_url":"https://api.github.com/users/muffin87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-02T11:34:06Z","updated_at":"2018-08-09T16:29:25Z","closed_at":null,"author_association":"NONE","body":"Hi everyone,\r\n\r\nI did some experiments with external-dns and CoreDNS.\r\nI'm running Kubernetes On-Prem and want a dynamic DNS server which holds the records for all Services from the `type: LoadBalancer` and Ingress Objects. The idea was to delegate a sub domain to the this dynamic DNS server.\r\n\r\nSo I started external-dns with the provider CoreDNS:\r\n\r\nFrist thing I notice was that I need a ETCD cluster. So I added a single node ETCD cluster into the same POD. With that in place external-dns pushes key values pairs into ETCD. Next step was to integrate CoreDNS. I added CoreDNS to the Pod and tried to query the A records external-dns pushed. And I saw nothing.\r\n\r\nI jumped into debugging and found out that external-dns pushes into etcdv2 datastore and CoreDNS tried to read from etcdv3 datastore. I migrated the etcdv2 datastore to v3 and after that CoreDNS gives me the answers i expcted.\r\n\r\nSo my question is did I miss something? Is there a config parameter somewhere where I can specify the etcd datastore version? Or is my setup wrong?\r\n\r\nexternal-dns config:\r\n\r\n```\r\n args:\r\n    - --source=service\r\n    - --source=ingress\r\n    - --provider=coredns\r\n    - --policy=sync\r\n    - --registry=txt\r\n    - --log-format=text\r\n    - --log-level=debug\r\n    - --metrics-address=:7979\r\n```\r\n\r\nCoreDNS config:\r\n\r\n```\r\n  - args:\r\n    - -conf\r\n    - /etc/coredns/Corefile\r\n    - -dns.port\r\n    - \"10053\"\r\n\r\nCorefile: |-\r\n    .:10053 {\r\n      cache 30\r\n      errors\r\n      etcd example.com {\r\n        path /skydns\r\n        endpoint http://localhost:2379\r\n      }\r\n      health\r\n      loadbalance round_robin\r\n      log\r\n      prometheus 0.0.0.0:9153\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/kubernetes-incubator/external-dns/issues/comments/411817984","html_url":"https://github.com/kubernetes-incubator/external-dns/issues/659#issuecomment-411817984","issue_url":"https://api.github.com/repos/kubernetes-incubator/external-dns/issues/659","id":411817984,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTgxNzk4NA==","user":{"login":"shashidharatd","id":8734900,"node_id":"MDQ6VXNlcjg3MzQ5MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/8734900?v=4","gravatar_id":"","url":"https://api.github.com/users/shashidharatd","html_url":"https://github.com/shashidharatd","followers_url":"https://api.github.com/users/shashidharatd/followers","following_url":"https://api.github.com/users/shashidharatd/following{/other_user}","gists_url":"https://api.github.com/users/shashidharatd/gists{/gist_id}","starred_url":"https://api.github.com/users/shashidharatd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shashidharatd/subscriptions","organizations_url":"https://api.github.com/users/shashidharatd/orgs","repos_url":"https://api.github.com/users/shashidharatd/repos","events_url":"https://api.github.com/users/shashidharatd/events{/privacy}","received_events_url":"https://api.github.com/users/shashidharatd/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T16:29:25Z","updated_at":"2018-08-09T16:29:25Z","author_association":"CONTRIBUTOR","body":"The CoreDNS provider in external-dns does work with etcd v2 client. it needs to migrate to use etcd v3 client, as recent version of CoreDNS etcd plugin migrated to etcd v3."}}
{"actor":{"display_login":"shashidharatd"}}