Self-hosting
Kubernetes
Deploy ErrorLens on Kubernetes with the Helm chart: values, external Postgres, ingress and TLS, scaling web and worker roles, and upgrades.
The repository includes a Helm chart in deploy/helm/errorlens. It runs database migrations as a job before each install or upgrade, then separate web and worker deployments.
Install
You need a PostgreSQL database — a managed service or an operator such as CloudNativePG.
git clone https://github.com/errorlenshq/errorlens.git
helm install errorlens errorlens/deploy/helm/errorlens \
--set publicURL=https://errors.example.com \
--set database.url='postgres://user:pass@db:5432/errorlens?sslmode=require'Better, keep secrets in Kubernetes Secrets and reference them from a values file:
# values.prod.yaml
publicURL: https://errors.example.com
database:
existingSecret: errorlens-db # Secret with key DATABASE_URL
encryption:
existingSecret: errorlens-crypto # Secret with key ENCRYPTION_KEY
env:
ERRORLENS_SMTP_HOST: smtp.example.com
ERRORLENS_TRUSTED_PROXIES: 10.0.0.0/8
ingress:
enabled: true
host: errors.example.comhelm upgrade --install errorlens errorlens/deploy/helm/errorlens -f values.prod.yamldeploy/helm/errorlens/values.yaml lists every option: image, replica counts and resources for web and worker pods, the service, ingress, and env for any setting from the configuration reference.
Scaling
- web pods serve the dashboard, the API and ingestion. Scale them with traffic.
- worker pods process events, send alerts, run monitors and delete expired data. One or two are enough for most installations.
Both are stateless; everything lives in Postgres.
Upgrading
cd errorlens && git pull
helm upgrade errorlens deploy/helm/errorlens -f values.prod.yamlThe migration job runs first; the new pods start once it succeeds.