Upgrade AKS node without changing Pods CIDR?

Florin 1 Reputation point
2021-04-06T11:52:18.15+00:00

Hello.

Is there a way to upgrade a cluster without changing the Pods CIDR, or to somehow reset it afterward?
My cluster only has one node, and it had the pod CIDR 10.244.0.0/24. I did an upgrade to change the Kubernetes version, and now it's 10.244.1.0/24. Is there a way to go back to 10.244.0.0/24?

It's important to me because I am using the subnet and the cluster IP as configurations for an external site 2 site VPN and I can't change the remote configurations anytime I need to perform an upgrade.

I read the instructions from here, but I couldn't find a way to solve it.

Thank you

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,821 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 43,001 Reputation points Microsoft Employee
    2021-04-08T09:05:09.383+00:00

    @Florin Thanks for raising this question! Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused. Kindly try the following steps to isolate the issue: If you deploy your cluster using an ARM template you can specify the Pod CIDR value using the podCidr property of the networkProfile ContainerServiceNetworkProfile object For now it's not possible to set that value through Azure Portal.

    If you wish you may leave your feedback here All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.
    Also, I see you have posted similar query in SO forum, If you still have any question I will be happy to assist you and work closer on this issue.

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.