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.
| Example | Demonstrates |
|---|---|
Operator | The core building blocks: custom entities, a controller, and a finalizer |
WebhookOperator | Validation and mutation webhooks with KubeOps.Operator.Web |
ConversionWebhookOperator | Conversion webhooks between entity versions |
OtelOperator | OpenTelemetry integration: logging with scopes, tracing, and metrics |
AspireOperator | An operator using the KubeOps.Aspire service defaults |
AspireAppHost | A .NET Aspire AppHost orchestrating the operator via KubeOps.Aspire.Hosting |
Where to go next:
- New to KubeOps? Start with Getting Started and use
Operatoras a reference. - Building webhooks? See Webhooks together with the two webhook examples.
- Wiring up telemetry? See Observability and the
OtelOperatorexample. - Using .NET Aspire? See .NET Aspire and the two Aspire examples.