Forum Discussion

mgfeal's avatar
mgfeal
Brass Contributor
Apr 13, 2023

Resizing a subnet for AKS

Hi,

When the infrastructure for our Azure platform was created, a virtual network was created with a 10.35.0.0/16 network. There is a single subnet inside that is 10.35.0.0/16. This virtual network is used by our Production AKS, so the pods are assigned IPs in that subnet.


We need to resize this subnet. In principle, it's simple, just a matter of changing it in the console and creating two subnets, for example 10.35.0.0/17 and another 10.35.128.0/17.


The problem is: What happens with the AKS when the change is made? There aren't too many IPs assigned to the pods, so they would be in the 10.35.0.0/17. The gateway may still be the same, but not the subnet mask. Will it continue to work or will it probably be necessary, after changing the subnet, to restart the entire AKS platform so that the pods pick up the IPs from the new subnet?


Thanks!

Resources