SOLVED

Resizing a subnet for AKS

Brass Contributor

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!
2 Replies
best response confirmed by mgfeal (Brass Contributor)
We have been investigating and it is impossible to do the resizing. Although the option appears from the console, as soon as you try to apply the change it indicates that it cannot be done since the subnet is in use.
1 best response

Accepted Solutions
best response confirmed by mgfeal (Brass Contributor)