Skip to main content

Can we use NodeLocal DNSCache persistently?

Syself support For release

No. NodeLocal DNSCache with Cilium needs Cilium's Local Redirect Policy, and that feature is turned off in the Cilium configuration that Syself ships and tests with the Cluster Stack. If you turn it on by hand, the next update turns it off again. Changing the Cilium configuration outside what the docs describe can also break the cluster, so it is not supported. What you can change is listed in Can we change the bundled Cilium configuration?

Syself Autopilot scales CoreDNS for you. An autoscaler adds CoreDNS replicas as the cluster gains nodes and cores, and keeps at least two replicas on a cluster with more than one node. The replica count and the Corefile are managed, so a manual change is overwritten.

If DNS lookups are slow, look at the lookups first. Kubernetes tries a name with fewer than five dots against each search domain before it sends the name as written. For external names, add a trailing dot (api.example.com.) or lower ndots in the pod's dnsConfig. To use your own upstream resolvers, set the dnsServers cluster variable, which you find in the Cluster Configurator.

For scaling, ndots and upstream resolvers, read Understand in-cluster DNS (CoreDNS). If you have a special use case that needs NodeLocal DNSCache, reach out to us at support@syself.com⁠.

Still stuck?

Prepare your case, then email us.