Skip to content
Docs Try Aspire
Docs Try

withServicePort

Method
📦 Aspire.Hosting.Kubernetes v13.4.0-preview.1.26281.18
interface KubernetesAspireDashboardResource {
// ... omitted for brevity
withServicePort(port?: number): KubernetesAspireDashboardResource;
}

Signature

method withServicePort builder
Sets the Kubernetes Service port for the Aspire Dashboard HTTP endpoint.
withServicePort(port?: number): KubernetesAspireDashboardResource
port number optional
KubernetesAspireDashboardResource

Applies to

This method applies to the following types: