Skip to main content

Installing 3B with Helm

Written by Aron Day

A step-by-step guide to installing 3B on your own Kubernetes cluster from the oci.tines.com registry. This page covers the parts that are the same on every cluster.

The platform guides for AWS EKS, GCP GKE, and Oracle OKE don’t repeat these steps. They call out what each platform does differently and why 3B needs particular settings there, so you can fold that into how you already build clusters. Guides for Azure AKS and Scaleway Kubernetes Kapsule are coming soon; until then this page plus the node compatibility check below covers what 3B needs on any cluster.

Note: Self-hosted 3B is yours to run. We document what 3B requires and why it requires it. Provisioning the cluster, load balancer, TLS certificates, DNS, backups, and monitoring and alerting stays with you, to your own platform standards. This guide assumes you are comfortable running production applications on Kubernetes. See what to monitor.

How secrets are handled

With the default in-cluster database, the Helm chart generates the application secrets on first install (db-credentials, auth-secrets, worker-secrets, api-secrets, credential-keys, git-service-secrets, and zero-secrets) and reuses them on upgrade. Its activation job creates a separate ML-KEM-1024 credential key before the services start and retains the P-256 key for old credentials. The only things you create outside Helm are:

  • the namespace, and

  • the image pull secret (so pods can pull the private images).

You also log the Helm CLI in to the registry so it can pull the chart itself.

Prerequisites

Tooling

  • kubectl, with its context pointed at the target cluster.

  • Helm 3.8 or newer (OCI registry support).

  • Your Tines OCI username and password for oci.tines.com. See accessing the OCI registry.

  • Your signed 3B license token (3bl_v1_…) from Tines.

Cluster

  • A default StorageClass with volume expansion — the chart requests persistent volumes for Postgres and the blobstore, which stay Pending without one. The class must have allowVolumeExpansion: true so you can grow those volumes later. A Helm values change alone cannot resize an existing StatefulSet volume; see Blobstore disk. Confirm with kubectl get storageclass before you install.

  • User namespaces enabled on nodes — the api and worker pods run with hostUsers: false to isolate the gVisor sandbox, so they won’t schedule unless the node’s container runtime is containerd 2.x on a recent kernel and user.max_user_namespaces is non-zero. Step 5 verifies this. Some node images ship it hardened off; the platform guides say which, and why. If your cluster can’t run user-namespaced pods, see step isolation for the alternative.

Step 1 — Set variables

Get the latest version from Released versions. Remove the leading v when setting VERSION (for example, set VERSION=10.0.0 for v10.0.0).

export VERSION='<VERSION>'
export REG_USER='<Tines OCI username>'
export REG_PASS='<Tines OCI password>'

Step 2 — Create the namespace

kubectl create namespace 3b

Step 3 — Create the image pull secret

The container images are served from the private oci.tines.com registry. The secret’s name must match imagePullSecrets in your values file — this guide uses tines-registry:

kubectl create secret docker-registry tines-registry \
  --namespace 3b \
  --docker-server=oci.tines.com \
  --docker-username="$REG_USER" \
  --docker-password="$REG_PASS"

Step 4 — Log Helm in to the registry

So the CLI can pull the chart:

echo "$REG_PASS" | helm registry login oci.tines.com \
  --username "$REG_USER" \
  --password-stdin

Step 5 — Verify node compatibility

Confirm the nodes can launch 3B’s sandbox before you install anything, with a throwaway pod that mimics how the api and worker pods run. It uses a 3B image and the pull secret from step 3, so it needs no registry access you don’t already have, and it doubles as a check that the pull secret works:

kubectl -n 3b apply -f - <<EOF
apiVersion: v1
kind: Pod
metadata:
  name: userns-probe
spec:
  hostUsers: false
  restartPolicy: Never
  imagePullSecrets:
    - name: tines-registry
  containers:
    - name: probe
      image: oci.tines.com/3b/nginx:v$VERSION
      command: ["sh","-c","echo uid_map:; cat /proc/self/uid_map; sleep 5"]
EOF
kubectl -n 3b wait --for=condition=Ready pod/userns-probe --timeout=120s
kubectl -n 3b logs userns-probe
kubectl -n 3b delete pod userns-probe

The pod should reach Ready and print a non-identity uid_map, where the container’s 0 maps to a high host UID, for example 0 1000000 65536. Any image with a shell works here, so substitute one from your own registry if you prefer.

Two failure modes to know apart:

  • Stuck creating with a proc or rootfs mount error, or a uid_map of 0 0 4294967295, means the node image doesn’t support user-namespaced pods. See your platform guide, or step isolation for running without them, before continuing.

  • ImagePullBackOff means the pull secret or its credentials are wrong, which would fail the install too. Recreate it in step 3.

Step 6 — Configure your values

Create (or edit the provided) values.yaml with your real hostnames and license:

stackName: tines-3b-prod # a short, stable identifier for this deployment
license: "3bl_v1_…" # the signed license token from Tines

externalUrls:
  ui: https://3b.example.com
  edge: https://3b-edge.example.com
  zeroSync: https://3b.example.com

cookies:
  domain: example.com # the shared parent domain of your hostnames
  secure: true

imagePullSecrets:
  - tines-registry

images:
  postgres: { repository: oci.tines.com/3b/postgres, tag: "18" }

Notes:

  • Do not change stackName after the first install without migrating data — some stored data is scoped to it.

  • You need two hostnames: the app (externalUrls.ui, and the same value for zeroSync) and edge (externalUrls.edge). The API is served by path on the app hostname, so leave externalUrls.api unset and the chart follows ui. See connectivity requirements.

  • PostgreSQL 18 is selected explicitly for a new database. v10 and later also require it for upgrades. If an existing database uses PostgreSQL 16, follow the upgrade guidance before upgrading to v10.

  • You do not need to configure the other images — the chart pins them to the correct release automatically. To inspect what a version pins:

helm show values oci://oci.tines.com/3b/charts/3b --version "$VERSION"

Step 7 — Install the chart

helm install 3b oci://oci.tines.com/3b/charts/3b \
  --version "$VERSION" \
  --namespace 3b \
  -f values.yaml \
  --wait --wait-for-jobs --timeout 30m

The chart creates the post-quantum credential key, then installs the services. Storage is provisioned automatically through the cluster’s default StorageClass. Watch it come up:

kubectl -n 3b get pods -w

Step 8 — Verify

# the application secrets and the post-quantum credential key:
kubectl -n 3b get secret db-credentials auth-secrets worker-secrets api-secrets credential-keys credential-keys-pq git-service-secrets

# the migration job finished, and the services are rolled out
# (api and worker running proves user namespaces work):
kubectl -n 3b get jobs
kubectl -n 3b rollout status deploy/api
kubectl -n 3b rollout status deploy/nginx
kubectl -n 3b get pods

Step 9 — Reach it

nginx is the front door and routes by hostname (see the system overview). Point your load balancer at the nginx service on port 80 and DNS for the hostnames in externalUrls at that load balancer. Because nginx host-routes internally, one load balancer covers all of your hostnames.

Two requirements for whatever sits in front: it must allow long-lived websocket connections (raise its idle timeout well above the default) and, if it terminates TLS, forward X-Forwarded-Proto: https. See connectivity requirements and TLS termination. The platform guides for AWS EKS, GCP GKE, and Oracle OKE cover how each platform handles this.

Quick smoke test without DNS:

kubectl -n 3b port-forward svc/nginx 8080:80
curl -H 'Host: 3b.example.com' http://localhost:8080/

Connect an AI provider before building workflows. Sign in as a tenant admin and follow Connect your AI provider to add a provider, enable it, and set it as the default. The same guide applies whether your deployment has internet access or is air-gapped.

Then verify end to end:

  • Open the UI URL — it loads over HTTPS.

  • Sign in (the built-in identity provider is enabled by default).

  • Build a simple workflow and run a step to confirm end-to-end execution.

  • kubectl -n 3b get pods shows all pods Running / Completed with no restarts.

Upgrading

Same values, new version — the application secrets are read back and preserved, so no key or database-password rotation. See upgrading on Kubernetes.

Uninstalling

helm uninstall 3b -n 3b
# resources created outside the release remain; delete the namespace to purge
# everything, including the database and blob storage volumes:
kubectl delete namespace 3b

Appendix — External database (instead of in-cluster Postgres)

Prepare the database server, create 3b and zero_internal, and set a password for the login that owns them. For a managed database, follow Using a managed PostgreSQL database.

Set postgres.enabled: false in values.yaml, then create db-credentials in the release namespace before running helm install (the chart skips generating it when Postgres is disabled). This example uses the tines login and the 3b namespace created in step 2:

kubectl create secret generic db-credentials \
  --namespace 3b \
  --from-literal=password='<tines-password>' \
  --from-literal=url='postgresql://tines:<url-encoded-password>@<writer-host>:5432/3b?sslmode=require' \
  --from-literal=host-url-zero-internal='postgresql://tines:<url-encoded-password>@<writer-host>:5432/zero_internal?sslmode=require' \
  --from-literal=zero-admin-password='<separate-random-secret>'

Use the same tines password in password and both URLs, URL-encoding it only inside the URLs. Replace the writer hostname and use your provider’s required TLS settings. Generate zero-admin-password separately, for example with openssl rand -hex 32.

Your database must run PostgreSQL 18 and have logical replication enabled (wal_level=logical) for Zero sync. Complete the database preparation and create this secret before continuing with the Helm install.

Appendix — Optional integration secrets

Outbound email and AI provider keys live on the api-secrets secret (smtp-url, parallel-api-key, openai-global-api-key, openai-us-api-key, openai-eu-api-key). Set them at any time by patching the secret; values already stored are preserved across upgrades:

kubectl -n 3b patch secret api-secrets --type merge \
  -p '{"stringData":{"smtp-url":"smtps://user:[email protected]:465"}}'
kubectl -n 3b rollout restart deployment/api deployment/orchestrator deployment/edge

Outbound email needs one setting outside the secret: emailFromAddress in values.yaml, the “from” address on the mail 3B sends. The API refuses to start when smtp-url is set without it, so add it and helm upgrade alongside the patch above. See the Helm values reference.

Did this answer your question?