withIngressHostAndPath
Method
interface KubernetesIngressResource { // ... omitted for brevity withIngressHostAndPath( host: string, path: string, endpoint: EndpointReference, pathType?: IngressPathType): KubernetesIngressResource;}Signature
method
withIngressHostAndPath builderAdds a host-scoped path rule to the ingress. The rule matches traffic for the specified host and path, forwarding it to the given endpoint's backing Kubernetes service.
withIngressHostAndPath( host: string, path: string, endpoint: EndpointReference, pathType?: IngressPathType): KubernetesIngressResourceParameters
hoststringThe hostname to match (e.g., `"api.example.com"`).pathstringThe URL path to match (e.g., `"/"` or `"/api"`). Must start with `/`.endpointEndpointReference The endpoint reference identifying the target service and port.pathType IngressPathType optional= PrefixThe path matching strategy. Defaults to `Prefix`.Returns
KubernetesIngressResource Applies to
This method applies to the following types: