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
Conversation
cae8374
to
c96a7ca
Compare
ccdb681
to
4501ed3
Compare
docs/networking.md
Outdated
@@ -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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
570a846
to
ce148e7
Compare
ce148e7
to
3f5d60e
Compare
Signed-off-by: Manuel Buil <mbuil@suse.com>
3f5d60e
to
64966ae
Compare
Provide support for nodelocal DNSCache
Linked issue: #1024
Signed-off-by: Manuel Buil mbuil@suse.com