Watch Aspire live streamsDocsTry Aspire

withIngressPath

Method
📦 Aspire.Hosting.Kubernetes v13.6.0-preview.1.26478.8
interface KubernetesIngressResource {
// ... omitted for brevity
withIngressPath(
path: string,
endpoint: EndpointReference,
pathType?: IngressPathType): KubernetesIngressResource;
}

Signature

methodwithIngressPathbuilder
Adds a path-based rule to the ingress. The rule matches each hostname configured with `WithHostname`, or all hosts when no hostname is configured, and forwards matching traffic to the endpoint's backing Kubernetes service.
withIngressPath(
path: string,
endpoint: EndpointReference,
pathType?: IngressPathType): KubernetesIngressResource
pathstring
endpointEndpointReference
pathTypeIngressPathTypeoptional= Prefix
KubernetesIngressResource

Applies to

This method applies to the following types: