AzureKubernetesIngressExtensions
Classstaticnet8.0
Provides extension methods for adding Kubernetes Ingress and Gateway resources to AKS environments.
namespace Aspire.Hosting;
public static class AzureKubernetesIngressExtensions{ // ...}5 members
Methods5
Section titled MethodsAddGateway(IResourceBuilder<AzureKubernetesEnvironmentResource>, string)extensionats exportIResourceBuilder<KubernetesGatewayResource> Adds a Kubernetes Gateway API Gateway resource to the application model, associated with the inner Kubernetes environment of the specified AKS environment.
AddHelmChart(IResourceBuilder<AzureKubernetesEnvironmentResource>, string, string, string)extensionats exportIResourceBuilder<KubernetesHelmChartResource> Adds an external Helm chart to be installed in the AKS environment's inner Kubernetes environment. The chart is installed via
helm upgrade --install as a pipeline step after the main application Helm chart is deployed. AddIngress(IResourceBuilder<AzureKubernetesEnvironmentResource>, string)extensionats exportIResourceBuilder<KubernetesIngressResource> Adds a Kubernetes Ingress resource to the application model, associated with the inner Kubernetes environment of the specified AKS environment. The ingress generates a
networking.k8s.io/v1 Ingress resource in the Helm chart output at publish time. WithLoadBalancer(IResourceBuilder<KubernetesGatewayResource>, IResourceBuilder<AzureKubernetesLoadBalancerResource>)extensionats exportIResourceBuilder<KubernetesGatewayResource> Routes a Kubernetes
Kubernetes.KubernetesGatewayResource through the supplied Azure Application Gateway for Containers (AGC) AzureKubernetesLoadBalancerResource. WithLoadBalancer(IResourceBuilder<KubernetesIngressResource>, IResourceBuilder<AzureKubernetesLoadBalancerResource>)extensionats exportIResourceBuilder<KubernetesIngressResource> Routes a Kubernetes
Kubernetes.KubernetesIngressResource through the supplied Azure Application Gateway for Containers (AGC) AzureKubernetesLoadBalancerResource.