AzureKubernetesEnvironmentResource.addLoadBalancer
Method
interface AzureKubernetesEnvironmentResource { // ... omitted for brevity addLoadBalancer( name: string, subnet: AzureSubnetResource): AzureKubernetesLoadBalancerResource;}Signature
method
addLoadBalancer builderAdds an Azure Application Gateway for Containers (AGC) `ApplicationLoadBalancer` to this AKS environment, bound to the supplied delegated subnet. Returns a resource builder that can be passed to `gateway.WithLoadBalancer(lb)` / `ingress.WithLoadBalancer(lb)` to route traffic through this load balancer.
addLoadBalancer( name: string, subnet: AzureSubnetResource): AzureKubernetesLoadBalancerResourceParameters
namestringThe name of the load balancer resource. Used to derive the in-cluster `ApplicationLoadBalancer` name (`alb-{name}`) referenced by gateway/ingress annotations.subnetAzureSubnetResource A subnet that will be associated with the AGC ALB. The subnet is automatically delegated to `Microsoft.ServiceNetworking/trafficControllers`; this is required by AGC and is idempotent across multiple `AddLoadBalancer` calls against the same subnet.Returns
AzureKubernetesLoadBalancerResource Defined on
This method is defined on the following type: