DNS resolution inside AKS pods

Subin Sabu 40 Reputation points
2024-10-30T10:31:24.4633333+00:00

Hi, I have multiple AKS running and recently one of my cluster is having issue DNS resolution issue. First I encountered the issue when cert-manager inside my cluster wasn't able to auto renew the certificate. I added dnsconfig to the certmanager with address of google and cloudflare and cert-manager is working fine. But still my other pods can't resolve DNS. curl on my website is giving me curl: (6) Could not resolve host:. I have my core-dns up and running. I tried curl through the core-dns service ip, pod ip etc. While everything is working fine for my other AKS clusters. I saw somewhere that service principal credential expiration can cause issues. My cluster is using msi and secret is expired indeed. I am not sure about the credential reset of msi.

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 28,481 Reputation points Microsoft Employee Moderator
    2024-11-06T17:40:02.9566667+00:00

    Hello @Subin Sabu

    The main functionality of Managed Service Identity- MSI (AKA Managed identity) is to manage a service principal and its credentials. One of the goals of the management is that. customer never need to worry about refreshing credentials. so, technically user doesn’t reset MSI credentials.

     What you described here looks like a networking problem, please follow the AKS troubleshooting guide https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/connectivity/troubleshoot-dns-failure-from-pod-but-not-from-worker-node. I’d recommend opening support case to take a finer look if this doesn't help to locate the problem. If you don't have an active support plan, let me know I can help in enabling one time free support.

    If I have answered your question, please accept this as answer as a token of appreciation.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.