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
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=prodSee Install for the database Secret and the checks before this line.
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:8080Open
http://127.0.0.1:8080and sign in with the token.Create an endpoint
On Endpoints → New, pick a model from the catalog, press Preview, then Create. See Create an endpoint.
Call it
The endpoint page's Connect card prints the URL and a
curlwith a key. Any OpenAI client works.
Check it worked
kubectl -n opodcp exec deploy/opodcp -- /opodcp doctorThe 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
| Symptom | Where to look |
|---|---|
helm install fails | Preflight |
| The console shows Connect your database | Setup mode |
A create is refused with an E-… code | Troubleshooting → Creating an endpoint |
| A doctor row is red | Doctor |
A placement is refused E-LICENCE | Licensing |
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
| Area | What it does | Docs |
|---|---|---|
| Capacity | measures every card through per-vendor probes; keeps a per-GPU VRAM ledger; places dedicated and shared workers against measured memory | Placement |
| Endpoints | one leader per model, workers and gangs under it, front doors, the cell door | Create an endpoint |
| Plans | a versioned desired state per endpoint; every revision kept with its cause | The plan |
| Changes | every create, edit and rollout is a run with steps, proofs, cancel and give-back | Rollouts and runs |
| Scaling | in-flight, queue, KV-pressure and time-to-first-token triggers; engine sleep; scale to zero; KEDA | Autoscaling |
| Models | the catalog, user models, versions, approval, signatures, prefetch, LoRA | Models |
| Traffic | admission by worker slots, request classes, fallback, cache isolation, routing by load | Routing policy |
| Access | endpoint API keys, users, roles, OIDC, teams, machine tokens | API keys, Users and SSO |
| Machines | cordon, evacuate, drain, time-slice, cache prune, card reset | Machines |
| Usage | per-request rows and GPU-seconds, exported to your store | Usage |
| Health | opodcp doctor, alerts, metrics, logs, traces | Doctor |
| Audit | a hash-chained record of every change, evidence exports | Audit |
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.
| Loop | Every | What it does |
|---|---|---|
watch | 5 s | reads 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 |
autoscaler | 10 s | reads each leader's /loadz and grows, parks or wakes workers by the plan's policy |
reconciler | 1 min | converges 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-reissue | 1 min | keeps each leader's auth snapshot inside its age bound, even when the endpoint's apply keeps failing |
usage-puller | 15 s | pulls 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-shipper | 15 s | ships the spool to the connected usage sink |
meter | 1 min | records GPU-seconds each serving worker holds |
fleet-sampler | 1 min | the one-minute sample the Overview plots |
telemetry | 2 min | keeps one GPU probe DaemonSet per vendor present |
alerts | 15 s | raises, refreshes and resolves alerts, and sends them to the notifier |
stops, gave-up, janitor | 30 s, 30 s, 1 min | finish stops nobody waits on, park a gang its leader gave up on, find objects nobody owns |
leader-move | 15 s | moves leaders off nodes that are being evacuated |
jobs, batches | 10 s | run and follow training jobs and OpenAI batches |
kv-sampler, kv-tier-auto, kv-disk-sweep | 2 min, 10 min, 5 min | KV cache measurements, tier: auto resizing, disk tier clean-up |
audit-retention, usage-retention | 10 min | trim by the retention windows |
gpu-daily-files | 1 h | a GPU-hours CSV per closed day beside the S3 sink (and the Parquet sink up to 0.3.6) |
stream-tickets | 10 min | removes expired stream tickets |
door-routes, inference-pools | 1 min | the 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
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 atGET /api/v1/openapi.json. See API reference. - The
opodcpCLI, which ships inside the image. See CLI reference.
docker run --rm ghcr.io/opod-io/opodcp:0.3.6 -hWhat 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 infrainstalls 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