Skip to content
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

Provide support for nodelocal DNSCache #1466

Merged
merged 1 commit into from Jul 30, 2021

Conversation

manuelbuil
Copy link
Contributor

Provide support for nodelocal DNSCache

Linked issue: #1024

Signed-off-by: Manuel Buil mbuil@suse.com

@manuelbuil manuelbuil force-pushed the coreDNS_nodeLocal branch 2 times, most recently from ccdb681 to 4501ed3 Compare July 27, 2021 18:18
@@ -18,6 +18,12 @@ If you don't install CoreDNS, you will need to install a cluster DNS provider yo

CoreDNS is deployed with the [autoscaler](https://github.com/kubernetes-incubator/cluster-proportional-autoscaler) by default. To disable it or change its config, use the [HelmChartConfig](https://docs.rke2.io/helm/#customizing-packaged-components-with-helmchartconfig) resource.

### NodeLocal DNSCache

[NodeLocal DNSCache](https://kubernetes.io/docs/tasks/administer-cluster/nodelocaldns/) improves the performance by running a dns caching agent on each node. It is possible to activate this feature by using HelmChartConfig and updating the value `.Values.nodelocal.enabled` as can be seen in its [Chart](https://github.com/rancher/rke2-charts/blob/main/charts/rke2-coredns/rke2-coredns/1.16.201-build2021072302/values.yaml#L305-L311). The helm controller will redeploy coredns with the new config. Please be aware that nodelocal modifies the iptables of the node to intercept DNS traffic. Therefore, activating and then deactivating this feature without redeploying, will cause the DNS service to stop working.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than linking to the values file, can you provide an example HelmChartConfig manifest to do this, similar to the one at https://github.com/rancher/rke2/blob/master/docs/helm.md#customizing-packaged-components-with-helmchartconfig

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, makes more sense. They user will appreciate that more

@manuelbuil manuelbuil force-pushed the coreDNS_nodeLocal branch 5 times, most recently from 570a846 to ce148e7 Compare July 29, 2021 11:36
Signed-off-by: Manuel Buil <mbuil@suse.com>
@manuelbuil manuelbuil merged commit 01b2a1b into rancher:master Jul 30, 2021
@manuelbuil manuelbuil deleted the coreDNS_nodeLocal branch August 10, 2021 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants