Get started
Architecture
What runs where in a cluster with opod, how a plan becomes pods, and what keeps working when the control plane is down.
The control plane manages; core serves. Requests never pass through the control plane.
For why it is built this way, and what each choice costs, see Design decisions.
clients ──► endpoint Service ──► leader (core) ──► workers (core + engine) ──► GPUs
▲ mounted plan, keys, policy
│ (Kubernetes Secret + ConfigMap)
operators ──► opodcp (API + console) ──► Kubernetes API ──► Deployments, LeaderWorkerSets, Jobs
│ ▲
▼ │ probe readings (VRAM, host facts)
your Postgres per-vendor telemetry DaemonSetsThe request path of one endpoint
Pick a failure and watch where requests go
What runs in the cluster
| Object | Count | Purpose |
|---|---|---|
opodcp Deployment | 1 (or more, see High availability) | API, console, controller loops |
| Pre-install preflight Job | once per install or upgrade | refuses a cluster that would half-install |
| GPU telemetry DaemonSets | one per vendor, on nodes labelled opod.io/gpu-vendor | measure every card and push the readings to the control plane every 20 s |
| Device plugins | when absent | NVIDIA, AMD, Intel, Tenstorrent; optional RDMA and Multus |
| LeaderWorkerSet controller | chart dependency, on by default | lands a multi-pod gang as one unit |
| Per endpoint | 1 leader, N workers, optional doors | serving |
| Per endpoint | 1 plan ConfigMap, 1 auth Secret | what the leader reads |
Optional, off by default: KEDA, a provided Postgres (CloudNativePG), a provided NATS, the cell door, a shared KV store (Valkey).
From plan to pods
- You write a plan (console, API, or
opodcp apply). - The planner judges it: engine and vendor support, model fit against measured VRAM, the KV cache the workload needs, host memory and disk for KV tiers, licence ceiling, team quota, node taints, parallelism rules. A refusal returns an
E-…code with alternatives and writes nothing. - The plan is stored with a new revision, and a run starts. A verified rollout runs: validate → prefetch → apply → converge → probe → fabric proof → smoke → canary → eval → promote.
- The executor renders Kubernetes objects with Server-Side Apply, in its own namespace, on objects it labels.
- The reconciler keeps the cluster matching the stored plan. It never restarts a serving pod on its own because a template changed; that waits for a rollout.
Identity and ownership
Objects belong to an endpoint by id, not by name: they are named opodcp-ep-<name>-<id6> and selected by the label opod.io/endpoint-id. The one exception is the leader's Service, opodcp-ep-<name>, which stays stable across re-creates because it is the in-cluster hostname workers join and clients call. A re-created endpoint with an old name never adopts the old one's objects. Objects of an endpoint the store does not know are reported as foreign and never touched.
What survives an outage
The leader serves from its mounted plan, auth snapshot and policy. Those are Kubernetes objects that the kubelet keeps in the pod.
| Lost | Effect |
|---|---|
Every opodcp replica | Serving, routing and key checks continue. With autoscaler.adapter=keda, scaling and wake-from-zero continue inside the capacity the control plane approved. New endpoints, plan edits and rollouts wait. |
| The database | Calls answer 503 E-DB-UNREACHABLE and change nothing; the control plane reconnects by itself. Serving continues. |
| A leader pod | Kubernetes restarts it (about 10 s). With front doors on, requests keep flowing. |
| A worker | The leader routes to the others. The reconciler replaces the pod. |
| A node | Its workers stop; the leader routes to the workers left. Evacuate the node to move its workers through rollouts. A leader on a node that may no longer hold one is pinned to another node. |
Key revocation does not need the control plane either. See Revoke a key with the control plane down.
What the control plane talks to
| Direction | Peer | Why |
|---|---|---|
| Out | Kubernetes API server | everything it manages; calls to a leader ride the API server's Service proxy |
| Out | Your Postgres | its only durable store |
| Out | ghcr.io or your mirror | image digests and signatures |
| Out (from pods) | Hugging Face or your mirror | prefetch Jobs and workers fetch weights; a prefetch checks a published model signature |
| Out, optional | your sinks | usage, logs, metrics, traces, alerts, NATS, Vault, object store |
| In | operators, scripts | API and console on port 8080 |
| In | telemetry pods | probe readings |
Nothing calls home. The licence is verified offline.
Scale
One cell is one cluster. To manage more clusters, run one control plane per cluster and a fleet control plane over them. See Several cells.
Last updated · Source: content/docs/get-started/architecture.mdx · View as Markdown