NodeLocal DNSCache is a cluster plugin that improves cluster DNS performance by running a DNS caching proxy on cluster nodes. This plugin reduces DNS query latency and improves cluster stability by caching DNS responses locally on each node, minimizing the load on the central DNS service.
Deployment Considerations:
Kube-OVN Underlay Mode: The plugin does not support deployment in Kube-OVN Underlay mode. If deployed, it may cause DNS query failures.
Kubelet Restart: Deploying this plugin will cause the kubelet to restart.
Pod Restart Required: After the plugin is successfully deployed, it will not affect running Pods, but will only take effect on newly created Pods. When the CNI is Kube-OVN, you need to manually add the parameter "--node-local-dns-ip=(IP address of the local DNS cache server)" to the kube-ovn-controller.
NetworkPolicy Configuration: If NetworkPolicy is configured in the cluster, you need to additionally allow both from and to directions for the node CIDR and nodeLocalDNSIP in the networkPolicy to ensure proper communication.
Navigate to Administrator > Marketplace > Cluster Plugins.
Search for "Alauda Build of NodeLocal DNSCache" in the plugin list.
Click Install to open the installation configuration page.
Configure the required parameters:
Parameter | Description | Example Value |
---|---|---|
IP | The IP address of the node local DNS cache server. For IPv4, it is recommended to use an address within the 169.254.0.0/16 range, preferably 169.254.20.10. For IPv6, it is recommended to use an address within the fd00::/8 range, preferably fd00::10. | 169.254.20.10 |
Review the deployment notes and ensure your environment meets the requirements.
Click Install to complete the installation.
Wait for the plugin status to change to "Ready".
Important: If your cluster has NetworkPolicy enabled, you must configure proper rules to allow DNS traffic to the NodeLocal DNSCache. Without these rules, pods may not be able to resolve DNS queries.
When using NetworkPolicy, ensure the following DNS traffic is allowed: