NodeLocal DNS reduces DNS query workload by running a cache on each node in a Managed Service for Kubernetes cluster. This improves cluster performance and fault tolerance.
-
Configure the application:
-
Namespace: Select the
kube-system
namespace. -
Application name: Specify the app name.
-
Internal IP address of the kube-dns service: Address for accessing NodeLocal DNS Cache. Requests sent from application pods to the address in the field are routed to local DNS using the
iptables
rules.The field contains the
ClusterIP
address ofkube-dns
in thekube-system
namespace. You can get the value of the field using the following command:kubectl get svc kube-dns -n kube-system -o jsonpath={.spec.clusterIP}
Since Yandex Cloud adds the
kube-dns
service when creating the cluster, IP address of the service is pre-defined. Therefore, you cannot change it in the kube-dns internal IP address field. -
Work with Cilium: Select this option if a cluster uses the Cilium network policy controller.
-
-
Click Install.
-
Wait for the application to change its status to
Deployed
.
After installing NodeLocal DNS, use the following values:
- Kubernetes cluster zone:
cluster.local
. - Адрес NodeLocal DNS Cache:
169.254.20.10
. - Application port for external queries:
53
. - Port for collecting metrics in Prometheus format:
9253
.
You can learn more about setting up local DNS caching in the Managed Service for Kubernetes documentation.
- Caching queries from applications hosted on a Managed Service for Kubernetes cluster node.
Yandex Cloud technical support is available 24/7. The types of requests you can submit and the appropriate response time depend on your pricing plan. You can switch to the paid support plan in the management console. You can learn more about the technical support terms here.
Helm chart | Version | Pull-command | Documentation |
---|---|---|---|
yandex-cloud/node-local-dns | 1.5.1 | Open |
Docker image | Version | Pull-command |
---|---|---|
k8s.gcr.io/dns/k8s-dns-node-cache1714741647564942266299136631087369810929585021518 | 1.23.0 |