withHostname
Method
interface KubernetesGatewayResource { // ... omitted for brevity withHostname(hostname: string): KubernetesGatewayResource;}Signature
method
withHostnamebuilderAdds 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): KubernetesGatewayResourceParameters
hostnamestringReturns
KubernetesGatewayResourceApplies to
This method applies to the following types: