question

Florin-7770 avatar image
0 Votes"
Florin-7770 asked Florin-7770 commented

Upgrade AKS node without changing Pods CIDR?

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered Florin-7770 commented

@Florin-7770 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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Sumarigo-MSFT Thank you for your response. I am using terraform and I already had pod_cidr set in there, but for some reason, it still got incremented when I upgraded the Kubernetes version.


Best regards

0 Votes 0 ·