# Kubernetes (Helm) Install cetra on Kubernetes with the Helm chart: one pod, one volume, and the values that matter. 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. ```bash 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](https://github.com/cetra-ai/cetra/blob/main/deploy/helm/cetra/README.md); 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](https://cetra.sh/docs/self-hosting/s3/)) | | `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`: ```bash 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 ' 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](https://cetra.sh/docs/self-hosting/backup/)). 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](https://cetra.sh/docs/self-hosting/monitoring/). Upgrades: [Upgrade](https://cetra.sh/docs/self-hosting/upgrade/#kubernetes). Backups: [Backup and restore](https://cetra.sh/docs/self-hosting/backup/#kubernetes).