KubernetesGatewayResource.withGatewayPathRoute
Method
interface KubernetesGatewayResource { // ... omitted for brevity withGatewayPathRoute( path: string, endpoint: EndpointReference, pathType?: GatewayPathMatchType): KubernetesGatewayResource;}Signature
method
withGatewayPathRoutebuilderAdds a path-based routing rule to the gateway. The rule matches each hostname configured with `WithHostname`, or all hosts when no hostname is configured, and routes matching traffic to the endpoint's backing Kubernetes service. This generates an `HTTPRoute` resource attached to the Gateway.
withGatewayPathRoute( path: string, endpoint: EndpointReference, pathType?: GatewayPathMatchType): KubernetesGatewayResourceParameters
pathstringendpointEndpointReferencepathTypeGatewayPathMatchTypeoptional= PathPrefixReturns
KubernetesGatewayResourceDefined on
This method is defined on the following type: