How to update AKS Coredns?

c2_confluent 0 Reputation points
2024-09-11T00:45:31.15+00:00

Hello, I have a quick question how to properly upgrade an AKS CoreDNS deployment.

Current CoreDNS image mcr.microsoft.com/oss/kubernetes/coredns:v1.9.4-hotfix.20240704

I modify the deployment but it keeps getting written when restarting the deployment.

Thank you in advanced!

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

1 answer

Sort by: Most helpful
  1. Mounika Reddy Anumandla 505 Reputation points Microsoft Vendor
    2024-09-24T01:30:54.94+00:00

    Hi c2_confluent,
    Thank you for your patience while we are reviewing your case.

    For scaling down CoreDNS, read https://learn.microsoft.com/en-us/azure/aks/coredns-custom#configure-coredns-pod-scaling on how to leverage configmap to control coredns replica count according to node count.

    For configuring a CoreDNS deployment, check the kubectl -n kube-system get svc -oyaml kube-dns and see the selector used is k8s-app: kube-dns.

    This should be informative enough for a customer with sufficient Kubernetes knowledge to start.

    Again, this is not recommended and not supported. IMO “exact commands” shouldn’t be something we deliver to customer.
    About your question on Update on CoreDNS version: We plan to upgrade coredns to 1.11 for k8s 1.31.

    If you have any further queries, do let us know.

    If the answer is helpful, please click "Accept Answer" and "Upvote it."

    User's image

    1 person found this answer helpful.

Your answer

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