Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithOtlpServicePort

Method
📦 Aspire.Hosting.Kubernetes v13.6.5-preview.1.26559.7
func (KubernetesAspireDashboardResource) WithOtlpServicePort(options ...*WithOtlpServicePortOptions) KubernetesAspireDashboardResource

Signature

methodWithOtlpServicePortbuilder
Sets the Kubernetes Service ports for the Aspire Dashboard OTLP endpoints.
WithOtlpServicePort(options ...*WithOtlpServicePortOptions) KubernetesAspireDashboardResource
options...*WithOtlpServicePortOptionsOptional settings, described under Options.

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

GrpcPort*float64The Service port for the OTLP gRPC endpoint. If null, the Service port defaults to the container port (18889).
HttpPort*float64The Service port for the OTLP HTTP endpoint. If null, the Service port defaults to the container port (18890).
KubernetesAspireDashboardResource

The resource builder.

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

Applies to

This method applies to the following types: