Can't use the resolution by name with kube-dns

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm on a kubernetes cluster with 3 nodes that are all VM and they use to communicate a bridge that is an Only-Host interface:
192.168.99.101 master
192.168.99.102 and .103 the other nodes I have used to create the cluster kubeadm and I have passed this addiction paramethers_ --api-advertise-address=192.168.99.101



Now, if I use them in my application the IP of the services that connect me to a deploy it works fine, but if I try to use the name of the same services I can't find it(but I see that:



kubectl get svc -n kube-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kube-dns ClusterIP 10.96.0.10 <none> 53/UDP,53/TCP 57m


i use this guide to solve and i have find that errors but i don't knwo how to solve:



vmmaster@vmmaster-VirtualBox:~/Documenti/Tesi/NFS$ kubectl exec -ti busybox -- nslookup kubernetes.default
Server: 10.96.0.10
Address 1: 10.96.0.10

nslookup: can't resolve 'kubernetes.default'
command terminated with exit code 1


i have follow the next step, i copy only the things with logs W F and E because they are the erro logs:



 kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c kubedns
E0516 15:55:28.781740 1 reflector.go:201] k8s.io/dns/pkg/dns/dns.go:150: Failed to list *v1.Service: Get https://10.96.0.1:443/api/v1/services?resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout
E0516 15:55:28.782057 1 reflector.go:201] k8s.io/dns/pkg/dns/dns.go:147: Failed to list *v1.Endpoints: Get https://10.96.0.1:443/api/v1/endpoints?resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout

kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c dnsmasq
W0516 15:54:59.341790 1 nanny.go:120] Got EOF from stdout


and:



 kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c sidecar
W0516 15:54:59.233531 1 server.go:64] Error getting metrics from dnsmasq: read udp 127.0.0.1:54118->127.0.0.1:53: read: connection refused


can someone help me?







share|improve this question

























    up vote
    0
    down vote

    favorite












    I'm on a kubernetes cluster with 3 nodes that are all VM and they use to communicate a bridge that is an Only-Host interface:
    192.168.99.101 master
    192.168.99.102 and .103 the other nodes I have used to create the cluster kubeadm and I have passed this addiction paramethers_ --api-advertise-address=192.168.99.101



    Now, if I use them in my application the IP of the services that connect me to a deploy it works fine, but if I try to use the name of the same services I can't find it(but I see that:



    kubectl get svc -n kube-system
    NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
    kube-dns ClusterIP 10.96.0.10 <none> 53/UDP,53/TCP 57m


    i use this guide to solve and i have find that errors but i don't knwo how to solve:



    vmmaster@vmmaster-VirtualBox:~/Documenti/Tesi/NFS$ kubectl exec -ti busybox -- nslookup kubernetes.default
    Server: 10.96.0.10
    Address 1: 10.96.0.10

    nslookup: can't resolve 'kubernetes.default'
    command terminated with exit code 1


    i have follow the next step, i copy only the things with logs W F and E because they are the erro logs:



     kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c kubedns
    E0516 15:55:28.781740 1 reflector.go:201] k8s.io/dns/pkg/dns/dns.go:150: Failed to list *v1.Service: Get https://10.96.0.1:443/api/v1/services?resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout
    E0516 15:55:28.782057 1 reflector.go:201] k8s.io/dns/pkg/dns/dns.go:147: Failed to list *v1.Endpoints: Get https://10.96.0.1:443/api/v1/endpoints?resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout

    kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c dnsmasq
    W0516 15:54:59.341790 1 nanny.go:120] Got EOF from stdout


    and:



     kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c sidecar
    W0516 15:54:59.233531 1 server.go:64] Error getting metrics from dnsmasq: read udp 127.0.0.1:54118->127.0.0.1:53: read: connection refused


    can someone help me?







    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm on a kubernetes cluster with 3 nodes that are all VM and they use to communicate a bridge that is an Only-Host interface:
      192.168.99.101 master
      192.168.99.102 and .103 the other nodes I have used to create the cluster kubeadm and I have passed this addiction paramethers_ --api-advertise-address=192.168.99.101



      Now, if I use them in my application the IP of the services that connect me to a deploy it works fine, but if I try to use the name of the same services I can't find it(but I see that:



      kubectl get svc -n kube-system
      NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
      kube-dns ClusterIP 10.96.0.10 <none> 53/UDP,53/TCP 57m


      i use this guide to solve and i have find that errors but i don't knwo how to solve:



      vmmaster@vmmaster-VirtualBox:~/Documenti/Tesi/NFS$ kubectl exec -ti busybox -- nslookup kubernetes.default
      Server: 10.96.0.10
      Address 1: 10.96.0.10

      nslookup: can't resolve 'kubernetes.default'
      command terminated with exit code 1


      i have follow the next step, i copy only the things with logs W F and E because they are the erro logs:



       kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c kubedns
      E0516 15:55:28.781740 1 reflector.go:201] k8s.io/dns/pkg/dns/dns.go:150: Failed to list *v1.Service: Get https://10.96.0.1:443/api/v1/services?resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout
      E0516 15:55:28.782057 1 reflector.go:201] k8s.io/dns/pkg/dns/dns.go:147: Failed to list *v1.Endpoints: Get https://10.96.0.1:443/api/v1/endpoints?resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout

      kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c dnsmasq
      W0516 15:54:59.341790 1 nanny.go:120] Got EOF from stdout


      and:



       kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c sidecar
      W0516 15:54:59.233531 1 server.go:64] Error getting metrics from dnsmasq: read udp 127.0.0.1:54118->127.0.0.1:53: read: connection refused


      can someone help me?







      share|improve this question













      I'm on a kubernetes cluster with 3 nodes that are all VM and they use to communicate a bridge that is an Only-Host interface:
      192.168.99.101 master
      192.168.99.102 and .103 the other nodes I have used to create the cluster kubeadm and I have passed this addiction paramethers_ --api-advertise-address=192.168.99.101



      Now, if I use them in my application the IP of the services that connect me to a deploy it works fine, but if I try to use the name of the same services I can't find it(but I see that:



      kubectl get svc -n kube-system
      NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
      kube-dns ClusterIP 10.96.0.10 <none> 53/UDP,53/TCP 57m


      i use this guide to solve and i have find that errors but i don't knwo how to solve:



      vmmaster@vmmaster-VirtualBox:~/Documenti/Tesi/NFS$ kubectl exec -ti busybox -- nslookup kubernetes.default
      Server: 10.96.0.10
      Address 1: 10.96.0.10

      nslookup: can't resolve 'kubernetes.default'
      command terminated with exit code 1


      i have follow the next step, i copy only the things with logs W F and E because they are the erro logs:



       kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c kubedns
      E0516 15:55:28.781740 1 reflector.go:201] k8s.io/dns/pkg/dns/dns.go:150: Failed to list *v1.Service: Get https://10.96.0.1:443/api/v1/services?resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout
      E0516 15:55:28.782057 1 reflector.go:201] k8s.io/dns/pkg/dns/dns.go:147: Failed to list *v1.Endpoints: Get https://10.96.0.1:443/api/v1/endpoints?resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout

      kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c dnsmasq
      W0516 15:54:59.341790 1 nanny.go:120] Got EOF from stdout


      and:



       kubectl logs --namespace=kube-system $(kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o name) -c sidecar
      W0516 15:54:59.233531 1 server.go:64] Error getting metrics from dnsmasq: read udp 127.0.0.1:54118->127.0.0.1:53: read: connection refused


      can someone help me?









      share|improve this question












      share|improve this question




      share|improve this question








      edited May 16 at 20:10









      SivaPrasath

      4,74212445




      4,74212445









      asked May 16 at 19:34









      Cristian Monti

      12




      12

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444235%2fcant-use-the-resolution-by-name-with-kube-dns%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444235%2fcant-use-the-resolution-by-name-with-kube-dns%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay