Does adding more IP in Standard load balancer increase SNAT ports in AKS VMSS?

Tanul 1,291 Reputation points
2023-05-31T13:11:53.2933333+00:00

Hello,

If we add 2 ip's as outbound rule in the AKS standard load balancer targeting to same backend pool then does it increase the SNAT ports count to 64k*2.

If yes, can we use 1 default public ip which azure automatically creates and add one more by creating our own.

Please suggest. Thank you.

Kind Regards,

Tanul

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,450 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
506 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andrei Barbu 2,596 Reputation points Microsoft Employee
    2023-05-31T14:15:00.3466667+00:00

    Hello Tanul,

    The previous answer (from Brian kemboi) is not correct.

    Configuring the AKS Standard Load Balancer with more IPs will provide you more SNAT ports. Each IP has 64000 ports.

    This is documented here: https://learn.microsoft.com/en-us/azure/aks/load-balancer-standard#configure-the-allocated-outbound-ports
    "Each IP address provided by a frontend provides 64k ephemeral ports for the load balancer to use as SNAT ports."

    In that documentation you can find examples on how to calculate and also on how to update the number of LB outbound IP count or update the LB with your own IP.

    Hopefully this is what you are looking for! If you have additional questions, please let us know in the comments.

    If this has been helpful, please take a moment to accept answers as this helps increase visibility of this question for other members of the Microsoft Q&A community. Thank you for helping to improve Microsoft Q&A!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.