{"action":"created","issue":{"url":"https://api.github.com/repos/kelseyhightower/kubernetes-the-hard-way/issues/421","repository_url":"https://api.github.com/repos/kelseyhightower/kubernetes-the-hard-way","labels_url":"https://api.github.com/repos/kelseyhightower/kubernetes-the-hard-way/issues/421/labels{/name}","comments_url":"https://api.github.com/repos/kelseyhightower/kubernetes-the-hard-way/issues/421/comments","events_url":"https://api.github.com/repos/kelseyhightower/kubernetes-the-hard-way/issues/421/events","html_url":"https://github.com/kelseyhightower/kubernetes-the-hard-way/issues/421","id":385264559,"node_id":"MDU6SXNzdWUzODUyNjQ1NTk=","number":421,"title":"DNS not working in pods and base nodes","user":{"login":"aditya7002","id":45426410,"node_id":"MDQ6VXNlcjQ1NDI2NDEw","avatar_url":"https://avatars0.githubusercontent.com/u/45426410?v=4","gravatar_id":"","url":"https://api.github.com/users/aditya7002","html_url":"https://github.com/aditya7002","followers_url":"https://api.github.com/users/aditya7002/followers","following_url":"https://api.github.com/users/aditya7002/following{/other_user}","gists_url":"https://api.github.com/users/aditya7002/gists{/gist_id}","starred_url":"https://api.github.com/users/aditya7002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aditya7002/subscriptions","organizations_url":"https://api.github.com/users/aditya7002/orgs","repos_url":"https://api.github.com/users/aditya7002/repos","events_url":"https://api.github.com/users/aditya7002/events{/privacy}","received_events_url":"https://api.github.com/users/aditya7002/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-28T13:20:05Z","updated_at":"2018-11-28T15:10:50Z","closed_at":null,"author_association":"NONE","body":"Hello ,\r\n\r\nI have a Kubernetes cluster with one master node and two slave nodes . All master and slave nodes are in CentOS 7. I have deployed eureka on the cluster with only one instance or replica. I want to access the eureka service using its DNS name. When I query the DNS from the master server , I get the response as ----\r\n\r\n[root@kubernetus ~]# nslookup eureka-server.default.svc.cluster.local 10.96.0.10\r\nServer:         10.96.0.10\r\nAddress:        10.96.0.10#53\r\n\r\nName:   eureka-server.default.svc.cluster.local\r\nAddress: 10.106.146.187\r\n\r\nBut when I issue this command from the shell of a centos 7 base image pod , I get the response as ----\r\n\r\n[root@centos7-97d59467-f7wbp /]# nslookup eureka-server.default.svc.cluster.local 10.96.0.10\r\n;; connection timed out; no servers could be reached\r\n\r\nFollowing is my centos pod resolv.conf ---->\r\n\r\n[root@centos7-97d59467-f7wbp /]# cat /etc/resolv.conf\r\nnameserver 10.96.0.10\r\nsearch default.svc.cluster.local svc.cluster.local cluster.local\r\noptions ndots:5\r\n\r\nI have created this cluster using flannel. Similar DNS response as above can also be found when I execute it from any of the slave nodes (including the node on which the eureka pod is hosted) \r\n\r\n[root@kubernetus2 bridge]# nslookup eureka-server.default.svc.cluster.local 10.96.0.10\r\n;; connection timed out; no servers could be reached\r\n\r\n\r\nCan anybody help me in this issue ?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kelseyhightower/kubernetes-the-hard-way/issues/comments/442480785","html_url":"https://github.com/kelseyhightower/kubernetes-the-hard-way/issues/421#issuecomment-442480785","issue_url":"https://api.github.com/repos/kelseyhightower/kubernetes-the-hard-way/issues/421","id":442480785,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjQ4MDc4NQ==","user":{"login":"bserdar","id":3670797,"node_id":"MDQ6VXNlcjM2NzA3OTc=","avatar_url":"https://avatars2.githubusercontent.com/u/3670797?v=4","gravatar_id":"","url":"https://api.github.com/users/bserdar","html_url":"https://github.com/bserdar","followers_url":"https://api.github.com/users/bserdar/followers","following_url":"https://api.github.com/users/bserdar/following{/other_user}","gists_url":"https://api.github.com/users/bserdar/gists{/gist_id}","starred_url":"https://api.github.com/users/bserdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bserdar/subscriptions","organizations_url":"https://api.github.com/users/bserdar/orgs","repos_url":"https://api.github.com/users/bserdar/repos","events_url":"https://api.github.com/users/bserdar/events{/privacy}","received_events_url":"https://api.github.com/users/bserdar/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T15:10:50Z","updated_at":"2018-11-28T15:10:50Z","author_association":"NONE","body":"I had the same problem when I went through this tutorial using Centos 7. I ended up using kube-router for networking:\r\n\r\nhttps://github.com/bserdar/kubernetes-the-hard-way"}}
{"actor":{"display_login":"bserdar"}}