---
title: "Choose an install path"
description: "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."
url: "https://opod.io/docs/control-plane-install/"
markdown_url: "https://opod.io/docs/control-plane-install.md"
section: "Install"
last_updated: "2026-10-31"
---

# 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 opodcp` creates 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

1. **Find out what you have**

   ```bash
   kubectl get nodes -o wide
   ```

   A node list means you have a cluster: take **Path A**, [Install on Kubernetes](https://opod.io/docs/control-plane-install/kubernetes/). `The connection to the server … was refused` or no `kubectl` at all means you have none: take **Path B**, [Install on bare machines](https://opod.io/docs/control-plane-install/bare-metal/).

2. **Check the cluster**

   ```bash
   docker run --rm --network host -v ~/.kube:/kube:ro \
     ghcr.io/opod-io/opodcp:0.3.6 preflight --kubeconfig /kube/config
   ```

   The last line reads `cluster ready for: helm install opodcp …` when no fatal row failed. See [Preflight](https://opod.io/docs/control-plane-install/preflight/).

3. **Install the chart**

   Follow the steps of your path. Both end in the same command:

   ```bash
   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
   ```

   `ports.state.dsnSecret` is new in `0.3.0`; on `0.2.1` leave it out.

## Check it worked

```bash
kubectl -n opodcp rollout status deploy/opodcp
kubectl -n opodcp exec deploy/opodcp -- /opodcp doctor
```

A 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](https://opod.io/docs/control-plane-install/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](https://opod.io/docs/control-plane-install/kubernetes/#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](https://opod.io/docs/control-plane-operate/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)](https://opod.io/docs/control-plane-install/kubernetes/): Install the chart on a cluster you run.
- [Bare machines (Path B)](https://opod.io/docs/control-plane-install/bare-metal/): opodcp infra builds a k3s cell over SSH.
- [Preflight](https://opod.io/docs/control-plane-install/preflight/): Every check, its severity and its remedy.
- [Configuration](https://opod.io/docs/control-plane-install/configuration/): The settings most installs change.
- [Air-gapped](https://opod.io/docs/control-plane-install/air-gapped/): Registry mirror, signatures, model mirror.
- [High availability](https://opod.io/docs/control-plane-install/high-availability/): Several replicas, leader election, a shared bus.
- [Upgrade and uninstall](https://opod.io/docs/control-plane-install/upgrade/): Schema steps, template drift, the way back.
- [Backup and restore](https://opod.io/docs/control-plane-install/backup-restore/): Dumps, restores, moving the store.

## 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](https://opod.io/docs/control-plane-install/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](https://opod.io/docs/control-plane-install/air-gapped/)            |

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](https://opod.io/docs/control-plane/licensing/).

## What happens during `helm install`

1. **Preflight hook.** A Job runs `opodcp preflight` in the cluster, under a read-only ServiceAccount of its own. A fatal row fails the install before any other object is created. See [Preflight](https://opod.io/docs/control-plane-install/preflight/).
2. **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.
3. **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.
4. **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.
5. **Discovery.** It labels GPU nodes with `opod.io/gpu-vendor` from 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 with `E-FIT`.
6. **Ready.** `/readyz` answers, the console loads, and `opodcp doctor` lists 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](https://opod.io/docs/control-plane-reference/helm-values/).

## After the install

- [Connect your services](https://opod.io/docs/control-plane-operate/connectors/): Usage sink, events, logs, metrics, OIDC, alerts.
- [Create an endpoint](https://opod.io/docs/control-plane-endpoints/create/): One model, one leader, its workers.
- [Check the ports](https://opod.io/docs/control-plane-operate/doctor/): opodcp doctor, row by row.
