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

Tanul 1,251 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 (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,965 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
421 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andrei Barbu 2,581 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://video2.skills-academy.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!