---
title: "Install on Kubernetes"
description: "Install the opod chart on a cluster you already run (EKS, GKE Standard, AKS, k3s, on-premises), connect the database and reach the console."
url: "https://opod.io/docs/control-plane-install/kubernetes/"
markdown_url: "https://opod.io/docs/control-plane-install/kubernetes.md"
section: "Install"
last_updated: "2026-11-01"
---

# Install on Kubernetes

> Install the opod chart on a cluster you already run (EKS, GKE Standard, AKS, k3s, on-premises), connect the database and reach the console.

## In short

This is Path A: the cluster exists and is yours. You check it with `opodcp preflight`, put a Postgres DSN in a Secret, and run `helm install opodcp`. About five minutes later the console answers and lists your GPUs. Nothing outside the release namespace is changed except the cluster-scoped objects listed under [What the default release installs](https://opod.io/docs/control-plane-install/#what-the-default-release-installs).

## When you need it

- You run EKS, GKE Standard, AKS, k3s, RKE2, OpenShift or any other conformant cluster with GPU nodes.
- You already have, or can create, a Postgres database the cluster can reach.
- You reinstall the control plane over a database you kept.

## Do it

> **Version**
>
> These steps are for `0.3.0`. On `0.2.1` leave out every `ports.state` flag: it keeps its state in SQLite on a volume and needs a default StorageClass. See [Releases](https://opod.io/docs/get-started/releases/).

1. **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
   ```

   Fix every fatal row. Read the warnings: `nodes.taints`, `network.policy`, `policy.engine` and (in `0.3.0`) `cp.node` tell you about values you may need. See [Preflight](https://opod.io/docs/control-plane-install/preflight/).

2. **Give it a database**

   Any Postgres-wire database works. Create the database and a user that owns it, then put the **whole DSN** in a Secret. A plain `ports.state.dsn` value that carries a password fails the install, because a plain value lands in the pod spec.

   ```bash
   kubectl create namespace opodcp
   kubectl -n opodcp create secret generic opod-state \
     --from-literal=dsn='postgres://opod:PASSWORD@db.example.com:5432/opodcp?sslmode=require'
   ```

   The control plane creates its schema on first start and applies numbered schema steps on later upgrades.

3. **Install**

   ```bash
   helm install opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp \
     --set ports.state.dsnSecret.name=opod-state \
     --set cell.name=prod
   ```

   `cell.name` labels every object with `opod.io/cell` and names the cell in the console. Leave `admin.token` empty and the chart generates one once, into Secret `opodcp-admin`.

   The pre-install Job runs the same preflight and stops the install on a fatal row. Wait for the control plane with `kubectl -n opodcp rollout status deploy/opodcp`.

4. **Sign in**

   ```bash
   kubectl -n opodcp get secret opodcp-admin -o jsonpath='{.data.token}' | base64 -d; echo
   kubectl -n opodcp port-forward svc/opodcp 8080:8080
   ```

   Open `http://127.0.0.1:8080`. If the console shows **Connect your database**, the control plane is in setup mode: see [Setup mode](#setup-mode).

5. **Check the ports**

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

   Each row says embedded or connected, and green or red. See [Doctor](https://opod.io/docs/control-plane-operate/doctor/).

## Check it worked

With the port-forward from step 4 still open:

```bash
export H="Authorization: Bearer $(kubectl -n opodcp get secret opodcp-admin -o jsonpath='{.data.token}' | base64 -d)"
curl -s http://127.0.0.1:8080/readyz; echo
curl -s -H "$H" http://127.0.0.1:8080/api/v1/version
curl -s -H "$H" http://127.0.0.1:8080/api/v1/nodes | jq -r '.[].name'
```

A good answer:

```text
ready
{"version":"…","commit":"…","coreSupported":">=0.21 <1.0","self":{"placement":"in-cluster",…},"mode":"cell"}
node-a
node-b
```

`/readyz` reads `ready in setup mode: …` while the control plane waits for its database, and `ready; the database is unreachable and reconnecting: …` when the database went away after start. In the console, **Overview** shows your GPUs by vendor and **Machines** lists every node with its measured cards. A card is measured within about two minutes, when the telemetry DaemonSet's probe reports.

## If it fails

| Symptom                                                       | Cause                                                                | Fix                                                                                                             |
| ------------------------------------------------------------- | -------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| `Error: INSTALLATION FAILED: … Job Failed`                    | a fatal preflight row                                                | `kubectl -n opodcp logs job/opodcp-preflight` (the Job is kept 10 minutes), or run step 1 again                 |
| `ports.state.dsn carries a user or a password in its address` | the DSN went in as a plain value                                     | put it in a Secret (step 2) and pass `ports.state.dsnSecret.name`                                               |
| `ports.state.dsn and ports.state.dsnSecret.name are both set` | both forms given                                                     | keep only the Secret                                                                                            |
| `ports.usage is not a chart value any more`                   | a `0.2.1` values file                                                | `--set ports.usage=null`, then save the setting on the Connectors page                                          |
| `/api/v1/setup` reads `"kind":"unreachable"`                  | the pod cannot reach the database                                    | check the host, port, `sslmode` and a NetworkPolicy; the control plane takes the database as soon as it answers |
| `curl` answers `401`                                          | no token, or the wrong one                                           | read it again from Secret `opodcp-admin`, key `token`                                                           |
| **Machines** shows no GPU                                     | the nodes carry no `opod.io/gpu-vendor` label, or a probe is Pending | `kubectl get nodes -L opod.io/gpu-vendor` and `kubectl -n opodcp get pods -l app=opodcp-gpu-telemetry -o wide`  |

More symptoms are on [Troubleshooting](https://opod.io/docs/control-plane-operate/troubleshooting/).

## Reach the console

| How               | Values                                                                                                                             |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Port-forward      | nothing; `kubectl -n opodcp port-forward svc/opodcp 8080:8080`                                                                     |
| NodePort on a LAN | `--set service.type=NodePort --set service.nodePort=30080`                                                                         |
| Ingress           | `--set ingress.enabled=true --set ingress.className=nginx --set ingress.host=opod.example.com` and `ingress.tls`                   |
| Gateway API       | `ingress.enabled=true` with `ingress.gateway.name`, `.namespace`, `.sectionName`: the chart renders an `HTTPRoute` on that Gateway |

Behind an Ingress or a load balancer, list the proxy's CIDRs in `api.trustedProxies` so the sign-in rate limit sees real client addresses. When you use OIDC, save the console's public URL as `OPODCP_PUBLIC_URL` with the identity settings on the Connectors page, so sign-in redirects use it.

## Setup mode

The control plane never refuses to start because of its database. With none set, one that does not answer, one a newer release wrote, or one from before the schema baseline, it is `Ready` and serves one task: **Connect your database**. Every other API call answers `503 E-SETUP` with the reason. It retries every 2 s, backing off to 30 s, and takes the database the moment it answers, with no restart.

```bash
curl -s http://127.0.0.1:8080/api/v1/setup
# {"state":"setup","task":"connect your database","kind":"no-database", ...}
```

`kind` is `connecting`, `no-database`, `unreachable`, `newer-schema` or `ladder-store`. Each one's fix is in [Doctor → state](https://opod.io/docs/control-plane-operate/doctor/).

## Managed Kubernetes notes

- **GPU node taints.** A GPU pool tainted with its own resource (GKE's `nvidia.com/gpu=present:NoSchedule`) needs nothing. A taint of your own needs `workloads.tolerations`.
- **Managed API server and leader isolation.** If you turn on `networkPolicy.leaderIsolation`, name where the managed API server reaches pods from in `networkPolicy.leaderIsolation.from`. See [Network and TLS](https://opod.io/docs/control-plane-security/network-tls/).
- **Secrets at rest.** Turn on your provider's Secret encryption (EKS with a KMS key, GKE application-layer encryption, AKS KMS). The install key that seals connector credentials is a Secret.
- **Node autoscalers.** Every pod the control plane renders carries `karpenter.sh/do-not-disrupt` and `cluster-autoscaler.kubernetes.io/safe-to-evict=false`, so a consolidating autoscaler does not drain loaded weights. Set `allowNodeConsolidation=true` to allow it.
- **`cloud.provider`.** On `0.2.1` it is `onprem` on every cluster and adds nothing. In `0.3.0` it also takes `aws`, `gcp` or `azure`, each with an overlay in the chart (`values-eks.yaml`, `values-gke.yaml`, `values-aks.yaml`). An adapter names its cloud's storage class, registry mirror and workload-identity path, and adds the `cloud.<provider>.*` rows to `opodcp preflight --cloud <provider>`. It provisions no nodes. These adapters are built and **not yet proven on a real EKS, GKE or AKS cluster**.
- **NVIDIA RuntimeClass on a managed cloud.** EKS, GKE and AKS GPU nodes make `nvidia` the default container runtime and register no RuntimeClass `nvidia`, so preflight row `runtime.nvidia` warns there. On `0.2.1` GPU pods are always rendered with `runtimeClassName: nvidia`, and the API server refuses a pod that names a missing class: create a RuntimeClass `nvidia` with handler `nvidia` on those clusters, or the worker pods do not start. In `0.3.0` the control plane checks once a minute whether the class exists and leaves it out of every GPU pod (worker, job, probe, fabric proof) when it does not, so no workaround is needed.
  Check it worked: `kubectl get pod -n opodcp -l opod.io/role=worker -o jsonpath='{.items[*].spec.runtimeClassName}'` prints nothing on a managed cloud and `nvidia` on k3s.

## GitOps (Argo CD)

Endpoint workloads carry only `opod.io/*` labels and no Argo tracking label, so Argo does not prune them as part of the release. The preflight hook is declared for both Helm (`helm.sh/hook`) and Argo (`argocd.argoproj.io/hook: PreSync`), because Argo renders with `helm template` and drops hooks it does not know. If you adopt endpoint workloads into an Argo application, ignore the fields the control plane owns (field manager `opodcp`) with `ignoreDifferences`.

## What the control plane may do in your cluster

Two grants, rendered by the chart:

- **A namespaced Role** in the release namespace holds every write and every sensitive read: the endpoint Secrets it mints, `pods/exec` into its own probe pods only, `pods/log`, Deployments, Services, ConfigMaps, Jobs, PersistentVolumeClaims, PodDisruptionBudgets, Ingresses, LeaderWorkerSets, Events, the API server's Service proxy to its own leaders, and its Lease.
- **A ClusterRole** holds only what cannot be namespaced: Nodes (watch; patch to cordon and to set `opod.io/*` labels; delete a NotReady node that holds nothing of ours), a read-only list of pods so a drain can name what it would evict, `create` on `pods/eviction` for a confirmed full drain, and read-only looks at the LeaderWorkerSet controller.

It cannot read a Secret, exec into a pod or create a workload outside its own namespace. `--set rbac.nodeDrain=false` removes the cluster-wide eviction right; a full drain is then refused.

**Do not hand-edit what it renders.** The control plane writes every object with Server-Side Apply under field manager `opodcp`, with force. A field it renders that you change by hand (`kubectl edit`, `kubectl set image`, a patch) is put back on the next reconcile. A field it does not render (an annotation or a label of your own) stays. To change an endpoint, change its plan, or the chart value behind the field.

## Next

- [Configuration](https://opod.io/docs/control-plane-install/configuration/) — tolerations, leader placement, TLS, the install key
- [Connectors](https://opod.io/docs/control-plane-operate/connectors/) — usage sink, OIDC, alerts, logs
- [Create an endpoint](https://opod.io/docs/control-plane-endpoints/create/)
