Hello Rajat,
Based on the information provided, the error you are encountering is related to SNAT port validation in AKS when using the Load Balancer outbound type. In this model, outbound traffic from the cluster uses Source Network Address Translation (SNAT), where each IPv4 public IP provides approximately 64,000 ports. IPv6 traffic is handled separately and does not contribute to the IPv4 SNAT port pool, which is why only IPv4 addresses are considered in this calculation.
AKS validates whether the combination of node count, number of outbound IPv4 IPs, and allocatedOutboundPorts forms a supported configuration using the following relationship:
64,000 × (number of outbound IPv4 IPs) ÷ allocatedOutboundPorts ≥ total nodes (including surge)
The InvalidLoadBalancerProfileAllocatedOutboundPorts error occurs when this condition is not met.
In addition, we note that the error message indicates only one outbound IPv4 IP is being considered. Since multiple IPv4 IPs are configured in your load balancer profile, this is something we would like to validate further to ensure all IPs are being correctly applied at the Load Balancer level.
Could you please check in the Azure portal under the cluster’s Load Balancer → Outbound rules and confirm whether all configured IPv4 public IPs are associated, or if only one is visible?
To move forward, you may consider the following options:
- Add an additional IPv4 public IP to provide sufficient SNAT capacity and headroom
- Reduce allocatedOutboundPorts (for example, to ~3000 or lower) so that the current number of IPs can support the effective node count
- Adjust upgrade strategy by reducing maxSurge or using maxUnavailable to avoid adding temporary nodes during operations
Regarding NAT Gateway, your understanding is correct. IPv6 support requires StandardV2 NAT Gateway, custom IP prefixes are not currently supported, and availability depends on the region.
References: Use a public standard load balancer in Azure Kubernetes Service (AKS)
Use Source Network Address Translation (SNAT) for outbound connections
https://learn.microsoft.com/en-us/azure/nat-gateway/nat-sku
Configure a public standard load balancer in Azure Kubernetes Service (AKS)
Use dual-stack networking in Azure Kubernetes Service (AKS)
InvalidLoadBalancerProfileAllocatedOutboundPorts error when creating or updating an AKS cluster
Hope this helps! Please let me know if you have any queries.
Additionally, could you please check private message and provide the necessary details.