Skip to main content

Examples

The repository contains a set of small, runnable example operators under examples/. They are the quickest way to see a working setup for a specific feature — clone the repository, point your kubeconfig at a local cluster, and run them from the IDE or with dotnet run.

ExampleDemonstrates
OperatorThe core building blocks: custom entities, a controller, and a finalizer
WebhookOperatorValidation and mutation webhooks with KubeOps.Operator.Web
ConversionWebhookOperatorConversion webhooks between entity versions
OtelOperatorOpenTelemetry integration: logging with scopes, tracing, and metrics
AspireOperatorAn operator using the KubeOps.Aspire service defaults
AspireAppHostA .NET Aspire AppHost orchestrating the operator via KubeOps.Aspire.Hosting

Where to go next: