KubernetesAspireDashboardResource.withOtlpServicePort

Method
📦 Aspire.Hosting.Kubernetes v17.0.0
interface KubernetesAspireDashboardResource {
// ... omitted for brevity
withOtlpServicePort(
grpcPort?: number,
httpPort?: number): KubernetesAspireDashboardResource;
}

Signature

methodwithOtlpServicePortbuilder
Sets the Kubernetes Service ports for the Aspire Dashboard OTLP endpoints.
withOtlpServicePort(
grpcPort?: number,
httpPort?: number): KubernetesAspireDashboardResource
grpcPortnumberoptionalThe Service port for the OTLP gRPC endpoint. If `null`, the Service port defaults to the container port (18889).
httpPortnumberoptionalThe Service port for the OTLP HTTP endpoint. If `null`, the Service port defaults to the container port (18890).
KubernetesAspireDashboardResource

Defined on

This method is defined on the following type: