GithubHelp home page GithubHelp logo

KubeDNS consistently dies about dns HOT 5 CLOSED

RaasAhsan avatar RaasAhsan commented on July 16, 2024 1
KubeDNS consistently dies

from dns.

Comments (5)

bowei avatar bowei commented on July 16, 2024

This sounds like an issue with flannel connectivity.

kube-dns runs a set of health checks to both dnsmasq and the kube-dns component. If these health checks fail repeatedly, then the pod will be restarted. What I would do is run tcpdump and netcat to see if your packets are being delivered properly.

Regarding the SIGKILL, the behavior is to enable a graceful termination of the DNS service. When the pod is being torn-down, the service is first removed from the cluster IP VIP and sent a SIGTERM, then after the graceful termination period, a SIGKILL is sent.

from dns.

RaasAhsan avatar RaasAhsan commented on July 16, 2024

It does seem like there's an issue with flannel. When KubeDNS starts on a non-master node, it can't hit the apiserver, which explains my first problem. I'll try to get that fixed up first, and see if that resolves the second problem.

from dns.

RaasAhsan avatar RaasAhsan commented on July 16, 2024

So it seems like pods without host networking can communicate fine across the overlay network, but pods on worker machines can't hit pods that run use hostNetwork on the master. I'll just force the kubedns pod to run on the master for now until I can figure something else out.

Since kubedns is a critical service, I'll eventually have to figure out why it isn't working.

from dns.

RaasAhsan avatar RaasAhsan commented on July 16, 2024

I managed to find kubernetes-sigs/kubespray#258 and setting advertise-address on the kube-apiserver fixed the problem where a pod on the node couldn't hit the apiserver on the master.

Its still failing health checks, so I'll get to fixing that.

from dns.

RaasAhsan avatar RaasAhsan commented on July 16, 2024

Well, I figured out the second problem. The liveness health check for the kubedns pod is executed on a port that's exposed for sidecar. I had commented out the sidecar container when I was trying to debug the first problem. So the request was timing out and that's why it was consistently being restarted. Thanks for the help!

from dns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.