Skip to content
Docs Try Aspire
Docs Try

withIngressHostRoute

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

Signature

method withIngressHostRoute builder
Adds a host-and-path route to a Kubernetes Ingress
withIngressHostRoute(
host: string,
path: string,
endpoint: EndpointReference,
pathType?: IngressPathType): KubernetesIngressResource
host string
path string
endpoint EndpointReference
pathType IngressPathType optional = Prefix
KubernetesIngressResource

Applies to

This method applies to the following types: