Skip to content
Docs Try Aspire
Docs Try

KubernetesIngressResource.withIngressHostAndPath

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

Signature

method withIngressHostAndPath builder
Adds 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): KubernetesIngressResource
host string
path string
endpoint EndpointReference
pathType IngressPathType optional = Prefix
KubernetesIngressResource

Defined on

This method is defined on the following type: