Install
Choose an install path
Install on a Kubernetes cluster you already run, or let opodcp build a k3s cluster on bare machines first. Both end at helm install opodcp.
In short
You install the control plane with one Helm chart into a Kubernetes cluster. If you have no cluster yet, opodcp infra builds a k3s cluster on your Linux machines first. Either way, you check the cluster with opodcp preflight, give the control plane a Postgres database, and run helm install opodcp. After that you open the console and create endpoints.
When you need it
- You are installing opod for the first time and must choose between your own cluster and bare machines.
- You want to know what
helm install opodcpcreates in your cluster before you run it. - You are planning an install with no internet access, with several replicas, or over an existing database.
Do it
Find out what you have
kubectl get nodes -o wideA node list means you have a cluster: take Path A, Install on Kubernetes.
The connection to the server … was refusedor nokubectlat all means you have none: take Path B, Install on bare machines.Check the cluster
docker run --rm --network host -v ~/.kube:/kube:ro \ ghcr.io/opod-io/opodcp:0.3.6 preflight --kubeconfig /kube/configThe last line reads
cluster ready for: helm install opodcp …when no fatal row failed. See Preflight.Install the chart
Follow the steps of your path. Both end in the same command:
helm install opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp --create-namespace \ --set ports.state.dsnSecret.name=opod-state --set cell.name=prodports.state.dsnSecretis new in0.3.0; on0.2.1leave it out.
Check it worked
kubectl -n opodcp rollout status deploy/opodcp
kubectl -n opodcp exec deploy/opodcp -- /opodcp doctorA good answer is deployment "opodcp" successfully rolled out, then a doctor table whose first line is control plane http://127.0.0.1:8080 and whose rows start with ✔. A fresh install has one expected red row: identity, which reads BOOTSTRAP until you create a user or connect OIDC. The console's Settings → Ports & adapters shows the same rows.
If it fails
| Symptom | Cause | Fix |
|---|---|---|
helm install stops with Job Failed | the preflight hook found a fatal row | run opodcp preflight yourself and fix each ✘ row (Preflight) |
ports.state.dsn carries a user or a password in its address | a password in a plain chart value | put the whole DSN in a Secret and set ports.state.dsnSecret.name |
| The console shows Connect your database | no database, or one that does not answer | Setup mode |
invalid ownership metadata on the LeaderWorkerSet CRD | the cluster already runs that controller | add --set substrate.leaderWorkerSet.enabled=false |
Every create is refused E-FIT | no card is measured yet | kubectl get nodes -L opod.io/gpu-vendor; see Troubleshooting |
The two paths
There is one chart and one binary for every target. EKS, GKE, AKS, k3s and on-premises clusters differ only by chart values and preflight rows.
| You have | Path | Steps |
|---|---|---|
| A Kubernetes cluster with GPU nodes | Path A | opodcp preflight → helm install opodcp |
| Linux machines with GPUs and SSH, no Kubernetes | Path B | opodcp infra plan → opodcp infra up → opodcp preflight → helm install opodcp |
| No route to the internet | either path, with a mirror | mirror images with their signatures, point the chart at the mirror |
The cluster is yours on Path A. The control plane does not create or manage EKS, GKE or AKS clusters. On bare machines, opodcp infra installs k3s because nothing else would.
Kubernetes (Path A) →
Bare machines (Path B) →
Preflight →
Configuration →
Air-gapped →
High availability →
Upgrade and uninstall →
Backup and restore →
Before you start
| You need | Why | Check |
|---|---|---|
| Kubernetes 1.28 or newer, every node Ready | the chart's pre-install check refuses an older or half-down cluster | opodcp preflight, rows k8s.version, nodes.ready |
| Cluster DNS (CoreDNS) | workers join their leader by Service DNS | row dns.coredns |
| A Postgres-wire database | the state store: endpoints, plans, runs, keys, the audit chain. The chart installs none unless you ask it to (ha.postgres.provide) | Install on Kubernetes, step 2 |
helm 3 and kubectl | to install the chart and read its Secrets | — |
| GPU nodes with their drivers | the device plugins and probes read the host driver; no GPU is needed for the control plane itself. In production it runs on a CPU node, beside a managed database off the GPU hosts; from 0.3.0 the chart prefers such a node (nodeSelector overrides it) | rows gpu.allocatable, runtime.nvidia |
Pull access to ghcr.io/opod-io/*, or a mirror | every node pulls the control plane image, because the telemetry DaemonSets copy their agent out of it | Air-gapped install |
A missing GPU, a missing default StorageClass or unlabelled nodes are warnings, not refusals. The free tier runs up to 4 GPUs with no key; see Licensing.
What happens during helm install
- Preflight hook. A Job runs
opodcp preflightin the cluster, under a read-only ServiceAccount of its own. A fatal row fails the install before any other object is created. See Preflight. - The release objects. Helm creates the Deployment, its Service, RBAC, the PriorityClasses, the device plugins and the LeaderWorkerSet controller. The admin token and the install key are minted once and kept across upgrades and uninstalls.
- First start. The control plane opens the database. Until it can, it runs in setup mode: the console shows Connect your database and every API call but setup and doctor answers
503 E-SETUP. It retries with a growing pause (2 s to 30 s), so a database that appears later is taken without a restart. - Schema. On first start it creates its schema; on later starts it applies any numbered schema steps, under a lock, so two replicas never run one twice.
- Discovery. It labels GPU nodes with
opod.io/gpu-vendorfrom what their device plugins advertise, then creates one telemetry DaemonSet per vendor present. The probes measure every card's memory and push a report to the control plane. Until a card is measured, a create that needs it is refused withE-FIT. - Ready.
/readyzanswers, the console loads, andopodcp doctorlists every port as embedded or connected.
What the default release installs
| Object | Name (release opodcp) | Notes |
|---|---|---|
| Deployment | opodcp | one replica, Recreate strategy; non-root (uid 65532), read-only root filesystem, every capability dropped, seccomp RuntimeDefault. Requests 100m CPU and 256Mi, limit 1Gi. Probes /healthz and /readyz |
| Service | opodcp | ClusterIP on 8080, with prometheus.io/scrape and prometheus.io/port annotations |
| ServiceAccount, Role, RoleBinding | opodcp | the namespace's objects the control plane renders, Leases for election |
| ClusterRole, ClusterRoleBinding | opodcp | nodes (watch, cordon, patch opod.io/* labels, delete a dead node), list pods on a node for a drain preview, read the LeaderWorkerSet webhooks and Gateways. With rbac.nodeDrain=true (the default) also pods/eviction, for Machines → Drain |
| Preflight Job and its hook RBAC | opodcp-preflight | removed when the hook succeeds |
| Device plugin DaemonSets | opodcp-nvidia-device-plugin and the AMD, Intel and Tenstorrent ones | each runs only on nodes labelled opod.io/gpu-vendor=<vendor>; turn one off with substrate.<vendor>DevicePlugin.enabled=false if the cluster already runs one. NVIDIA also gets one time-slicing DaemonSet per timeSlicing.choices entry, used only on nodes an admin time-slices |
| LeaderWorkerSet controller | subchart lws | for gangs; turn it off with substrate.leaderWorkerSet.enabled=false when the cluster already serves the API |
| PriorityClasses | opodcp-serving (100000), opodcp-batch (10000), opodcp-batch-preemptible (1000, never preempts) | cluster-scoped; priorityClasses.create=false uses classes that already exist |
| Secret | opodcp-admin | key token: the bootstrap admin bearer, 40 random characters unless admin.token sets it |
| Secret | opodcp-install-key | key keys: 32 random bytes that seal connector credentials in the database |
| Secret | opodcp-licence | only when licence.key is set |
Both minted Secrets carry helm.sh/resource-policy: keep: an uninstall leaves them, and a reinstall reuses them. Keep a copy of the install key with your database backups; a database without its key holds no readable credential.
It installs no database, event bus, metrics stack, identity provider or registry. The per-vendor GPU telemetry DaemonSets are created by the control plane itself once it runs, not by the chart. Optional components (a provided Postgres or NATS for HA, KEDA, the cell door, the Valkey KV store, NetworkPolicies, Grafana dashboards and Prometheus rules) are each off until a value turns them on; see Helm values.
After the install
Last updated · Source: content/docs/control-plane-install/index.mdx · View as Markdown