Install on Kubernetes
Kubernetes deployment is part of the enterprise edition and needs a paid subscription (the Business plan). The Helm chart and the api, web and logger images are served from the OvalBee registry only to paid subscriptions. Purchase a subscription before installing to receive an activation key that grants registry access. A Community installation runs on Docker Compose: see Self-hosted installation.
What you get
The chart reads the two image sources from separate values. global.enterpriseImageRegistry (default cr.ovalbee.com/ovalbee-ee) serves api, web and logger; global.imageRegistry (default docker.io/ovalbee) serves the rest, and either can point to a mirror in your own registry. global.imageTag pins the OvalBee image tag and defaults to the chart’s own version. global.imagePullSecrets lists the Secrets the pods pull with.
Before you start
- A Kubernetes cluster with a default StorageClass (or
storageClassNameset in the values) for the bundled PostgreSQL, Redis and Qdrant volumes, and, for GPU runs, GPU nodes with the NVIDIA device plugin. helm3.14 or newer andkubectlon the machine you install from, and the OvalBee CLI for the primary path below.- An activation key, the file
ovalbee.activationwe send you when you buy Self-Hosted Business: contact us at ovalbee.com/enterprise. No installation has to exist yet. The first installation to use the key is bound to it, and a second one is refused: see Activate with a key. - Network access from the cluster to
cr.ovalbee.comanddocker.io, and from the machine you install from tocr.ovalbee.comandhttps://licenses.ovalbee.com. - A DNS name and TLS for the address people will open. The chart can attach an
HTTPRouteto a Gateway APIGatewayyou run (httpRoute.enabled,httpRoute.parentRefs,httpRoute.hostnames), or you route to the web, api, cv-utils-api, imgproxy and labeling-tool services with your own ingress. - A network plugin that enforces NetworkPolicy. Without one the policies that keep node runs away from Qdrant and the cluster restrict nothing.
The registry credential
The license server turns the subscription’s activation key into a registry credential: the user name is an opaque activation ID (never a Stripe id) and the password is the credential. It can only pull from ovalbee-ee/*. The credential belongs to the subscription, not to an installation, so it works before any installation exists. The signed license of an installation that is already bound to the subscription opens it too.
- There is one credential per subscription. Asking again returns the current one; it does not create another.
- It expires. The answer says when, and the pull Secret must be refreshed before then.
- Rotating issues a new credential and makes the previous one stop working. Rotation is rate-limited, once every 24 hours by default.
- OvalBee can revoke a credential. A lapsed subscription stops it working too.
You rarely handle the credential yourself: ovalbee install --backend kubernetes, ovalbee upgrade and ovalbee license registry-secret fetch it from the activation key or a license file, and ovalbee upgrade from the license the installation holds when it is given neither. To read it directly:
The answer holds username, credential, issuedAt, expiresAt and rotatableAt; it is a secret, so keep it out of shell history and logs. POST /v1/registry/credential/rotate with the same body rotates it. The body takes {"grant": "<license>"} instead of the activation key for a bound installation.
Install with the CLI
Run ovalbee install with no options on a terminal and answer the questions: Enterprise, your activation key (pasted, or the path of its file), Kubernetes, install now or write files for a GitOps controller, the address, the kubeconfig context, namespace, release name and the name of the CLI context. It shows a summary, asks to continue and prints the command with options that does the same. Options skip the questions and are the way to script it:
The CLI exchanges the activation key for the credential, logs Helm in to cr.ovalbee.com (the login exists only while the command runs), shows the cluster, namespace, release, chart and image tag, and asks for confirmation. Then it creates the ovalbee-registry image pull Secret and the <release>-activation Secret (key ovalbee.activation, the activation key) in the namespace, installs the chart with generated secrets, global.imagePullSecrets set to the pull Secret, activation.existingSecret set to the activation Secret, the bundled object storage turned on (objectStorage.enabled; to keep files in a bucket of your own, pass a --values file with objectStorage.enabled: false and the bucket under config.settings.objectStorage) and the executor set to this cluster, waits for the release, then waits until the address answers /api/health with 200 (up to --timeout) and signs in as admin. If the address never answers, for example because nothing routes it to the cluster yet, the CLI says what it last got and how to sign in later, and the release stays installed. The generated administrator password is printed once. When the API starts it sends the activation key and its own installation ID to the license server and applies the license that comes back, so the installation is Business from its first start. Without a paid subscription behind the key the command stops before it changes anything, saying that Kubernetes deployment requires the enterprise edition.
--registry and --license-server point the CLI at another registry or license server. They are hidden from --help and meant for testing. --bundle is refused with Kubernetes: the platform bundle holds the Docker Compose files only, and the chart always comes from the registry.
The executor
Node runs and model deployments run as pods of the same cluster: ovalbee install, the install wizard and the GitOps values.yaml set
The chart adds the namespace it creates for the pods (ovalbee-workloads for a release named ovalbee, see Isolation) and the release’s pull Secrets (global.imagePullSecrets, so ovalbee-registry): task pods pull the enterprise node images from cr.ovalbee.com with the same credential as the api. A pod reads its pull Secrets from its own namespace, so on every install and upgrade the chart copies each of them from the release namespace into the workloads namespace (executorNamespace.copyImagePullSecrets, on by default). The runner images are not written into the setting: the API derives them from global.imageRegistry and global.imageTag, so every upgrade moves task pods to the new release’s runners; see Runner images. A setting in the Helm values is applied on every install and upgrade, so Admin → Configuration → Executor shows it read-only. To change its options (resources, node selectors, GPU mappings, image pull secrets, or a pinned pythonRunnerImage), put them under config.settings.executor.kubernetesOptions in a --values file: it is merged over the default. To choose the executor under Admin → Configuration instead, install with --executor unmanaged; the API’s own default there is the Docker executor, which cannot run in a pod, so switch it to Kubernetes before running nodes. ovalbee upgrade --backend kubernetes, which moves a Docker Compose installation to the cluster, switches a Docker executor to this one in the copied settings and leaves the setting editable there.
Install by hand
-
Get the credential (above) and log Helm in. The password is read from standard input:
-
Create the namespace and the pull Secret. With the CLI, which does the exchange itself:
Without the CLI,
kubectl create secret docker-registry ovalbee-registry --namespace ovalbee --docker-server=cr.ovalbee.com --docker-username="$ACTIVATION_ID" --docker-password="$CREDENTIAL"makes the pull Secret. The second Secret holds the activation key for the installation itself; its name is<release>-activationby convention.Apply the pull Secret server-side, as above, and never with a plain
kubectl apply: that copies the credential into the Secret’skubectl.kubernetes.io/last-applied-configurationannotation, which anyone who can read its metadata can read. A server-side apply refreshes that annotation where it is already there, so remove one left by an earlier apply first:kubectl annotate secret ovalbee-registry --namespace ovalbee kubectl.kubernetes.io/last-applied-configuration-. -
Write a
values.yaml.helm show values oci://cr.ovalbee.com/ovalbee-ee/charts/ovalbee --version X.Y.Zlists every value with its default. At minimum:The chart generates and keeps
OVALBEE_APP_SECRETand the Qdrant key across upgrades. Leaving the three passwords at their defaults is fine only for a trial. -
Install:
For the nightly build the chart version is
0.0.0-nightlyandglobal.imageTagisnightly.
Then follow the first-day checklist. Application settings can be declared in config.settings (or a config.existingConfigMap): the chart reapplies every declared setting on each deployment and locks it in Admin → Configuration. A declared setting replaces its whole value, so reference Secret-provided variables with config.env and ${NAME} instead of writing credentials into values.yaml.
Upgrade
Database migrations run at startup and are forward-only: back up PostgreSQL first and never move back to an older version.
With the CLI:
It reads the license the installation holds (from inside its api pod) and exchanges it for the registry credential, so no file is needed; pass --activation FILE or --license FILE for an installation that holds none. It shows the current and target versions, asks, refreshes the pull Secret (its credential expires) and runs helm upgrade --reset-then-reuse-values, which keeps your values and gives keys the new chart adds their defaults. Without options, on a terminal, ovalbee upgrade asks instead: see Upgrade. By hand, log Helm in again, refresh the Secret with ovalbee license registry-secret, and run:
Review helm show values for the new version before you change it, and keep the chart version and global.imageTag equal.
Move to or from Docker Compose
ovalbee upgrade --backend kubernetes moves a Docker Compose installation to the cluster, and ovalbee upgrade --backend compose moves this one back to Docker Compose, where --edition community also returns it to the Community edition. The data, the secrets and the license go with it, and the installation ID stays, so the license stays bound. The old installation is stopped only once the new one is healthy, and never deleted. See Upgrade and Move an installation.
GitOps with Argo CD or Flux
The CLI changes nothing in the cluster. It writes values.yaml (your overrides, no secret), chart-default-values.yaml (read from the chart in the registry) and a README.md with the Secret the chart needs, example Argo CD and Flux manifests and the upgrade steps. The following credentials are needed in addition to the files:
- The activation key for the installation, as the Secret
<release>-activation(kubectl create secret generic ovalbee-activation --namespace ovalbee --from-file=ovalbee.activation=ovalbee.activation), whichvalues.yamlnames inactivation.existingSecret. Create it outside Git; the generatedREADME.mdshows the command. - The pull Secret for the pods, in the release namespace:
ovalbee license registry-secret --namespace ovalbee --activation ovalbee.activation | kubectl apply --server-side --force-conflicts -f -. Apply it server-side: a client-sidekubectl applycopies the credential into the Secret’skubectl.kubernetes.io/last-applied-configurationannotation, where anyone who can read the Secret’s metadata can read it, and a server-side apply refreshes an annotation that is already there, so remove one an earlier apply left first (kubectl annotate secret ovalbee-registry --namespace ovalbee kubectl.kubernetes.io/last-applied-configuration-). Run it again before the credential expires or after a rotation. Argo CD renders the chart without reading Secrets, so the chart cannot copy it into the workloads namespace for task pods: once the first sync has created that namespace, apply it there too (--namespace ovalbee-workloads), each time you apply it to the release namespace. Flux runs Helm itself, which copies it. - The registry credential for the controller, which pulls the chart. Argo CD takes an OCI Helm repository:
argocd repo add cr.ovalbee.com/ovalbee-ee/charts --type helm --name ovalbee --enable-oci --username <activation ID> --password <credential>, then anApplicationwithrepoURL: cr.ovalbee.com/ovalbee-ee/charts,chart: ovalbeeandtargetRevisionset to the chart version. Flux takes the pull Secret itself assecretRefof theOCIRepository, whoseurlisoci://cr.ovalbee.com/ovalbee-ee/charts/ovalbee.
The context records that a controller owns the release: ovalbee upgrade prints the chart version and image tag to change in Git instead of applying them.
Rotation and revocation
After a rotation the old credential stops working at once: update the pull Secret in every namespace that has one, the Helm login on the machines you install from, and the controller’s repository credential. Pods already running keep running; a pod that has to pull an image after the change fails with ImagePullBackOff until the Secret is current. If a credential was revoked, or the subscription lapsed, the license server refuses to issue one; contact OvalBee.
Troubleshooting
Isolation on Kubernetes
Node runs execute code from whoever built the flow, so on Kubernetes every run and deployment pod is locked down by default. Each restriction can be switched off or replaced.
-
By default the Helm chart runs tasks and deployments in a namespace of their own (
ovalbee-workloadsfor a release namedovalbee, or the name you give) and creates it with the Pod Securityrestrictedlevel enforced. Uninstalling the chart keeps that namespace, so running tasks survive; delete it yourself. SetexecutorNamespace.create: falsewithexecutorNamespace.nameto use a namespace you manage, or with no name to run tasks in OvalBee’s own namespace, which leaves them next to its databases and Secrets and without a quota. Image pull secrets named in the executor options must exist in the workloads namespace. Pod settings thatrestrictedrejects, such as a root user, needexecutorNamespace.podSecurity: baseline. -
The pod runs as an unprivileged user (uid 1000) with no Linux capabilities and a read-only image filesystem. Only
/tmpis writable, and its size counts toward the container’sephemeral-storagelimit, which you set in the executor’scontainerResources. These settings come frompodSecurityContextandcontainerSecurityContextin the executor options. A value you set replaces the default, and{}removes it. OvalBee’s node images are built for uid 1000 and a read-only filesystem, so a different user needs images that user can read. -
The pod gets no Kubernetes service account token. Set
automountServiceAccountToken: truein the executor options to give it one. -
The Helm chart adds a NetworkPolicy to the executor namespace. Pods may reach DNS, the OvalBee API and the public internet, but not other cluster addresses, private networks or cloud metadata. A model deployment accepts connections only from the OvalBee API and from the workloads’ own task pods, which call it when a node takes a deployment input. The policy needs a CNI that enforces NetworkPolicy. Under
executor.networkPolicyyou can:- switch each built-in rule (
dns,api,apiToDeployments,tasksToDeployments,internet) on or off; - add your own rules with
extraEgressandextraIngress, for example a private S3 endpoint; - replace either direction with
ingressoregress; - turn the whole policy off with
enabled: false.
DNS is allowed on port 53 to any address, which works with every DNS layout, including NodeLocal DNS. Set
dns.toto limit it to your resolver.Without a controller that enforces NetworkPolicy, Kubernetes stores the policy, enforces nothing, and gives no warning. Plain flannel is one such setup. To check your cluster, start a pod that the policy selects in your workloads namespace and try to reach the Kubernetes API from it:
With the policy enforced, curl times out and the pod ends in
Error. Any HTTP response, including401 Unauthorized, means the policy is not enforced. - switch each built-in rule (
-
When the executor namespace is separate from the release namespace, the chart also adds a LimitRange and, if you enable it, a ResourceQuota. The LimitRange gives containers that set no
ephemeral-storagelimit 50 Gi; replace it withexecutor.limitRange.limits. The ResourceQuota (executor.resourceQuota.spec) caps the pods, GPUs and scratch space the namespace may hold at once. Both apply to every pod in their namespace, so the chart skips them when runs share a namespace with OvalBee itself. -
activeDeadlineSecondsin the executor options stops any run that goes over its time limit, and the task’s error names the deadline.
Separate GPU cluster
Node runs can go to a cluster other than the one OvalBee runs in. That cluster gets an executor-only installation of the same chart (mode: executor), and the main installation is given its API address and credentials; the chart’s notes after install print how. With an executor-only installation, the OvalBee API runs elsewhere, so the chart refuses to render until you set executor.networkPolicy.apiPeers to its address, for example [{cidr: 203.0.113.10/32, ports: [443]}], or switch the policy off with executor.networkPolicy.enabled: false. Runs may reach each peer on its ports, and each peer may connect to deployments. The API calls a deployment by its cluster-internal name, so serving a model from a separate cluster also needs an API that can resolve and route to it. A request mapping can override any pod setting for its machine class.