'Increase Max pods per node with advanced networking on AKS

we have created our Kubernetes cluster with Advanced Networking via the Azure Management UI.

Some time later we've run into the limitation of pods per node described here:

https://docs.microsoft.com/fi-fi/azure/aks/container-service-quotas

We need to change the limitation of 30 pods per node as it is very incomprehensible one for us. Before the advanced networking was possible at all, there was no such limitation and it was also undocumented at the moment, we've created the cluster. Could someone help, how to do change the max pods amount without recreation the whole cluster?

Regards, Gena



Solution 1:[1]

You cannot change the max number of pods per node on an existing cluster

https://docs.microsoft.com/fi-fi/azure/aks/networking-overview#configure-maximum---existing-clusters

You will need to redeploy a new cluster and specify the new max number during provisioning.

Solution 2:[2]

Late to the party, but with different solution. As of June 2021 there is no need to redeploy the cluster - we can add a new node pool with required pods to node ratio.

The dialog box allows us to set new values and then we can use node labels to redirect pods or just shut down previous pool.

New node configuration

Solution 3:[3]

You can create a new nodepool and set max-pods:

az aks nodepool add --name mypool --node-vm-size Standard_E4s_v3 --node-count 1 -g AKS-resource-name --cluster-name cluster-name --max-pods 100

https://docs.microsoft.com/en-us/cli/azure/aks/nodepool?view=azure-cli-latest

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Micah_MSFT
Solution 2 profesor79
Solution 3 Ricardo Cardona Ramirez