Can I migrate my AKS cluster from Kubenet to Overlay network plugin without recreating the cluster?

HarshadbhaiKothiyaMeetkumar-1376 0 Reputation points
2025-11-04T13:32:17.3033333+00:00

I have an existing AKS cluster that uses Kubenet as the network plugin. I’m considering migrating to the Overlay network plugin for better IP management and scalability.

  • Is it possible to switch from Kubenet to Overlay without deleting and recreating the cluster?
  • If yes, what steps or considerations should I keep in mind during migration?
  • Are there any limitations, downtime, or risks involved?

Any official documentation links would be greatly appreciated!

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. Arko 4,165 Reputation points Microsoft External Staff Moderator
    2025-11-06T09:43:29.61+00:00

    Hello Harshadbhai, Kothiya Meetkumar,

    Thank you for posting your query on the Microsoft Q&A platform. Unfortunately, if your cluster is currently using the kubenet networking plugin, there is no fully supported path to flip to Azure CNI Overlay via a simple CLI update (like az aks update) without recreating or migrating the cluster. The official document states that you can update an existing Azure CNI cluster to Overlay mode, given certain prerequisites (Kubernetes version 1.22+, no network policies enabled, etc). But the GitHub issue confirms that clusters using kubenet do not have a supported migration path to Overlay mode today: “Today you cannot migrate Kubenet to Azure CNI overlay. A new cluster is required.”

    So, in your case the safe and supported recommendation is to create a new AKS cluster with Azure CNI Overlay mode and migrate workloads rather than expecting to update the existing one. But if you still want to proceed with the migration then first decide on the pod CIDR for your overlay cluster. The overlay model requires a private CIDR that does not overlap with your node subnets, VNet peerings, on-prem networks, review your ingress, egress, IP restrictions, node-pools, network policies and last but not least evaluate the downtime tolerances in your scenario.

    However, since your cluster uses kubenet, the safe path is to build a new cluster with Azure CNI Overlay and migrate your workloads. Kindly checkout these documents for your ease.

    https://learn.microsoft.com/en-us/azure/aks/azure-cni-overlay?tabs=kubectl
    https://learn.microsoft.com/en-us/azure/aks/upgrade-azure-cni?tabs=azure-cni
    https://learn.microsoft.com/en-us/azure/aks/concepts-network-legacy-cni

    If you found this information helpful, please consider accepting the answer and upvoting it.

    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.