KubernetesAspireDashboardResource

Handle
📦 Aspire.Hosting.Kubernetes v17.0.0
interface KubernetesAspireDashboardResource
extends IComputeResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport {
readonly otlpGrpcEndpoint: EndpointReference;
readonly primaryEndpoint: EndpointReference;
withForwardedHeaders(enabled?: boolean): KubernetesAspireDashboardResource;
withOtlpServicePort(
grpcPort?: number,
httpPort?: number): KubernetesAspireDashboardResource;
withServicePort(port?: number): KubernetesAspireDashboardResource;
}

Properties

propertyotlpGrpcEndpointEndpointReferenceget
Gets the OTLP gRPC endpoint for receiving telemetry data.
propertyprimaryEndpointEndpointReferenceget
Gets the primary HTTP endpoint of the Aspire Dashboard UI.

Methods

Configures whether forwarded headers processing is enabled for the Aspire dashboard container.
withForwardedHeaders(enabled?: boolean): KubernetesAspireDashboardResource
enabledbooleanoptional= TrueTrue to enable forwarded headers, false to disable.
KubernetesAspireDashboardResource
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
methodwithServicePortbuilder
Sets the Kubernetes Service port for the Aspire Dashboard HTTP endpoint.
withServicePort(port?: number): KubernetesAspireDashboardResource
portnumberoptionalThe 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.
KubernetesAspireDashboardResource