Reeve.Workloads.DeploymentFixtures 1.0.1

dotnet add package Reeve.Workloads.DeploymentFixtures --version 1.0.1
                    
NuGet\Install-Package Reeve.Workloads.DeploymentFixtures -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Reeve.Workloads.DeploymentFixtures" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Reeve.Workloads.DeploymentFixtures" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Reeve.Workloads.DeploymentFixtures" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Reeve.Workloads.DeploymentFixtures --version 1.0.1
                    
#r "nuget: Reeve.Workloads.DeploymentFixtures, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Reeve.Workloads.DeploymentFixtures@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Reeve.Workloads.DeploymentFixtures&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Reeve.Workloads.DeploymentFixtures&version=1.0.1
                    
Install as a Cake Tool

Reeve.Workloads

The workload engine of Reeve, published as .NET NuGet packages so that any host, not only Reeve, can run the same reconciler, providers and deployment manifest.

A plugin declares the sidecar workloads it needs in a deployment manifest. The engine turns each declared workload into a Docker container, a set of Kubernetes objects, or an artifact an operator applies by hand. It keeps the workload converged with its desired spec, moves it between releases through a reversible update pipeline, and tears it down while keeping its data. Whether a workload may run, which plugin it belongs to and how credentials are issued are the host's decisions, supplied through ports.

Where it sits in Reeve

Reeve is split across repositories:

  • reeve-iot/reeve is the platform: the host application, its API and UI, and the reference host of this library.
  • Plugins ship deployment manifests describing their workloads.
  • This library depends on two others: reeve-pipeline, the stage engine behind the update pipeline (package Reeve.Pipeline), and reeve-advisory-locks, the PostgreSQL advisory-lock primitive behind leader election (package Reeve.EntityFrameworkCore.AdvisoryLocks).

Nothing in these packages references a particular host.

The packages

Package What it is
Reeve.Workloads.Abstractions The vocabulary: the domain model, the ports a host implements, the provider SPI, the wire contracts and the deployment manifest a plugin declares. Every other package and every consumer takes this one.
Reeve.Workloads.DependencyInjection The composition surface: AddReeveWorkloads, the builder every package registers through, and the host-port audit. A provider of your own takes this and Abstractions, not the engine.
Reeve.Workloads.Domain The rules over that vocabulary: desired-spec resolution, parameters, resource quantities, privilege requirements, deployment diffs, network-attachment policy, resource naming. Nothing beyond the BCL.
Reeve.Workloads.Manifest The deployment-manifest parser.
Reeve.Workloads.Core The engine: reconcile, health gating, the update pipeline, and the loop that elects a leader and runs the engine's units on it.
Reeve.Workloads.Providers.Docker Runs workloads as Docker containers.
Reeve.Workloads.Providers.Kubernetes Runs workloads as Kubernetes objects.
Reeve.Workloads.Providers.Manual Renders a deployable artifact for an operator to apply by hand.
Reeve.Workloads.EntityFrameworkCore The persistence layer and its DbContext. The library registers the context and owns its migrations; the host supplies only the provider and the connection.
Reeve.Workloads.EntityFrameworkCore.PostgreSql PostgreSQL support: the migrations, the model conventions, and an advisory-lock leader election for running more than one replica.
Reeve.Workloads.DeploymentFixtures Manifest builders and update-pipeline conformance fixtures, for a host's own tests.
Reeve.Workloads.Testing Test doubles for a host's own tests, including an in-memory provider that drives the reconciler with no cluster and no daemon.

All packages share one version and target .NET 11 (net11.0).

Requirements

  • .NET 11.
  • PostgreSQL 11 or newer (tested against 18). PostgreSQL is the one database the library ships migrations for.
  • A Docker daemon, a Kubernetes cluster, or an operator applying artifacts by hand.
  • An ASP.NET Core Data Protection key ring that survives restarts and is shared by every replica.

Installation

dotnet add package Reeve.Workloads.DependencyInjection
dotnet add package Reeve.Workloads.Core
dotnet add package Reeve.Workloads.EntityFrameworkCore.PostgreSql
dotnet add package Reeve.Workloads.Providers.Docker       # and/or Providers.Kubernetes, Providers.Manual

A typical host takes these four: the composition surface, the engine, persistence with PostgreSQL leader election, and the provider packages it ships. Reeve.Workloads.Abstractions, Domain and Manifest come in transitively. Reeve.Workloads.Testing and Reeve.Workloads.DeploymentFixtures are for the host's own tests.

Quickstart

using Reeve.Workloads.DependencyInjection;

builder.Services.AddDataProtection();   // persist the keys where every replica can read them

builder.Services
    .AddReeveWorkloads(builder.Configuration, ports => ports
        .Use<IWorkloadGroupManifestSource, MyManifestSource>(ServiceLifetime.Scoped)
        .Use<IWorkloadOrchestratorSettingsSource, MySettingsSource>(ServiceLifetime.Scoped)
        .Use<IWorkloadParameterEncryptionGate, MyParameterEncryptionGate>(ServiceLifetime.Singleton))
    .AddEngine()
    .AddEntityFrameworkStores(o => o.UseNpgsql(connectionString))
    .AddPostgreSqlLeaderElection()   // required when more than one replica runs
    .AddDockerProvider()             // reference only the provider packages you ship
    .AddKubernetesProvider()
    .ValidateHostPorts();            // fails the boot and names any port nothing answers

var app = builder.Build();
await app.Services.RunReeveWorkloadsAsync();   // migrates the schema, then starts the engine
await app.RunAsync();

The host implements three ports: where manifests come from, where the orchestrator settings are stored, and whether password parameters may be encrypted at rest. Every other port has a default, and FindHostPortsOnLibraryDefaults() lists the ones a host is standing on.

RunReeveWorkloadsAsync is the one call that starts the engine. Call it after Build() and before the application starts. A host that composes the engine and never calls it is stopped at startup with a Critical log line. Pass runMigrations: false when the host migrates the workloads schema in a step of its own.

With more than one replica, the PostgreSQL connection must stay on one database session, so no transaction-pooling proxy. Failover after a lost node takes as long as the server's TCP keepalive budget, about two hours on stock settings, so set tcp_keepalives_* on the server.

samples/minimal-host is a host of this shape that runs with no server and no daemon.

Telemetry

The library publishes one meter and one activity source, both named Reeve.Workloads:

builder.Services.AddOpenTelemetry()
    .WithMetrics(m => m.AddMeter("Reeve.Workloads"))
    .WithTracing(t => t.AddSource("Reeve.Workloads"));

Documentation

  • Operations: host setup, configuration reference, the database and upgrades, monitoring.
  • FAQ: known problems and common questions.
  • Architecture: a short overview of the packages, the host and library split, reconciliation, updates and providers.
  • Writing a provider: shipping a provider of your own.
  • Contributing: building, testing, releasing.
  • Changelog.

Licence

MIT. See LICENSE.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.1 39 11/25/2026
1.0.0 44 11/25/2026