Skip to content

[BUG] Cannot update cluster from kubenet to Azure CNI Overlay #5662

@benjaminxie02

Description

@benjaminxie02

Describe the bug
I am following the docs at
https://learn.microsoft.com/en-us/azure/aks/update-azure-cni?tabs=kubenet
which gives the a command to migrate an existing cluster from kubenet to Azure CNI Overlay. When I run it, I get an error.

To Reproduce
Steps to reproduce the behavior:

  1. Run
az aks update \
  --name $CLUSTER_NAME \
  --resource-group $RESOURCE_GROUP \
  --pod-cidr 10.250.0.0/16 \
  --network-plugin azure \
  --network-plugin-mode overlay
  1. See error
(UnsupportedNetworkpluginModeWithNetworkplugin) NetworkpluginMode overlay is not supported with Networkplugin kubenet.
Code: UnsupportedNetworkPluginModeWithNetworkPlugin
Message: NetworkPluginMode overlay is not supported with NetworkPLugin kubenet.
Target: networkProfile.networkpluginMode

Expected behavior
I expect my cluster's network configuration to become Azure CNI Overlay and the pod CIDR to be what I set it to.

Environment:

  • CLI Version [e.g. 2.84]
  • Kubernetes version [e.g. 1.33.5]

Additional context
Network policy engine: none

Using custom VNet

Did not create a user-assigned managed identity on the cluster to detach the route table from the VNet however, this error does not seem related to that.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions