Skip to content
Docs Try Aspire
Docs Try

KubernetesGatewayResource.withHostname

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

Signature

method withHostname builder
Adds a hostname that this gateway's routes match. Multiple hostnames can be added by calling this method repeatedly. Hostnames are used as `hostnames` in generated `HTTPRoute` resources and as HTTPS listener hostnames when TLS is configured.
withHostname(hostname: string): KubernetesGatewayResource
hostname string
KubernetesGatewayResource

Defined on

This method is defined on the following type: