withServicePort

Method
📦 Aspire.Hosting.Kubernetes v17.0.0
interface KubernetesAspireDashboardResource {
// ... omitted for brevity
withServicePort(port?: number): KubernetesAspireDashboardResource;
}

Signature

methodwithServicePortbuilder
Sets the Kubernetes Service port for the Aspire Dashboard HTTP endpoint.
withServicePort(port?: number): KubernetesAspireDashboardResource
portnumberoptionalThe 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

Applies to

This method applies to the following types: