Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDefaultBackend

Method
📦 Aspire.Hosting.Kubernetes v13.6.5-preview.1.26559.7
func (KubernetesIngressResource) WithDefaultBackend(endpoint EndpointReference) KubernetesIngressResource

Signature

methodWithDefaultBackendbuilder
Sets the default backend for the ingress. The default backend handles requests that do not match any of the defined routing rules.
WithDefaultBackend(endpoint EndpointReference) KubernetesIngressResource
endpointEndpointReferenceThe endpoint reference identifying the default backend service and port.
KubernetesIngressResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: