-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CoreDNS currently only supports Deployment mode, but would you consider supporting Daemonset mode as well #86
Comments
I am not sure which is better between CoreDNS DaemonSet vs CoreDNS and nodelocaldns configuration in terms of advantages. |
Running CoreDNS as a daemonset isn't a use case we currently support in this chart. If you're looking for DNS caching or performance gains, nodelocaldns + CoreDNS is a better approach (see the docs) |
@hagaibarel can you please elaborate why nodelocaldns + CoreDNS is a better approach? |
Nodelocal DNS instances are lighter weight and less resource intensive because they don't maintain a k8s API connection. |
@chrisohaver looking at our production coredns pods (with DNS autoscaling), the memory footprint of each is on average 20MB which is pretty insignificant. |
@chrisohaver @hagaibarel can we reopen the issue? |
Hi @dudicoco, I have yet to see a compelling argument why we should support this model in this chart. My initial arguments are still valid IMO:
Given that, I don't see a reason to reopen this issue |
There's an ongoing discussion in the upstream in an issue that i've opened: kubernetes/dns#594 Once conclusions were made there i'll update this issue with the information. |
From the requested rejected MR:
This is now supported and works great: https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/
Furthermore internalTrafficPolicy: Local is also now available. This makes it much simpler to deploy CoreDNS as a DS. For me the benefits are:
|
I'd like to open the ticket. The use case is very simple:
So I would be happy to have daemonset which will scale up/down according to control plane nodes count. And schedule coredns only to them (by nodeselector). |
@vaskozl thanks for the clarification, totally agree. I think we need to elaborate on the issue and re-open it. I think that the PR would be almost trivial. And yes - for the reverse compatibility - there will be a flag |
any progress on this matter? |
This has been discussed in the past and rejected, we don't currently have intention to support a daemonset model for this chart. For those looking into running node local dns, please check the offcical docs - https://kubernetes.io/docs/tasks/administer-cluster/nodelocaldns/ |
CoreDNS itself consumes only a small amount of resources, depending on the environment. By using DaemonSet, the following benefits can be expected:
The text was updated successfully, but these errors were encountered: