Skip to content
GitHubLog inStart free
cetra is not released yet. These docs describe the development version.

Kubernetes (Helm)

The chart runs cetra as a StatefulSet with exactly one pod and one PersistentVolumeClaim mounted at /data. cetra is a single process that locks its data directory, so there is no replica setting and no horizontal scaling. The volume must be ReadWriteOnce block or local storage: the lock (flock) is not reliable on NFS-like volumes.

Terminal window
helm install cetra oci://ghcr.io/cetra-ai/charts/cetra --version 0.1.0 \
--namespace cetra --create-namespace \
--set publicUrl=https://cetra.example.com
kubectl -n cetra logs cetra-0 | grep 'setup required'

The chart version is the cetra version. The values are listed in the chart’s README; the main ones:

Value Default Purpose
publicUrl http://localhost:8080 CETRA_PUBLIC_URL
persistence.size, persistence.storageClassName 20Gi, cluster default the data volume
config {} nested settings written to cetra.toml
env [] extra environment variables
secret.existingSecret "" a Secret whose keys become environment variables
secret.values {} variables of a Secret the chart creates
s3.* off Parquet files and media in a bucket (Object storage)
ingress.* off an Ingress for the HTTP port

Secrets (SMTP URL, OAuth client secrets, the licence key, AWS_* credentials, CETRA_ENCRYPTION_KEY) belong in a Secret you create, named by secret.existingSecret:

Terminal window
kubectl -n cetra create secret generic cetra-env \
--from-literal=CETRA_SMTP_URL='smtps://user:password@smtp.example.com:465' \
--from-literal=CETRA_EMAIL_FROM='cetra <noreply@cetra.sh>'
helm upgrade cetra oci://ghcr.io/cetra-ai/charts/cetra --version 0.1.0 -n cetra \
--reuse-values --set secret.existingSecret=cetra-env

Without CETRA_ENCRYPTION_KEY, cetra generates /data/secret.key on its first start; it lives on the volume and must be backed up with it (Backup and restore).

OTLP: the Service exposes 8080 (HTTP, including /v1/traces), 4317 (gRPC) and 4318 (HTTP). The Ingress routes 8080 only; expose gRPC through a Service of type LoadBalancer or a gRPC-aware ingress if you need it from outside the cluster.

The pod runs as uid/gid 65532 with a read-only root filesystem and no capabilities. Probes: startup and liveness on /healthz (the startup probe allows 10 minutes for WAL replay), readiness on /readyz. terminationGracePeriodSeconds is 60 so a stop can drain and flush. What each probe checks, and the Prometheus metrics (metrics.enabled), are in Monitoring.

Upgrades: Upgrade. Backups: Backup and restore.