Skip to content
Docs Try Aspire
Docs Try

withGatewayHostRoute

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

Signature

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

Applies to

This method applies to the following types: