Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

KubernetesAspireDashboardResource.WithServicePort

Method
📦 Aspire.Hosting.Kubernetes v13.6.5-preview.1.26559.7
type KubernetesAspireDashboardResource interface {
// ... omitted for brevity
WithServicePort(options ...*WithServicePortOptions) KubernetesAspireDashboardResource
}

Signature

methodWithServicePortbuilder
Sets the Kubernetes Service port for the Aspire Dashboard HTTP endpoint.
WithServicePort(options ...*WithServicePortOptions) KubernetesAspireDashboardResource
options...*WithServicePortOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithServicePortOptions argument.

Port*float64The Service port number. Cluster-internal clients will connect to this port, which routes to the dashboard's container port (18888). If null, the Service port defaults to the container port.
KubernetesAspireDashboardResource

The resource builder.

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

Defined on

This method is defined on the following type: