KubeOps.Aspire
13.1.1
dotnet add package KubeOps.Aspire --version 13.1.1
NuGet\Install-Package KubeOps.Aspire -Version 13.1.1
<PackageReference Include="KubeOps.Aspire" Version="13.1.1" />
<PackageVersion Include="KubeOps.Aspire" Version="13.1.1" />
<PackageReference Include="KubeOps.Aspire" />
paket add KubeOps.Aspire --version 13.1.1
#r "nuget: KubeOps.Aspire, 13.1.1"
#:package KubeOps.Aspire@13.1.1
#addin nuget:?package=KubeOps.Aspire&version=13.1.1
#tool nuget:?package=KubeOps.Aspire&version=13.1.1
KubeOps.Aspire
KubeOps.Aspire is the .NET Aspire service defaults integration for KubeOps operators. It is the operator-side counterpart to the KubeOps.Aspire.Hosting AppHost integration.
A single call wires up the cross-cutting concerns that Aspire expects from a well-behaved resource:
- OpenTelemetry — logging, metrics and tracing, including the operator's
ActivitySource. - OTLP export — enabled automatically when
OTEL_EXPORTER_OTLP_ENDPOINTis set (Aspire injects this). - Service discovery — so the operator can call other Aspire resources by their logical name.
- HTTP resilience — a standard resilience handler on all
HttpClientinstances. - Health checks — a default
selfliveness check.
Usage
using KubeOps.Aspire;
var builder = Host.CreateApplicationBuilder(args);
builder.Services
.AddKubernetesOperator()
.RegisterComponents();
builder.AddKubeOpsServiceDefaults();
using var host = builder.Build();
await host.RunAsync();
Call AddKubeOpsServiceDefaults() after AddKubernetesOperator() so the OpenTelemetry service and tracing source names match OperatorSettings.Name and the operator's reconciliation traces are captured. If you must call it earlier, pass the name explicitly (and keep it in sync with OperatorSettings.Name):
builder.AddKubeOpsServiceDefaults("my-operator");
See the .NET Aspire guide for the full picture.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- KubeOps.Abstractions (>= 13.1.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Http.Resilience (>= 10.8.0)
- Microsoft.Extensions.ServiceDiscovery (>= 10.8.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.17.0)
- OpenTelemetry.Extensions.Hosting (>= 1.17.0)
- OpenTelemetry.Instrumentation.Http (>= 1.17.0)
- OpenTelemetry.Instrumentation.Runtime (>= 1.17.0)
-
net8.0
- KubeOps.Abstractions (>= 13.1.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Http.Resilience (>= 10.8.0)
- Microsoft.Extensions.ServiceDiscovery (>= 10.8.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.17.0)
- OpenTelemetry.Extensions.Hosting (>= 1.17.0)
- OpenTelemetry.Instrumentation.Http (>= 1.17.0)
- OpenTelemetry.Instrumentation.Runtime (>= 1.17.0)
-
net9.0
- KubeOps.Abstractions (>= 13.1.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Http.Resilience (>= 10.8.0)
- Microsoft.Extensions.ServiceDiscovery (>= 10.8.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.17.0)
- OpenTelemetry.Extensions.Hosting (>= 1.17.0)
- OpenTelemetry.Instrumentation.Http (>= 1.17.0)
- OpenTelemetry.Instrumentation.Runtime (>= 1.17.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.1.1 | 45 | 8/11/2026 |
| 13.1.1-prerelease.1 | 50 | 8/8/2026 |
| 13.1.0 | 122 | 7/21/2026 |
| 13.1.0-prerelease.2 | 59 | 7/17/2026 |
| 13.1.0-prerelease.1 | 60 | 7/16/2026 |
| 13.0.0 | 101 | 7/14/2026 |
| 13.0.0-prerelease.6 | 59 | 7/14/2026 |
| 13.0.0-prerelease.5 | 65 | 7/12/2026 |
| 13.0.0-prerelease.4 | 63 | 7/11/2026 |
| 13.0.0-prerelease.3 | 59 | 7/11/2026 |
| 13.0.0-prerelease.2 | 60 | 7/11/2026 |
| 13.0.0-prerelease.1 | 63 | 7/11/2026 |
| 12.1.0-prerelease.1 | 65 | 7/10/2026 |
| 12.0.1-prerelease.2 | 73 | 7/9/2026 |
| 12.0.1-prerelease.1 | 60 | 7/8/2026 |
| 12.0.0 | 148 | 7/7/2026 |
| 11.6.0-prerelease.1 | 63 | 7/3/2026 |
| 11.5.1-prerelease.2 | 75 | 7/2/2026 |
| 11.5.1-prerelease.1 | 69 | 7/2/2026 |
| 11.5.0 | 140 | 6/30/2026 |
'## [13.1.1](https://github.com/dotnet/dotnet-operator-sdk/compare/v13.1.0...v13.1.1) (2026-08-11)
### Dependencies
* **core:** update dependency roslynator.analyzers to 4.16.0 ([#1216](https://github.com/dotnet/dotnet-operator-sdk/issues/1216)) ([93e0506](https://github.com/dotnet/dotnet-operator-sdk/commit/93e050625ebe3f444db508e90cd1ea396363df24))
* **docs:** update dependency @easyops-cn/docusaurus-search-local to v0.55.3 ([#1212](https://github.com/dotnet/dotnet-operator-sdk/issues/1212)) ([8b0d8cc](https://github.com/dotnet/dotnet-operator-sdk/commit/8b0d8cc93ad36f6ca161cf07a3f01d46dccf7e21))
* **docs:** update dependency react to v19.2.8 ([#1209](https://github.com/dotnet/dotnet-operator-sdk/issues/1209)) ([9921109](https://github.com/dotnet/dotnet-operator-sdk/commit/9921109a3e8b3e27db53bcc8189dd68528c24d08))
* **docs:** update dependency react-dom to v19.2.8 ([#1210](https://github.com/dotnet/dotnet-operator-sdk/issues/1210)) ([c60680d](https://github.com/dotnet/dotnet-operator-sdk/commit/c60680de462abf473af611f4fdd1a959a867100e))
* **tools:** update dependency nuget-license to v4.0.16 ([#1215](https://github.com/dotnet/dotnet-operator-sdk/issues/1215)) ([05e4d1f](https://github.com/dotnet/dotnet-operator-sdk/commit/05e4d1fcad3a8270f6b89123c632f971d905edc2))
'