Install
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.
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.
Check the cluster
docker run --rm --network host -v ~/.kube:/kube:ro \ ghcr.io/opod-io/opodcp:0.3.6 preflight --kubeconfig /kube/configFix every fatal row. Read the warnings:
nodes.taints,network.policy,policy.engineand (in0.3.0)cp.nodetell you about values you may need. See Preflight.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.dsnvalue that carries a password fails the install, because a plain value lands in the pod spec.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.
Install
helm install opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp \ --set ports.state.dsnSecret.name=opod-state \ --set cell.name=prodcell.namelabels every object withopod.io/celland names the cell in the console. Leaveadmin.tokenempty and the chart generates one once, into Secretopodcp-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.Sign in
kubectl -n opodcp get secret opodcp-admin -o jsonpath='{.data.token}' | base64 -d; echo kubectl -n opodcp port-forward svc/opodcp 8080:8080Open
http://127.0.0.1:8080. If the console shows Connect your database, the control plane is in setup mode: see Setup mode.Check the ports
kubectl -n opodcp exec deploy/opodcp -- /opodcp doctorEach row says embedded or connected, and green or red. See Doctor.
Check it worked
With the port-forward from step 4 still open:
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:
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.
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.
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.
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 needsworkloads.tolerations. - Managed API server and leader isolation. If you turn on
networkPolicy.leaderIsolation, name where the managed API server reaches pods from innetworkPolicy.leaderIsolation.from. See Network and 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-disruptandcluster-autoscaler.kubernetes.io/safe-to-evict=false, so a consolidating autoscaler does not drain loaded weights. SetallowNodeConsolidation=trueto allow it. cloud.provider. On0.2.1it isonpremon every cluster and adds nothing. In0.3.0it also takesaws,gcporazure, 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 thecloud.<provider>.*rows toopodcp 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
nvidiathe default container runtime and register no RuntimeClassnvidia, so preflight rowruntime.nvidiawarns there. On0.2.1GPU pods are always rendered withruntimeClassName: nvidia, and the API server refuses a pod that names a missing class: create a RuntimeClassnvidiawith handlernvidiaon those clusters, or the worker pods do not start. In0.3.0the 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 andnvidiaon 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/execinto 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,createonpods/evictionfor 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 — tolerations, leader placement, TLS, the install key
- Connectors — usage sink, OIDC, alerts, logs
- Create an endpoint
Last updated · Source: content/docs/control-plane-install/kubernetes.mdx · View as Markdown