{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-sigs/federation-v2/issues/464","repository_url":"https://api.github.com/repos/kubernetes-sigs/federation-v2","labels_url":"https://api.github.com/repos/kubernetes-sigs/federation-v2/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-sigs/federation-v2/issues/464/comments","events_url":"https://api.github.com/repos/kubernetes-sigs/federation-v2/issues/464/events","html_url":"https://github.com/kubernetes-sigs/federation-v2/issues/464","id":386102460,"node_id":"MDU6SXNzdWUzODYxMDI0NjA=","number":464,"title":"external DNS does not work correctly","user":{"login":"xunpan","id":42633647,"node_id":"MDQ6VXNlcjQyNjMzNjQ3","avatar_url":"https://avatars3.githubusercontent.com/u/42633647?v=4","gravatar_id":"","url":"https://api.github.com/users/xunpan","html_url":"https://github.com/xunpan","followers_url":"https://api.github.com/users/xunpan/followers","following_url":"https://api.github.com/users/xunpan/following{/other_user}","gists_url":"https://api.github.com/users/xunpan/gists{/gist_id}","starred_url":"https://api.github.com/users/xunpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xunpan/subscriptions","organizations_url":"https://api.github.com/users/xunpan/orgs","repos_url":"https://api.github.com/users/xunpan/repos","events_url":"https://api.github.com/users/xunpan/events{/privacy}","received_events_url":"https://api.github.com/users/xunpan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-11-30T09:22:12Z","updated_at":"2018-12-07T13:46:44Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I install federation cluster automatically.\r\nAfter that:\r\n1. install metallb on each member cluster. \r\n2. create externaldns with coredns as its backend\r\n3. apply federation deployment and service. The service is LoadBalancer type.\r\n4. create ServiceDNSRecord mentioned in [servicedns-with-externaldns.md](https://github.com/kubernetes-sigs/federation-v2/blob/master/docs/servicedns-with-externaldns.md)\r\n\r\nAfter that, I can see \r\n```\r\n kind: DNSEndpoint\r\n  metadata:\r\n    creationTimestamp: 2018-11-30T08:20:25Z\r\n    generation: 2\r\n    name: service-test-service\r\n    namespace: test-namespace\r\n    resourceVersion: \"40153\"\r\n    selfLink: /apis/multiclusterdns.federation.k8s.io/v1alpha1/namespaces/test-namespace/dnsendpoints/service-test-service\r\n    uid: ca056c05-f478-11e8-b4cf-080027023c67\r\n  spec:\r\n    endpoints:\r\n    - dnsName: test-service.test-namespace.test-domain.svc...example.org\r\n      recordTTL: 300\r\n      recordType: A\r\n      targets:\r\n      - 172.168.20.0\r\n      - 192.168.20.0\r\n    - dnsName: test-service.test-namespace.test-domain.svc..example.org\r\n      recordTTL: 300\r\n      recordType: A\r\n      targets:\r\n      - 172.168.20.0\r\n      - 192.168.20.0\r\n    - dnsName: test-service.test-namespace.test-domain.svc.example.org\r\n      recordTTL: 300\r\n      recordType: A\r\n      targets:\r\n      - 172.168.20.0\r\n      - 192.168.20.0\r\n  status:\r\n    observedGeneration: 2\r\n```\r\n\r\nHowever, from dns (coredns for external-dns), I can only see 1 ip address.\r\n```\r\n$ kubectl run -it --rm --restart=Never --image=infoblox/dnstools:latest dnstools\r\ndnstools# dig @10.96.63.24 test-service.test-namespace.test-domain.svc.example.org +short\r\n172.168.20.0\r\n```\r\n**Question 1**: is this expected behavior? when the service on a cluster is down, other cluster IP address will be mapped here?\r\n\r\nThen, I unjoin the cluster which has 172.168.20.0 to mimic service down case. I got below information.\r\n```\r\ndnstools# dig @10.96.63.24 test-service.test-namespace.test-domain.svc.example.org +short\r\n192.168.20.0\r\n172.168.20.0\r\n```\r\n\r\n**Question 2**: I guess this is not expected because if a cluster is unjoin, the related IP address should be cleaned. Even I wait more than TTL time, all ip addresses are there.\r\n\r\n@shashidharatd \r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes-sigs/federation-v2/issues/comments/445237330","html_url":"https://github.com/kubernetes-sigs/federation-v2/issues/464#issuecomment-445237330","issue_url":"https://api.github.com/repos/kubernetes-sigs/federation-v2/issues/464","id":445237330,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTIzNzMzMA==","user":{"login":"xunpan","id":42633647,"node_id":"MDQ6VXNlcjQyNjMzNjQ3","avatar_url":"https://avatars3.githubusercontent.com/u/42633647?v=4","gravatar_id":"","url":"https://api.github.com/users/xunpan","html_url":"https://github.com/xunpan","followers_url":"https://api.github.com/users/xunpan/followers","following_url":"https://api.github.com/users/xunpan/following{/other_user}","gists_url":"https://api.github.com/users/xunpan/gists{/gist_id}","starred_url":"https://api.github.com/users/xunpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xunpan/subscriptions","organizations_url":"https://api.github.com/users/xunpan/orgs","repos_url":"https://api.github.com/users/xunpan/repos","events_url":"https://api.github.com/users/xunpan/events{/privacy}","received_events_url":"https://api.github.com/users/xunpan/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T13:46:44Z","updated_at":"2018-12-07T13:46:44Z","author_association":"CONTRIBUTOR","body":"I fixed kubernetes-incubator/external-dns#805 and merged.\r\n\r\nThere is still a new issue logged for obsolete IP address clean up:\r\nhttps://github.com/kubernetes-incubator/external-dns/issues/808.\r\n\r\nI keep this ticket open until external-dns with coredns works correctly."}}
{"actor":{"display_login":"xunpan"}}