Skip to content
Opod

Control plane

Control plane overview

What the opod control plane manages, the jobs it takes off your hands, and where each part is documented.

In short

The control plane (opodcp) turns a Kubernetes cluster with GPUs into a set of OpenAI-compatible endpoints. You tell it which model to serve and how; it measures every card, places the workers, keeps them running, scales them and records what they did. It is never on the request path: each endpoint's leader serves requests even while the control plane is down. It is free up to 4 GPUs.

Works with LiteLLM. Put LiteLLM in front of your endpoints for per-user keys, budgets and rate limits; opod keeps the GPUs. See Use with LiteLLM.

When you need it

  • You run open models on your own GPUs and want one way to create, scale and roll them out.
  • Several teams share a pool of GPUs and you need to see who holds which card.
  • You need an audit trail and usage numbers for GPUs you own.
  • You want this page to find where a feature is documented.

Do it

  1. Install

    helm install opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp --create-namespace \
      --set ports.state.dsnSecret.name=opod-state --set cell.name=prod

    See Install for the database Secret and the checks before this line.

  2. Open the console

    kubectl -n opodcp get secret opodcp-admin -o jsonpath='{.data.token}' | base64 -d; echo
    kubectl -n opodcp port-forward svc/opodcp 8080:8080

    Open http://127.0.0.1:8080 and sign in with the token.

  3. Create an endpoint

    On Endpoints → New, pick a model from the catalog, press Preview, then Create. See Create an endpoint.

  4. Call it

    The endpoint page's Connect card prints the URL and a curl with a key. Any OpenAI client works.

Check it worked

kubectl -n opodcp exec deploy/opodcp -- /opodcp doctor

The endpoint page reads serving with a proof line, and Overview counts it under endpoints serving. Every doctor row is ✔ except identity, which stays red until you create a user or connect OIDC.

If it fails

SymptomWhere to look
helm install failsPreflight
The console shows Connect your databaseSetup mode
A create is refused with an E-… codeTroubleshooting → Creating an endpoint
A doctor row is redDoctor
A placement is refused E-LICENCELicensing

What it is

The control plane (opodcp) is one binary with its console built in. You install it with the opod Helm chart into the cluster it manages. It runs core's leaders and workers as Kubernetes workloads and keeps them matching the plans you write.

What it manages

AreaWhat it doesDocs
Capacitymeasures every card through per-vendor probes; keeps a per-GPU VRAM ledger; places dedicated and shared workers against measured memoryPlacement
Endpointsone leader per model, workers and gangs under it, front doors, the cell doorCreate an endpoint
Plansa versioned desired state per endpoint; every revision kept with its causeThe plan
Changesevery create, edit and rollout is a run with steps, proofs, cancel and give-backRollouts and runs
Scalingin-flight, queue, KV-pressure and time-to-first-token triggers; engine sleep; scale to zero; KEDAAutoscaling
Modelsthe catalog, user models, versions, approval, signatures, prefetch, LoRAModels
Trafficadmission by worker slots, request classes, fallback, cache isolation, routing by loadRouting policy
Accessendpoint API keys, users, roles, OIDC, teams, machine tokensAPI keys, Users and SSO
Machinescordon, evacuate, drain, time-slice, cache prune, card resetMachines
Usageper-request rows and GPU-seconds, exported to your storeUsage
Healthopodcp doctor, alerts, metrics, logs, tracesDoctor
Audita hash-chained record of every change, evidence exportsAudit

How it is built

One endpoint is one leader and one model. For each endpoint the control plane renders a leader Deployment (core's opod up), its Service, its workers (core's opod join, one engine each) and, for a model split across GPUs, gangs. A leader is the request path: it routes, admits and authenticates every request. The control plane is never on it. A leader keeps serving from its mounted plan and auth files while the control plane is down or restarting.

The control plane decides; Kubernetes runs. The control plane holds the truth in its database: endpoints, plans and their revisions, runs, keys, policies, alerts and the audit chain. Kubernetes objects are its projection. Every object it creates carries opod.io/cell and opod.io/endpoint labels and has one owner, so running an operation twice is safe.

Every dependency is a port. The state store is your Postgres. Every other port (usage sink, event bus, logs, metrics, traces, identity, alerts, secrets, checkpoints, batch files, KV store) runs on an embedded default until you connect your own service on the Connectors page. See Connectors.

The control loops

One replica runs these loops (with several replicas, the one that holds the Lease; see High availability). GET /api/v1/controllers and the Settings page show each loop's interval, runs, errors and last run.

LoopEveryWhat it does
watch5 sreads the nodes and every endpoint's pods once, turns them into each endpoint's observed status and events, and hands that snapshot to the other loops
autoscaler10 sreads each leader's /loadz and grows, parks or wakes workers by the plan's policy
reconciler1 minconverges every endpoint's objects to its stored plan; repairs what drifted. It leaves alone an endpoint whose create is still running, and one whose first deployment failed and was torn down (in 0.3.0 that holds in every state the endpoint reads, not only pending)
auth-reissue1 minkeeps each leader's auth snapshot inside its age bound, even when the endpoint's apply keeps failing
usage-puller15 spulls each leader's usage stream through its cursor into the spool. From 0.3.0 it pulls only a leader without core's usage_push; a newer leader pushes its rows to POST /otlp/v1/logs
usage-shipper15 sships the spool to the connected usage sink
meter1 minrecords GPU-seconds each serving worker holds
fleet-sampler1 minthe one-minute sample the Overview plots
telemetry2 minkeeps one GPU probe DaemonSet per vendor present
alerts15 sraises, refreshes and resolves alerts, and sends them to the notifier
stops, gave-up, janitor30 s, 30 s, 1 minfinish stops nobody waits on, park a gang its leader gave up on, find objects nobody owns
leader-move15 smoves leaders off nodes that are being evacuated
jobs, batches10 srun and follow training jobs and OpenAI batches
kv-sampler, kv-tier-auto, kv-disk-sweep2 min, 10 min, 5 minKV cache measurements, tier: auto resizing, disk tier clean-up
audit-retention, usage-retention10 mintrim by the retention windows
gpu-daily-files1 ha GPU-hours CSV per closed day beside the S3 sink (and the Parquet sink up to 0.3.6)
stream-tickets10 minremoves expired stream tickets
door-routes, inference-pools1 minthe cell door's routes file, Gateway API InferencePools

controllers in the chart (OPODCP_CONTROLLERS) can restrict which loops run; leave it empty in production.

The request path of one endpoint

Pick a failure and watch where requests go

The leader scores each live worker from its heartbeat (in flight + queue depth) and sends the request to the lowest. The control plane is never asked.
request pathconfiguration onlyfailed / cut

Three ways to drive it

  • The console at the control plane's URL. See Console tour.
  • The REST API under /api/v1, with an OpenAPI 3.1 document at GET /api/v1/openapi.json. See API reference.
  • The opodcp CLI, which ships inside the image. See CLI reference.
docker run --rm ghcr.io/opod-io/opodcp:0.3.6 -h

What it is not

  • It is not a gateway. Per-user keys, budgets, rate limits and prompt checks belong to the gateway you run in front of an endpoint. See Gateways in front.
  • It does not price anything. It exports quantities; you apply your price.
  • It does not build images or install drivers on your nodes. opodcp infra installs k3s on bare machines, and that is all it installs on a host.

Last updated · Source: content/docs/control-plane/index.mdx · View as Markdown