Skip to content
DocsTry Aspire
DocsTry

KubernetesIngressResource.withHostname

Method
📦 Aspire.Hosting.Kubernetes v13.4.0-preview.1.26281.18
interface KubernetesIngressResource {
// ... omitted for brevity
withHostname(hostname: string): KubernetesIngressResource;
}

Signature

methodwithHostnamebuilder
Adds a hostname that this ingress matches. Multiple hostnames can be added by calling this method repeatedly. If no hostnames are configured, the ingress matches all hosts.
withHostname(hostname: string): KubernetesIngressResource
hostnamestring
KubernetesIngressResource

Defined on

This method is defined on the following type: