Skip to navigation

Install on Kubernetes

Deploy OvalBee on a Kubernetes cluster with the enterprise Helm chart. Enterprise edition only.

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

Where it comes from
The Helm chartoci://cr.ovalbee.com/ovalbee-ee/charts/ovalbee. Its version is the platform version: X.Y.Z for a release, 0.0.0-nightly for the nightly build.
The api, web and logger imagescr.ovalbee.com/ovalbee-ee/api, web and logger. Pulling them needs the subscription’s registry credential.
Every other imageDocker Hub, docker.io/ovalbee/*: the labeling tool, CV utilities and the node images. Node runs and deployments use only these, so their pods need no pull Secret.

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 storageClassName set in the values) for the bundled PostgreSQL, Redis and Qdrant volumes, and, for GPU runs, GPU nodes with the NVIDIA device plugin.
  • helm 3.14 or newer and kubectl on the machine you install from, and the OvalBee CLI for the primary path below.
  • An activation key, the file ovalbee.activation we 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.com and docker.io, and from the machine you install from to cr.ovalbee.com and https://licenses.ovalbee.com.
  • A DNS name and TLS for the address people will open. The chart can attach an HTTPRoute to a Gateway API Gateway you 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:

curl -fsS -X POST https://licenses.ovalbee.com/v1/registry/credential \
-H 'Content-Type: application/json' \
-d "{\"activationKey\": \"$(tr -d '\n' < ovalbee.activation)\"}"

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:

ovalbee install --backend kubernetes --activation ovalbee.activation --name prod \
--url https://ovalbee.example.com --kube-context my-cluster --namespace ovalbee

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.

Option
--activation FILEThe activation key OvalBee sent you; - reads it from standard input. Required, unless --license is given.
--license FILEInstead of the activation key, the signed license of an installation that is already bound to a subscription, to open the registry. The new installation is not licensed by it: only an activation key activates one.
--urlThe address users will open. Required.
--nameThe name of the CLI context that records the installation. Required in practice: the default, local, stands for http://localhost:30080.
--kube-context, --namespace, --releaseThe cluster (the current kubeconfig context by default), the namespace (ovalbee) and the Helm release name (ovalbee).
--values FILEExtra Helm values, repeatable; later files win. Keep ovalbee-registry in global.imagePullSecrets if you set that list yourself.
--executorkubernetes (the default) sets the in-cluster Kubernetes executor in the values; unmanaged leaves it to Admin → Configuration → Executor. See The executor.
--version X.Y.ZThe release to install. nightly installs the development build; the CLI then uses chart version 0.0.0-nightly.
--timeoutHow long to wait for the release, and then for the address to answer, 15 minutes each by default.
--gitops, --output-dirWrite the files for a GitOps controller instead; see GitOps.

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

config:
settings:
executor:
backend: kubernetes
kubernetesOptions:
inCluster: true

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

  1. Get the credential (above) and log Helm in. The password is read from standard input:

    printf '%s' "$CREDENTIAL" | helm registry login cr.ovalbee.com -u "$ACTIVATION_ID" --password-stdin
  2. Create the namespace and the pull Secret. With the CLI, which does the exchange itself:

    kubectl create namespace ovalbee
    ovalbee license registry-secret --namespace ovalbee --activation ovalbee.activation | kubectl apply --server-side --force-conflicts -f -
    kubectl create secret generic ovalbee-activation --namespace ovalbee --from-file=ovalbee.activation=ovalbee.activation

    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>-activation by convention.

    Apply the pull Secret server-side, as above, and never with a plain kubectl apply: that copies the credential into the Secret’s kubectl.kubernetes.io/last-applied-configuration annotation, 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-.

  3. Write a values.yaml. helm show values oci://cr.ovalbee.com/ovalbee-ee/charts/ovalbee --version X.Y.Z lists every value with its default. At minimum:

    global:
    imageTag: "X.Y.Z"
    imagePullSecrets:
    - name: ovalbee-registry
    activation:
    existingSecret: ovalbee-activation # the activation key; the installation activates itself on its first start
    secrets:
    seedAdminPassword: <password of the admin account, used when the database is first created>
    postgresPassword: <generated>
    redisPassword: <generated>
    # httpRoute:
    # enabled: true
    # parentRefs:
    # - name: shared-gateway
    # namespace: gateway-system
    # sectionName: https
    # hostnames: [ovalbee.example.com]

    The chart generates and keeps OVALBEE_APP_SECRET and the Qdrant key across upgrades. Leaving the three passwords at their defaults is fine only for a trial.

  4. Install:

    helm install ovalbee oci://cr.ovalbee.com/ovalbee-ee/charts/ovalbee \
    --version X.Y.Z -f values.yaml --namespace ovalbee --wait --timeout 15m

    For the nightly build the chart version is 0.0.0-nightly and global.imageTag is nightly.

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:

ovalbee upgrade --version X.Y.Z

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:

helm upgrade ovalbee oci://cr.ovalbee.com/ovalbee-ee/charts/ovalbee --version X.Y.Z \
--namespace ovalbee --reset-then-reuse-values --set-string global.imageTag=X.Y.Z --wait --timeout 15m

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

ovalbee install --backend kubernetes --gitops --activation ovalbee.activation --name prod \
--url https://ovalbee.example.com --output-dir ./ovalbee

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), which values.yaml names in activation.existingSecret. Create it outside Git; the generated README.md shows 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-side kubectl apply copies the credential into the Secret’s kubectl.kubernetes.io/last-applied-configuration annotation, 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 an Application with repoURL: cr.ovalbee.com/ovalbee-ee/charts, chart: ovalbee and targetRevision set to the chart version. Flux takes the pull Secret itself as secretRef of the OCIRepository, whose url is oci://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

SymptomCause and fix
Kubernetes deployment requires the enterprise editionNo --activation (or --license) was given, or the subscription behind it has no paid plan (it is cancelled, or the license is a workspace’s). Contact us to buy Self-Hosted Business and pass the key we send.
The log of the api says the activation key was refused: already activated on another installationThe key is bound to the first installation that used it, and this one is not it. The installation stays on Community. Contact OvalBee support; an operator re-binds the subscription.
The api log says the license server could not be reachedThe installation could not activate on its start. Restart the api once it can reach https://licenses.ovalbee.com.
The license server answers 401 or says it does not accept the activation key or licenseThe file was altered or was not issued by OvalBee. Pass the activation key file we sent you as it is: give its path rather than pasting its contents, and do not edit it.
429, or the license server says requests are limitedCredential requests and rotations are rate-limited. Wait the number of seconds it names.
helm registry login or helm pull says unauthorized or deniedThe credential was rotated, revoked or has expired, the user name is not the activation ID, or the credential is being used for a repository outside ovalbee-ee/. Get the credential again and log in again.
improper constraint: "nightly"Helm accepts only SemVer chart versions. Use --version 0.0.0-nightly (the CLI does); global.imageTag stays nightly.
Pods of api, web or logger in ImagePullBackOffThe pull Secret is missing from the release namespace, is not listed in global.imagePullSecrets, or holds an expired credential. Recreate it with ovalbee license registry-secret.
Other pods in ImagePullBackOffThe cluster cannot reach docker.io. Mirror the images and set global.imageRegistry to the mirror.
A task or deployment fails with a reason such as The task image does not exist or Pull access to the task image was deniedThe image tag is not in the registry, the repository needs a credential the pods do not have (a Secret named in config.settings.executor.kubernetesOptions.imagePullSecrets, which must exist in the workloads namespace), or a Secret or ConfigMap the container names is missing. Fix the reference or the credential and run the task again; OvalBee removes the pods of a task it fails. A pull that fails for a reason that clears on its own, such as a rate limit or a timeout, is retried while the task runs.
Stopping a task, or deleting its node, flow or workspace, fails with The task's runtime could not be stopped (HTTP 403). Deleting an account fails with Your account was not deleted, and the task’s log carries the same statusThe executor’s service account may lack permission to manage Jobs in the task namespace. Restore its Role and retry: the task stays active until the stop succeeds.
A task log says Could not stop the Kubernetes Job <namespace>/<name>The task was started on a namespace or executor backend that is no longer selected, and OvalBee could not stop its Job there: after a namespace change because the old namespace answers 403, after a backend switch on any error. The task has ended anyway, whether someone stopped it, deleted its node or it reported its own result, and the Job keeps running until it finishes or you delete it: kubectl delete job <name> -n <namespace>.
helm upgrade complains about --reset-then-reuse-valuesHelm older than 3.14. Upgrade Helm.

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-workloads for a release named ovalbee, or the name you give) and creates it with the Pod Security restricted level enforced. Uninstalling the chart keeps that namespace, so running tasks survive; delete it yourself. Set executorNamespace.create: false with executorNamespace.name to 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 that restricted rejects, such as a root user, need executorNamespace.podSecurity: baseline.

  • The pod runs as an unprivileged user (uid 1000) with no Linux capabilities and a read-only image filesystem. Only /tmp is writable, and its size counts toward the container’s ephemeral-storage limit, which you set in the executor’s containerResources. These settings come from podSecurityContext and containerSecurityContext in 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: true in 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.networkPolicy you can:

    • switch each built-in rule (dns, api, apiToDeployments, tasksToDeployments, internet) on or off;
    • add your own rules with extraEgress and extraIngress, for example a private S3 endpoint;
    • replace either direction with ingress or egress;
    • 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.to to 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:

    kubectl -n ovalbee-workloads run ovalbee-netcheck --rm -i --restart=Never --image=curlimages/curl \
    --labels=app.kubernetes.io/managed-by=ovalbee,app.kubernetes.io/component=task-runtime \
    --overrides='{"spec":{"securityContext":{"runAsNonRoot":true,"runAsUser":1000,"seccompProfile":{"type":"RuntimeDefault"}},"containers":[{"name":"ovalbee-netcheck","image":"curlimages/curl","args":["-sk","-m","5","https://kubernetes.default.svc/version"],"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]}}}]}}'

    With the policy enforced, curl times out and the pod ends in Error. Any HTTP response, including 401 Unauthorized, means the policy is not enforced.

  • 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-storage limit 50 Gi; replace it with executor.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.

  • activeDeadlineSeconds in 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.