Skip to content
DocsTry Aspire
DocsTry

withOtlpServicePort

Method
📦 Aspire.Hosting.Kubernetes v13.4.0-preview.1.26281.18
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
grpcPortnumberoptional
httpPortnumberoptional
KubernetesAspireDashboardResource

Applies to

This method applies to the following types: