You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/operator/aspire/index.mdx
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
---
2
2
title: .NET Aspire
3
3
description: Orchestrate and observe a KubeOps operator with .NET Aspire
4
-
sidebar_position: 9.5
5
4
---
6
5
7
6
# .NET Aspire Integration
@@ -10,8 +9,8 @@ sidebar_position: 9.5
10
9
11
10
| Package | Side | Purpose |
12
11
| --- | --- | --- |
13
-
|[`KubeOps.Aspire.Hosting`](../packages/aspire-hosting)| AppHost | Adds `AddKubeOps<TProject>(...)` so the operator is orchestrated as a resource. |
14
-
|[`KubeOps.Aspire`](../packages/aspire)| Operator | Adds `AddKubeOpsServiceDefaults()` for OpenTelemetry, service discovery, resilience and health checks. |
12
+
|[`KubeOps.Aspire.Hosting`](../../packages/aspire-hosting)| AppHost | Adds `AddKubeOps<TProject>(...)` so the operator is orchestrated as a resource. |
13
+
|[`KubeOps.Aspire`](../../packages/aspire)| Operator | Adds `AddKubeOpsServiceDefaults()` for OpenTelemetry, service discovery, resilience and health checks. |
15
14
16
15
Together they give you a local dashboard with the operator's logs, traces and metrics, automatic service discovery to other resources, and a single entry point to run, publish, or deploy the whole stack.
17
16
@@ -48,7 +47,7 @@ await host.RunAsync();
48
47
49
48
`AddKubeOpsServiceDefaults()` configures:
50
49
51
-
-**OpenTelemetry** logging (with scopes and formatted messages), metrics (runtime + `HttpClient`) and tracing. It subscribes to the operator's `ActivitySource`, which KubeOps registers under the operator name (see [Logging, Tracing, and OpenTelemetry](./logging)).
50
+
-**OpenTelemetry** logging (with scopes and formatted messages), metrics (runtime + `HttpClient`) and tracing. It subscribes to the operator's `ActivitySource`, which KubeOps registers under the operator name (see [Logging, Tracing, and OpenTelemetry](../observability/logging)).
52
51
-**OTLP export**— enabled automatically when the `OTEL_EXPORTER_OTLP_ENDPOINT` environment variable is present. Aspire sets this for you, so traces and metrics show up in the dashboard with no extra code.
-**HTTP resilience**— the standard resilience handler (retries, circuit breaker, timeouts) is applied to all `HttpClient` instances.
@@ -142,7 +141,7 @@ The operator process runs locally and authenticates through the selected Kuberne
142
141
143
142
`KubeOps.Aspire` is usable from a plain console operator and therefore does **not** force an ASP.NET Core dependency. The default health checks are registered in the service collection, but exposing them over HTTP requires an HTTP server.
144
143
145
-
If your operator already hosts webhooks via [`KubeOps.Operator.Web`](../packages/operator-web), map the endpoints on the `WebApplication`:
144
+
If your operator already hosts webhooks via [`KubeOps.Operator.Web`](../../packages/operator-web), map the endpoints on the `WebApplication`:
0 commit comments