Coder Social home page Coder Social logo

Comments (12)

miekg avatar miekg commented on September 25, 2024

from deployment.

ernoaapa avatar ernoaapa commented on September 25, 2024

Oh sweet, thanks! Need to read more about coredns, looks awesome :)

from deployment.

ernoaapa avatar ernoaapa commented on September 25, 2024

Actually, I have problems with the reload plugin on Kubernetes.
My Corefile is following:

.:53 {
    reload 10s
    errors
    health
    kubernetes cluster.local in-addr.arpa ip6.arpa {
      pods insecure
      upstream
      fallthrough in-addr.arpa ip6.arpa
    }
    prometheus :9153
    proxy . /etc/resolv.conf
    cache 30
}
    }

If I make any change to the config, I get an error:

.:53
CoreDNS-1.1.1
linux/amd64, go1.10, 231c2c0e
2018/04/03 02:18:41 [INFO] CoreDNS-1.1.1
2018/04/03 02:18:41 [INFO] linux/amd64, go1.10, 231c2c0e
2018/04/03 02:18:41 [INFO] Running configuration MD5 = ac8e7f69920f519bce9d3f8ef43b9587
2018/04/03 02:23:34 [INFO] Reloading
2018/04/03 02:23:34 [ERROR] Corefile changed but reload failed: listen tcp :8080: bind: address already in use

from deployment.

chrisohaver avatar chrisohaver commented on September 25, 2024

[ERROR] Corefile changed but reload failed: listen tcp :8080: bind: address already in use

This is an open bug affecting the reload plugin. There are a few open issues in coredns/coredns e.g. coredns/coredns#1604. The same behavior is also seen when sending a SIGUSR1 signal.

from deployment.

chrisohaver avatar chrisohaver commented on September 25, 2024

I think if you disable all plugins that listen on ports (in your case health and prometheus), then graceful reloads would work. But disabling those is not typically practical.

from deployment.

ernoaapa avatar ernoaapa commented on September 25, 2024

Ok, thanks for help.
It’s quite rare that I need to change the configs so deleting pods one by one is good workaround until issue is fixed so I’ll go with that.

from deployment.

johnbelamaric avatar johnbelamaric commented on September 25, 2024

I would like to have the reload plugin enabled by default in the K8s deployment manifest. @chrisohaver @fturib What fixes are still needed in CoreDNS to make that feasible?

from deployment.

chrisohaver avatar chrisohaver commented on September 25, 2024

What fixes are still needed in CoreDNS to make that feasible?

AFAIK: PR coredns/coredns#1621
which aims to resolve coredns/coredns#1604 and coredns/coredns#1618

from deployment.

fturib avatar fturib commented on September 25, 2024

these issues are now resolved.
the fix is in coredns/MAIN and should be is planned to be available on next release 1.1.2

=> need then to update the corefile for K8s when 1.1.2 will be available (all fixes are in, but there is no due date defined) : https://github.com/coredns/coredns/milestone/16

from deployment.

chrisohaver avatar chrisohaver commented on September 25, 2024

The reload plugin is now included in the Corefile created by the deployment tool.

from deployment.

fturib avatar fturib commented on September 25, 2024

@ernoaapa : following comment of @chrisohaver , I guess we can close this issue. Correct ?

from deployment.

ernoaapa avatar ernoaapa commented on September 25, 2024

Sorry, yes this can be closed now

from deployment.

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.