Skip to content
Docs Try Aspire
Docs Try

withIngressPath

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

Signature

method withIngressPath builder
Adds a path-based rule to the ingress. The rule matches all hosts and forwards traffic matching the specified path to the given endpoint's backing Kubernetes service.
withIngressPath(
path: string,
endpoint: EndpointReference,
pathType?: IngressPathType): KubernetesIngressResource
path string
endpoint EndpointReference
pathType IngressPathType optional = Prefix
KubernetesIngressResource

Applies to

This method applies to the following types: