KubernetesAspireDashboardResource.WithServicePort
Method
type KubernetesAspireDashboardResource interface { // ... omitted for brevity WithServicePort(options ...*WithServicePortOptions) KubernetesAspireDashboardResource}Signature
method
WithServicePort builderSets the Kubernetes Service port for the Aspire Dashboard HTTP endpoint.
WithServicePort(options ...*WithServicePortOptions) KubernetesAspireDashboardResourceParameters
options...*WithServicePortOptions Optional settings, described under Options.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.Returns
KubernetesAspireDashboardResource The resource builder.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: