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: master and .103 the other nodes I have used to create the cluster kubeadm and I have passed this addiction paramethers_ --api-advertise-address=

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
kube-dns   ClusterIP   <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
Address 1:

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 dial tcp 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 dial tcp 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


        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> read: connection refused

can someone help me?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.