openreplay
by HelmForge
Production-ready OpenReplay session replay stack without a bundled ingress controller
About this chart
OpenReplay Helm Chart
Production-oriented OpenReplay 1.28 deployment with pinned official images, portable Ingress and Gateway API exposure, External Secrets support, and no bundled ingress controller.
Features
OpenReplay is not a single container. The chart models its fifteen OSS application services, migration workflow, RWX recording scratch space, PostgreSQL, Redis/Valkey, ClickHouse, S3-compatible storage, and a dedicated Caddy router. Enterprise-only connector, Kafka, and Vault workloads are not included.
The OpenReplay application images are linux/amd64 only. Kubernetes 1.31+ and an amd64 node pool are required. Upstream's minimum for low/moderate traffic is 2 vCPU, 8 GiB memory, and 50 GiB storage; production capacity needs load testing.
Architecture
Public traffic terminates at an operator-managed Ingress controller or Gateway and reaches the chart's Caddy router. The router owns OpenReplay path routing and proxies requests to fifteen internal application Services. PostgreSQL stores relational metadata, ClickHouse stores analytical events, Redis coordinates transient work, and RustFS or an external S3-compatible endpoint stores recording objects. Pipeline workers exchange in-flight data through the scratch volume.
See the architecture guide for component boundaries, dependency modes, and availability limits.
Installation
helm install openreplay oci://ghcr.io/helmforgedev/helm/openreplay \
--namespace openreplay --create-namespace \
--set openreplay.domain=replay.example.com
For the HTTPS repository:
helm repo add helmforge https://repo.helmforge.dev
helm install openreplay helmforge/openreplay \
--namespace openreplay --create-namespace \
--set openreplay.domain=replay.example.com
HTTPS is required for tracker recording and replay in real environments. The chart does not install an Ingress controller, Gateway, GatewayClass, certificate controller, Prometheus stack, CSI driver, or External Secrets Operator.
Configuration
The chart exposes separate contracts for application listeners and Kubernetes Service ports. Changing
router.containerPorts.http rewrites Caddy's real bind address, while service.port changes only the public Service.
RustFS follows the same model through rustfs.containerPorts and rustfs.service.ports.
| Value | Default | Description |
|---|---|---|
global | {} | Parent-chart global values |
openreplay.domain | openreplay.example.com | Public OpenReplay hostname |
openreplay.scheme | https | Public URL scheme |
credentials.existingSecret | "" | Existing shared credential Secret |
externalSecrets.enabled | false | Render ExternalSecret resources |
scratch.enabled | true | Provision shared pipeline scratch storage |
scratch.accessModes | [ReadWriteOnce] | Scratch PVC access modes; use RWX across nodes |
scratch.size | 20Gi | Scratch capacity |
database.postgresql.host | "" | External PostgreSQL host or bundled Service |
database.redis.host | "" | External Redis host or bundled Service |
database.clickhouse.host | "" | External ClickHouse host or bundled Service |
objectStorage.endpoint | "" | External S3 endpoint or bundled RustFS Service |
rustfs.enabled | true | Deploy bundled RustFS |
rustfs.containerPorts.s3 | 9000 | RustFS S3 process listener |
rustfs.containerPorts.console | 9001 | RustFS console process listener |
rustfs.service.ports.s3 | 9000 | RustFS in-cluster S3 Service port |
rustfs.service.ports.console | 9001 | RustFS in-cluster console Service port |
migration.enabled | true | Run the revision-scoped schema migration |
router.containerPorts.http | 8080 | Caddy process listener |
router.replicaCount | 1 | Router replicas |
service.type | ClusterIP | Public router Service type |
service.port | 80 | Public router Service port |
ingress.enabled | false | Create an Ingress |
gatewayAPI.enabled | false | Create HTTPRoutes |
pdb.enabled | false | Protect multiple router replicas from voluntary disruption |
networkPolicy.enabled | false | Create application NetworkPolicy resources |
monitoring.serviceMonitor.enabled | false | Create component ServiceMonitors |
Every entry under components defines one official image, replica count, application port, and metrics port. The
complete authoritative contract, including credentials, scheduling, resources, subchart values, and migration clients,
is in values.yaml and enforced by values.schema.json.
Examples
Ready-to-adapt examples are available for simple installation, Ingress, Gateway API, external services, and External Secrets.
Exposure
Enable either ingress or gatewayAPI, never both. Both point to the internal
router, which owns OpenReplay-specific path rewrites and WebSocket behavior.
openreplay:
domain: replay.example.com
ingress:
enabled: true
ingressClassName: nginx
hosts:
- host: replay.example.com
tls:
- secretName: openreplay-tls
hosts:
- replay.example.com
Gateway API attaches to an existing listener:
gatewayAPI:
enabled: true
httpRoutes:
- name: web
parentRefs:
- name: platform-gateway
namespace: gateway-system
sectionName: https
hostnames:
- replay.example.com
Credentials
On first install, the chart creates openreplay-credentials and preserves its
generated values on Helm upgrades. Production operators should supply an
existing Secret or ExternalSecret target containing these keys:
postgres-passwordredis-passwordclickhouse-passwordaccess-keyandsecret-keyassist-keyandassist-jwt-secretjwt-secret,jwt-spot-secret, andtoken-secretjwt-refresh-secret,jwt-spot-refresh-secret, andjwt-mcp-secret
The three HelmForge dependency subcharts consume the same Secret by default.
Storage and data services
The default dependencies are HelmForge PostgreSQL, Redis, and ClickHouse plus a
pinned RustFS Deployment. Disable each bundled service independently and set the
corresponding endpoint under database or objectStorage.
All pipeline workers mount the scratch claim at /mnt/efs. The default
ReadWriteOnce mode is a single-node baseline; use ReadWriteMany for multi-node
scheduling. scratch.ephemeral=true is intended only for the
isolated validation profile and loses in-flight recordings when pods restart.
Migrations and upgrades
The revision-scoped migration Job fetches exactly the v1.28.0 schema from the
official repository and runs the upstream PostgreSQL, ClickHouse, and object
storage migration scripts with pinned clients. A version ConfigMap blocks
downgrades by default.
Back up all durable stores and credentials before upgrade. Helm --atomic
cannot reverse database or object-store changes. Backend 1.28 requires tracker
19.x and Assist 11.x.
Observability
Set monitoring.serviceMonitor.enabled=true when Prometheus Operator CRDs are
already installed. ServiceMonitors target the upstream metrics ports. Monitor
ingestion failure rate, worker restarts, storage capacity, queue delay, and
database errors. The chart does not bundle Prometheus.
Network policy
networkPolicy.enabled=true restricts selected application pods. Egress rules
include data-plane ports and HTTPS; production environments should add precise
namespace, pod, or IP peers through extraTo and extraEgress.
Backup and restore
One volume snapshot is not a complete OpenReplay backup. Protect PostgreSQL, ClickHouse, S3 buckets, the credentials Secret, and relevant scratch/Valkey state. Quiesce ingestion or coordinate store snapshots. Restore data services first, verify them, then let migrations and application pods start.
Troubleshooting
- A router
502means its target component is disabled, not Ready, or listening on a mismatched component port. - If the migration Job fails, inspect it before application crash loops; workloads wait for the PostgreSQL schema.
- Pending scratch consumers normally indicate that the selected StorageClass cannot satisfy the requested access mode.
- On ARM nodes, OpenReplay application pods remain pending by design unless the explicit unsupported-architecture override is enabled and the operator supplies compatible images.
- After changing a listener, render the chart and confirm the process bind value, container port, Service port, and named
targetPort; do not treatservice.portas an application listener.
See the operations runbook for health verification, backup, restore, capacity, upgrade, and incident procedures.
Security scan
Security scan results use the same Kubescape policy set as HelmForge CI.
Security Scan: openreplay
| Framework | Score |
|---|---|
| MITRE | 100.00% |
| NSA | 80.72% |
| SOC 2 | 84.83% |
| Aggregate resource score | 86.02% |
Kubescape reported no critical failures. The remaining findings reflect upstream-required writable root filesystems, opt-in NetworkPolicy defaults, and incomplete CPU-limit coverage across the multi-service topology. Official OpenReplay images are digest-pinned but currently have no verifiable Cosign signatures or published SBOM. See docs/security.md for the vulnerability snapshot and hardening rationale.
Validation profile
The default chart topology is installed and exercised on k3d, including all fifteen application components, bundled data services, object storage, schema migration, router health, and frontend delivery. Reduced CI profiles separately cover Ingress, Gateway API, dual-stack Services, and External Secrets.
Additional documentation
- Architecture
- Operations
- Security
- Upstream Kubernetes guide
- Upstream upgrade guide
Contributing
See CONTRIBUTING.md.
Deploy openreplay with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openreplay on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartopenreplay is pinned at v1.2.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply