Runtime
Runtime
The Orkestra Runtime is the engine that executes Katalogs and Komposers.
It handles CRD activation, dependency ordering, reconciliation, drift correction, metrics, and health endpoints.
This page explains how the runtime behaves at startup, during reconcile, and during shutdown.
Startup Flow
- Load the Katalog or Komposer
- Build the dependency graph
- Start CRDs in topological order
- For each CRD:
- Create informers
- Create workqueue
- Start workers
- Expose health endpoints
- Emit activation metrics
Missing CRDs do not block startup — Orkestra activates them when they appear.
Reconciliation Flow
For each CR event:
- Fetch the CR
- Convert to the internal version (highest available)
- Run the operatorBox:
- Templates
- Hooks
- Custom constructors
- Apply Registry operations
- Write status
- Requeue if needed
Drift Correction
If a template has:
reconcile: true
Then on every reconcile:
- The resource is compared to the template
- Differences are patched
- Manual changes are corrected
Drift correction is intentional — Orkestra enforces the declared state.
Shutdown Flow
- Stop workers
- Stop informers
- Shutdown CRDs in reverse dependency order
- Emit shutdown metrics
Health Endpoints
Every operator exposes:
GET /health
GET /ready
GET /metrics
GET /katalog
GET /katalog/{crd}
GET /katalog/{crd}/health
Tip
These endpoints are identical for every operator — no custom wiring required.
Metrics
The runtime emits:
controller_reconcile_totalcontroller_reconcile_duration_secondscontroller_queue_depthcontroller_workers_activecontroller_resource_countcontroller_crd_activation_totalcontroller_crd_activation_latency_seconds