diff --git a/pkg/providers/subnet/subnet.go b/pkg/providers/subnet/subnet.go index 564cbe7788f9..c50d529ba4e1 100644 --- a/pkg/providers/subnet/subnet.go +++ b/pkg/providers/subnet/subnet.go @@ -130,7 +130,10 @@ func (p *Provider) ZonalSubnetsForLaunch(ctx context.Context, nodeClass *v1beta1 if ips, ok := p.inflightIPs[*subnets[j].SubnetId]; ok { jIPs = ips } - return iIPs < jIPs + if iIPs != jIPs { + return iIPs < jIPs + } + return *subnets[i].SubnetId < *subnets[j].SubnetId }) for _, subnet := range subnets { zonalSubnets[*subnet.AvailabilityZone] = subnet