AzureKubernetesLoadBalancerResource
ApplicationLoadBalancer Kubernetes custom resource ( alb.networking.azure.io/v1 ) bound to a delegated subnet. namespace Aspire.Hosting.Azure.Kubernetes;
public sealed class AzureKubernetesLoadBalancerResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithParent, Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.Azure.Kubernetes.AzureKubernetesEnvironmentResource>{ // ...}Remarks
Section titled Remarks Each AGC Application is capped at 5 frontends, so larger applications create multiple load balancer resources via repeated calls to Azure and associate gateways/ingresses with a specific load balancer using Azure.
The resource registers a per-LB apply- pipeline step that runs after AKS credentials are fetched and before Helm chart preparation. The step polls the cluster for the azure- GatewayClass (installed by the AGC ALB controller add-on), then kubectl apply s the Application custom resource pointing at the supplied subnet.
Properties1
Section titled PropertiesParentgetAzureKubernetesEnvironmentResource .