Skip to content
DocsTry Aspire
DocsTry

withGatewayClass

Method
📦 Aspire.Hosting.Kubernetes v13.5.3-preview.1.26425.3
interface KubernetesGatewayResource {
// ... omitted for brevity
withGatewayClass(className: string): KubernetesGatewayResource;
}

Signature

methodwithGatewayClassbuilder
Sets the GatewayClass name that selects which controller implementation handles this gateway.
withGatewayClass(className: string): KubernetesGatewayResource
classNamestring
KubernetesGatewayResource

Applies to

This method applies to the following types: