withIngressClass

Method
📦 Aspire.Hosting.Kubernetes v17.0.0
interface KubernetesIngressResource {
// ... omitted for brevity
withIngressClass(className: string): KubernetesIngressResource;
}

Signature

methodwithIngressClassbuilder
Sets the Kubernetes ingress class name that selects which ingress controller handles this ingress resource.
withIngressClass(className: string): KubernetesIngressResource
classNamestringThe ingress class name (e.g., `"nginx"`, `"traefik"`, `"azure-alb-external"`).
KubernetesIngressResource

Applies to

This method applies to the following types: