An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
Hello Praveen Karape,
When using the default AKS DNS add-on, AKS regularly reconciles and enforces the original configuration. This means any direct modifications to the CoreDNS config will be overwritten unless you disable the managed DNS add-on. To apply a persistent override, you have two options-
- Disable AKS-managed DNS to prevent it from reverting custom CoreDNS changes. This may require checking if your cluster version supports this feature via the az aks update command.
- Alternatively you can deploy your own self-managed CoreDNS instance within the cluster and configure your workloads to use it explicitly by setting dnsPolicy: None and defining dnsConfig to route queries through your custom resolver.
The intermittent DNS failures you're seeing could be due to transient Azure DNS availability issues, which are rare but can impact critical workloads if there's no fallback.
For more details please check this MS document- https://learn.microsoft.com/en-us/azure/aks/coredns-custom
