Skip to content
Opod

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

    kubectl get nodes -o wide

    A node list means you have a cluster: take Path A, Install on Kubernetes. The connection to the server … was refused or no kubectl at all means you have none: take Path B, Install on bare machines.

  2. Check the cluster

    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.

  3. 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=prod

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

Check it worked

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

SymptomCauseFix
helm install stops with Job Failedthe preflight hook found a fatal rowrun opodcp preflight yourself and fix each ✘ row (Preflight)
ports.state.dsn carries a user or a password in its addressa password in a plain chart valueput the whole DSN in a Secret and set ports.state.dsnSecret.name
The console shows Connect your databaseno database, or one that does not answerSetup mode
invalid ownership metadata on the LeaderWorkerSet CRDthe cluster already runs that controlleradd --set substrate.leaderWorkerSet.enabled=false
Every create is refused E-FITno card is measured yetkubectl 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 havePathSteps
A Kubernetes cluster with GPU nodesPath Aopodcp preflight → helm install opodcp
Linux machines with GPUs and SSH, no KubernetesPath Bopodcp infra plan → opodcp infra up → opodcp preflight → helm install opodcp
No route to the interneteither path, with a mirrormirror 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.

Before you start

You needWhyCheck
Kubernetes 1.28 or newer, every node Readythe chart's pre-install check refuses an older or half-down clusteropodcp preflight, rows k8s.version, nodes.ready
Cluster DNS (CoreDNS)workers join their leader by Service DNSrow dns.coredns
A Postgres-wire databasethe 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 kubectlto install the chart and read its Secrets—
GPU nodes with their driversthe 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 mirrorevery node pulls the control plane image, because the telemetry DaemonSets copy their agent out of itAir-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

  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.
  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

ObjectName (release opodcp)Notes
Deploymentopodcpone 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
ServiceopodcpClusterIP on 8080, with prometheus.io/scrape and prometheus.io/port annotations
ServiceAccount, Role, RoleBindingopodcpthe namespace's objects the control plane renders, Leases for election
ClusterRole, ClusterRoleBindingopodcpnodes (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 RBACopodcp-preflightremoved when the hook succeeds
Device plugin DaemonSetsopodcp-nvidia-device-plugin and the AMD, Intel and Tenstorrent oneseach 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 controllersubchart lwsfor gangs; turn it off with substrate.leaderWorkerSet.enabled=false when the cluster already serves the API
PriorityClassesopodcp-serving (100000), opodcp-batch (10000), opodcp-batch-preemptible (1000, never preempts)cluster-scoped; priorityClasses.create=false uses classes that already exist
Secretopodcp-adminkey token: the bootstrap admin bearer, 40 random characters unless admin.token sets it
Secretopodcp-install-keykey keys: 32 random bytes that seal connector credentials in the database
Secretopodcp-licenceonly 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