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:
- 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
- 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.
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:
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:
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.