Deploying Langfuse on Kubernetes with the Helm chart

Installing self-hosted Langfuse on your own cluster with the official Helm chart, choosing between bundled and external data stores, and setting ingress, TLS, secrets and resources for production.

On this page

Deploying Langfuse on Kubernetes with the Helm chart: when a cluster is the right target

Kubernetes with the Helm chart is one of the production paths Langfuse documents, alongside Terraform-based deployments on AWS, Azure and GCP. A self-hosted Langfuse deployment runs two application containers, Langfuse Web (the UI and APIs) and Langfuse Worker (asynchronous event processing), and depends on PostgreSQL, ClickHouse, Redis or Valkey, and S3-compatible blob storage. Before choosing a cluster, a platform team should confirm that it can host and operate all six components, not just the two Langfuse containers.

The single VM path with Docker Compose is documented for testing and carries no high availability. It suits a proof of concept, a short evaluation or a small team that accepts downtime during restarts and host failures. A cluster becomes the better target when you need multiple web and worker replicas, rolling updates without a maintenance window, separate ingestion and user interface deployments under heavy load, or a standard place to apply your existing ingress, secrets and monitoring. Langfuse recommends scaling worker containers on CPU load, and that scaling model assumes an orchestrator that can run several replicas.

Confirm before committing that your platform team already runs a cluster with capacity for the minimum resources in the Langfuse scaling guide, that someone owns cluster upgrades, and that you have a plan for operating or buying ClickHouse and PostgreSQL. If the team has no cluster experience, the operational cost of the cluster may exceed the cost of the Langfuse deployment itself, and that trade-off should be decided before the Helm values are written.

Bundled or external data stores: which option fits your cluster

This table compares running each Langfuse data store bundled inside the Helm release against using a managed or separately run service. Read each row for who carries backups, upgrades and scaling, and check the minimum resources Langfuse's scaling guide lists before you size the cluster. The main takeaway is that bundling reduces setup work but moves operational ownership onto your platform team.

ComponentBundled in the Helm chartExternal managed or self-run service
PostgreSQLRuns in the cluster as part of the release. Your team owns backups, restores and version upgrades.Managed or separately run instance. Backups and patching sit with the service owner. Confirm the version meets the v4 requirement of PostgreSQL 15 or later.
ClickHouseRuns in the cluster, but the chart's bundled ClickHouse is tied to chart v2. Your team owns replication, disk headroom and upgrades.Operated by a separate team or operator. Plan for about 3x disk headroom when backfilling historic data during a v4 migration.
Redis or ValkeyRuns as a cache and queue inside the release. Confirm noeviction settings and version 7.0 or later with the chart values.Separately run cache with its own sizing, TLS and failover. Ingestion depends on it, so its outage affects trace intake.
Blob storageUsually an S3-compatible service you point the chart at. Confirm whether the chart can deploy one for you in your environment.Managed object storage in your cloud account or self-hosted S3-compatible storage. Ownership of lifecycle rules and credentials stays with you.
Minimum CPU and memory for web, worker and PostgreSQLEach needs at least 2 CPU and 4 GiB, per Langfuse's scaling guide. Add node capacity for both web and worker replicas.Same minimum applies when PostgreSQL is external. Size the node pool for the application pods, not only the database.
Minimum CPU and memory for Redis or Valkey1 CPU and 1.5 GiB, per Langfuse's scaling guide.Same minimum applies to the external service. Confirm its memory limit leaves room for queued events.
Minimum CPU and memory for ClickHouse2 CPU and 8 GiB minimum, with at least 16 GiB of memory for larger deployments, per Langfuse's scaling guide.Same minimum applies to a separately operated cluster. Ask the operator team to confirm replica count and Keeper design.
Day-two ownership: backups, upgrades and scalingYour platform team handles everything, including scaling worker containers on CPU load.Split by contract. Ask for written responsibilities for backup testing, restore drills, upgrade windows and scaling triggers.

How to install Langfuse with the Helm chart, step by step

This sequence takes an empty Kubernetes namespace to a running Langfuse Web and Worker pair, with data store versions, public URL, ingress and TLS settled before the chart is installed. Each step ends with a check you can run before moving on.

  1. Confirm cluster and data store prerequisites

    Your platform team confirms the Kubernetes cluster, an ingress controller, and a TLS certificate process are in place, and decides whether PostgreSQL, Redis or Valkey, ClickHouse and blob storage will be bundled in the chart or provided externally. For external stores, the requirements are PostgreSQL 15 or later, Redis 7.0 or later, and a ClickHouse version that meets the v4 guide, which requires 25.12 or later with 26.4 recommended. Resource sizing should follow the scaling guide's minimums, including 16 GiB of ClickHouse memory for larger deployments. Done when the team has a written list of which stores are bundled, which are external, and the versions each one runs.

  2. Create the namespace and secrets

    Create a dedicated namespace and store the credentials Langfuse needs as Kubernetes Secrets, including the database connection, the encryption key, the NextAuth secret and the salt values, rather than placing them in values files committed to Git. Kubernetes Secrets are stored unencrypted in etcd by default, so confirm that encryption at rest is enabled on the cluster and that RBAC limits who can list or watch these Secrets. Done when the Secrets exist in the namespace and a listing by a non-admin account is denied.

  3. Choose and document the values file

    Write a values file that points the chart at either the bundled or the external data stores, sets resource requests for web, worker and each store, and enables the ingress class you run. Keep one file per environment under version control, with secrets referenced by name only. Confirm the chart version you pin matches the Langfuse image version you intend to run, because bundled users must be on chart v2 before moving to Langfuse v4. Done when helm template renders the manifests without errors and you have reviewed the rendered Secret references.

  4. Set the public URL, ingress and TLS

    Set the external URL that users and SDKs will use, and make it match the hostname on the ingress rule and the TLS certificate exactly, because the authentication callbacks depend on it. Configure TLS through your certificate manager or a pre-issued certificate secret. Confirm with your network team that the hostname resolves to the ingress load balancer and that the ingress controller accepts the request size your SDKs send. Done when the hostname resolves and a request to the URL returns a valid certificate chain.

  5. Install the chart and wait for rollout

    Run helm install with the pinned chart version and your values file into the dedicated namespace, then watch the rollout of the Web and Worker deployments and any bundled data store pods. Database migrations run automatically at startup in a minor upgrade, so check the Web pod logs for a clean migration. If you are upgrading an existing bundled deployment, complete the chart v1 to v2 move before changing the application version. Done when all pods report Ready and the logs show no repeated restart loops.

  6. Verify web and worker health

    Call the Langfuse health endpoint through the public URL and confirm it reports the expected version and healthy dependencies. Check that the Worker pod is connected to Redis or Valkey and ClickHouse by reviewing its logs, then send a test trace from an OpenTelemetry or SDK client and confirm it appears in the UI. Done when the health check passes, the test trace is visible, and the Worker logs show no connection errors to its queue or analytical store.

  7. Record the deployment and plan upgrades

    Record the chart version, Langfuse image version, data store versions, values file location and the secret names in your runbook. Schedule a backup test for PostgreSQL and ClickHouse before relying on the instance, and note that a v3 to v4 move requires ClickHouse disk headroom for backfills, which the upgrade guide advises as about 3x. Done when the runbook is reviewed by the operations owner and a restore test has a named owner and date.

Production values for web, worker and data store resources

The langfuse-web container serves the UI and the APIs, and it also receives trace ingestion from your applications. Its load depends on how many SDK and OpenTelemetry clients send data and how often your team opens the UI, so the two traffic types can compete for the same pods. Langfuse's scaling guide gives a minimum of 2 CPU and 4 GiB for web, and that figure is a floor for a small deployment, not a production target. Set memory requests close to what you observe in steady state, and set limits with enough headroom that a traffic spike does not trigger out-of-memory restarts.

  • Requests: Set CPU and memory requests so the scheduler places web pods on nodes with real capacity, and size them from observed usage rather than the minimum.
  • Replicas: Run more than one replica behind the ingress so a single pod restart does not stop ingestion.
  • Limits: Avoid tight CPU limits that throttle request handling; memory limits should sit above the observed peak.
  • Split deployments: Langfuse recommends splitting langfuse-web into separate ingestion and user interface deployments under heavy ingestion, so heavy SDK traffic does not slow down people using the UI.
  • Probes: Confirm readiness and liveness probes fire on the health endpoint so unhealthy pods leave the service rotation.

Check that ingestion latency and UI response times stay stable during a load test that mirrors your real trace volume.

How the Langfuse components connect inside the cluster

The path starts at the ingress controller, which terminates TLS and routes user and SDK traffic to Langfuse Web. Web and Worker both reach PostgreSQL for transactional data, ClickHouse for traces and observations, Redis or Valkey for cache and queues, and S3-compatible storage for events and media. Check which stores the chart bundles and which you point at external services, because that choice decides who patches, backs up and scales each one. The trust boundary between the cluster and external services is where credentials, network policy and egress rules need review.

Ingress, application pods, data stores and the trust boundary to external services.

Securing secrets, cluster access and identity for Langfuse

A Langfuse Helm release concentrates database passwords, the NextAuth secret, encryption keys and SSO client secrets in one namespace. The cards below cover where those values live, who can read them, what the pods are allowed to do, how users sign in, and how the cluster is checked against a hardening baseline.

Encrypt secrets at rest

Kubernetes stores Secrets unencrypted in etcd by default, so the Langfuse database credentials, Redis or Valkey password, blob storage keys and salts are readable by anyone with access to etcd backups. Configure encryption at rest for the API server, or pull values from an external store through the Secrets Store CSI Driver. Check that etcd snapshots are encrypted too, since they contain the same material.

Secrets good practices

Restrict who can read secrets

Anyone who can list or watch Secrets in the Langfuse namespace can read every credential the chart mounts, including bundled database passwords. Grant the platform team read access through narrowly scoped Roles, avoid cluster-wide wildcard permissions, and keep service accounts used by CI pipelines out of the Secrets verbs. Review bindings after each Helm upgrade, because new chart versions can add resources the old roles never covered.

Apply Pod Security Standards

Langfuse Web, Worker and any bundled data store pods should run under the restricted Pod Security Standard where the images allow it: non-root users, no privilege escalation, a read-only root filesystem where possible, and dropped Linux capabilities. Enforce the level with namespace labels and test in warn mode first. ClickHouse and Redis or Valkey images sometimes need extra writable paths, so confirm each workload's requirements before enforcing.

Pod Security Standards

Plan SSO and enforcement

Self-hosted Langfuse supports Auth.js providers including Google, GitHub, Entra ID, Okta, Keycloak, Authentik, AWS Cognito and generic OIDC. Decide which provider is authoritative, then use the documented options to disable password sign-in or enforce SSO for specific email domains. Test the sign-in path with a break-glass admin before enforcement, and confirm that the callback URL in the chart values matches the external hostname exactly.

Authentication and SSO docs

Align with the CIS Kubernetes Benchmark

The CIS Kubernetes Benchmark gives a control-by-control checklist for API server, etcd, kubelet and worker node settings. Run a benchmark scan against the cluster that hosts Langfuse and record each failed control with an owner and a decision: fix, accept with reason, or not applicable to your distribution. Managed clusters expose fewer of these settings, so ask your provider which controls they handle.

CIS Kubernetes Benchmark

Questions buyers ask before deploying Langfuse on Kubernetes

What does a Langfuse Kubernetes deployment cost, and what drives the price up?

Most of the cost is people time and infrastructure you already pay for, not a license fee. The open source edition has no license charge for core features, so the spend comes from the cluster capacity Langfuse uses, the managed or self-run data stores, the engineering time to install and harden it, and ongoing operations. Cost rises with the trace volume you expect, the number of retained days, whether you run PostgreSQL, ClickHouse and Redis or Valkey yourself or buy them as managed services, and how many environments you stand up. Enterprise features such as RBAC roles, audit logs and data retention policies need a license key, and the Enterprise plan is custom-priced. Ask any partner for a quote built from a written scope that lists each store, each environment and each integration, and separate one-time setup from recurring support.

How long does a production Langfuse install on Kubernetes take?

Duration depends on scope more than on the Helm command itself. A basic install with bundled data stores can be quick to reach a working UI, but a production install also needs external PostgreSQL, ClickHouse, Redis or Valkey, S3-compatible blob storage, TLS, SSO, SMTP or SES, secrets management and resource tuning. Each of those depends on a team outside the project, such as a database group, a network team or an identity team, and their queue often sets the pace. Ask for a timeline in the quote that is tied to named milestones: environment readiness, a staging install, load and failure testing, SSO sign-in, and cutover. Treat any number a vendor gives without a listed scope as a starting point to question.

What must our platform team provide before Langfuse can be installed?

Your platform team supplies the foundation, and Langfuse runs on top of it. You need a Kubernetes cluster that your organization operates, with enough capacity for the Langfuse web and worker pods and the data stores. You also need persistent storage classes, an ingress controller, DNS records for the public hostname, a certificate authority or certificate automation for TLS, and S3-compatible object storage for events, media and exports. Identity is required for SSO through a supported provider such as Entra ID, Okta or Keycloak, and an SMTP or SES path is needed for invitations and password resets. Secrets must be stored safely, since Kubernetes Secrets are unencrypted in etcd by default unless encryption at rest is configured. Confirm each item with your cluster owners before scoping work.

Can our team install Langfuse on Kubernetes without a partner?

Yes, a capable platform team can do it without a partner, because Langfuse publishes its Helm chart and self-hosting documentation and the core features are open source. The work is in the surrounding decisions: sizing ClickHouse and PostgreSQL, choosing bundled versus external stores, configuring ingress and TLS, handling secrets, setting up backups, and proving that restores work. Teams that lack ClickHouse or PostgreSQL operating experience, or that must pass a compliance review on short notice, often choose a partner for a fixed-scope install and then keep operations in-house. Decide early which parts you will own after go-live, and write that split into the scope so nothing is left unowned.

How do Helm chart upgrades affect a running Langfuse deployment?

Upgrades within a major version are designed to be non-disruptive, and database migrations run automatically at startup. Major upgrades change infrastructure and data models, so they need their own plan. Langfuse notes that Helm users with bundled data stores must move the chart from v1 to v2 before upgrading Langfuse to v4, and the v3 to v4 guide requires ClickHouse 25.12 or later, PostgreSQL 15 or later and Redis 7.0 or later. The guide also advises about 3x ClickHouse disk headroom when backfilling historic data. Pin chart and image versions in your values files, test upgrades in staging with a restored copy of production data, and check that your Python SDK v5 or JS/TS SDK v6 clients need Langfuse v4.59.0 or later.

Should we use the bundled data stores in the Helm chart or external ones?

Use external, managed or separately operated data stores for production unless you have a clear reason not to. The bundled option is simpler for a trial, but you then own the backup, upgrade and scaling of PostgreSQL, ClickHouse and Redis or Valkey inside the same cluster. Langfuse's scaling guide lists minimum resources of 2 CPU and 4 GiB for web, worker and PostgreSQL, 1 CPU and 1.5 GiB for Redis or Valkey, and 2 CPU and 8 GiB for ClickHouse, with at least 16 GiB of ClickHouse memory for larger deployments. Those figures are minimums, so confirm sizing against your expected ingestion. Separate stores also make disaster recovery and database ownership clearer for your auditors.

What should we check in the Kubernetes layer before go-live?

Check the cluster itself, not only the Langfuse pods. Confirm that your Kubernetes version is still in support: the project maintains the three most recent minor releases, and as of September 2026 those were 1.37, 1.36 and 1.35. Verify that etcd has a tested backup and restore path, since that is where Kubernetes state lives. Confirm that Secrets are encrypted at rest, that RBAC restricts list and watch access to Langfuse namespaces, and that pod security settings follow the Pod Security Standards for your namespace. Review network policies between web, worker and the data stores, and record the results so your compliance team can review them.

Does the Kubernetes cluster itself need high availability first?

The Helm chart inherits whatever availability your cluster has, so the control plane decision comes before the Langfuse values file. Langfuse Web, Langfuse Worker and any bundled data stores will schedule onto nodes that depend on the kube-apiserver and etcd. If the control plane is a single node, a failed control plane host stops deployments, scaling and self-healing even while Langfuse pods keep serving traffic. Confirm with your platform team whether the cluster is a managed service or one you build, and who owns its control plane upgrades and backups.

If you build the cluster with kubeadm, the kubeadm high availability guide describes two topologies: a stacked control plane, where etcd runs on the same nodes as the control plane, and an external etcd cluster on separate hosts. Either way, plan at least three control plane nodes behind a TCP load balancer on port 6443 in front of kube-apiserver. Stacked is simpler to run; external etcd isolates the datastore from control plane failures but adds hosts you must patch and monitor. The etcd documentation recommends an odd number of members and a five-member cluster in production, because an odd count keeps a quorum majority after one member fails.

etcd is the one component you must back up on purpose. Take snapshots with etcdctl snapshot save on a schedule, store them off the control plane hosts, and rehearse a restore with etcdutl on a scratch cluster before you need it. Ask your platform team for the last successful snapshot time and the date of the most recent restore test. Those two answers tell you more about recovery readiness than the node count does.

Checking that the Helm install is healthy and ready for production

This sequence confirms that the Langfuse pods, migrations, trace ingestion, login and recovery paths all work before real users and applications depend on the deployment. Each check produces a recorded result that the platform team can point to at go-live.

  1. Confirm web and worker pods are running

    Start by checking that the Langfuse Web and Langfuse Worker deployments have the expected number of ready replicas and that none are restarting. Run kubectl get pods and kubectl describe pod in the Langfuse namespace, and read the logs of each container for startup errors such as failed connections to PostgreSQL, ClickHouse, Redis or Valkey, or blob storage. The step is done when every pod reports Ready and the logs show the services connecting without repeated errors. The platform engineer running the install should own this check and save the output with the release record.

  2. Verify database migrations completed at startup

    Langfuse applies database migrations automatically at startup, so the web container logs are the first place to confirm the schema is current. Look for the migration completion messages in the logs and confirm that PostgreSQL and ClickHouse both report the expected schema state. If you installed a major version, also confirm that any required data store versions match the upgrade guide, because a mismatch can stop migrations partway. The step is done when the logs show migrations finished without errors and the application starts serving requests on its health endpoint.

  3. Send a test trace over the OTLP endpoint

    Send a test trace from a workstation or a small test job inside the cluster to the /api/public/otel OTLP endpoint on your Langfuse URL, using a project API key created for the test. Confirm that the trace appears in the correct project in the UI within the normal ingestion window, and that its attributes, input and output are stored as expected. Test from the network path your applications will use, including the ingress and any internal DNS or proxy rules, since a trace that works from a laptop may still fail from inside the cluster. The step is done when the trace is visible and the API key used for the test is revoked or kept under documented ownership.

  4. Test login through the configured identity provider

    Sign in with a test user from each identity provider you configured, such as an OIDC provider or another supported SSO option, and confirm that the user lands in the expected organization and project with the expected role. Also check that the callback URL, TLS certificate chain and cookie domain work through your ingress, and that password sign-in is disabled or restricted as your policy requires. Record which accounts were tested. The step is done when each test user signs in, receives the right access, and a user outside the allowed domains or groups is refused.

  5. Restore PostgreSQL and ClickHouse from backup

    A backup is only proven when a restore has been run. Restore the most recent PostgreSQL backup and the most recent ClickHouse backup into a separate test environment, then start a Langfuse instance against the restored data and check that a known trace and prompt are present. Confirm that the blob storage objects referenced by the restored data are reachable, since traces and media depend on them. Record the time the restore took and any gaps in the data. The step is done when the restored instance shows the expected records and the restore procedure is written down so the on-call team can repeat it.

  6. Run a load check before go-live

    Before go-live, generate ingestion load that resembles your expected trace volume and concurrency, and watch the web and worker pods, the database and cache resource use, and the ingestion queue. Check that CPU and memory stay within the requests and limits you set, and that worker replicas scale as expected if you configured autoscaling. Langfuse's scaling guidance recommends scaling workers on CPU load and, under heavy ingestion, splitting web into separate ingestion and UI deployments, so use the test to decide whether that split is needed. Ask your sizing provider or the vendor to confirm the expected volumes for your workload. The step is done when the test runs to completion with no sustained errors and the results are recorded against your sizing assumptions.

Deciding whether your platform team or a partner should build it

The core decision is whether your platform team has the time and the depth to own a Langfuse Helm release from first install to upgrade, or whether a fixed-scope engagement should carry the build and hand over a working, documented system. An in-house install is reasonable when a team already runs Kubernetes, ingress, certificate management and stateful data stores well, and can absorb the work of choosing bundled versus external PostgreSQL, ClickHouse and Redis or Valkey. A partner makes more sense when those skills are thin, when the deadline for a security or compliance review is fixed, or when the platform team is already committed elsewhere. Either way, the scope, deliverables and sign-offs should be written down before work starts.

To scope a partner engagement, DeployOpen would need access to the target cluster and namespaces, the Kubernetes version and distribution your organization runs, and the identity provider details for SSO (for example, issuer, client registration and the email domains to enforce). You would also need to make the storage and DNS decisions: which data stores are bundled and which are external, which S3-compatible bucket and credentials are used, which hostname and TLS source the ingress uses, and where secrets are sourced from. Expect to sign off the values file, resource requests and the upgrade path in writing. Confirm with your own security team how secrets are encrypted at rest in etcd and who holds the Helm release permissions.

After handover, the client's team keeps ownership of the running system. That includes the chart version pinned in your repository, the timing of Langfuse upgrades (including the Helm chart v1 to v2 step before a Langfuse v4 upgrade), backup and restore tests for PostgreSQL, ClickHouse and blob storage, cluster patching, and on-call response to ingestion problems. Ask any partner which of these they will operate under a retainer and which they will only document, and what the handover package contains. Ongoing support, upgrades and continuous testing are available as retainers, so the post-handover model should be priced as a separate, recurring line in the quote.

How DeployOpen scopes, delivers and supports Langfuse on Kubernetes

DeployOpen plans and implements self-hosted Langfuse on a Kubernetes cluster in infrastructure you control, using the official Helm chart as the starting point. We agree the scope in writing before work starts, then build, test, document and hand over the deployment so your platform and security teams can run it.

How we scope

  • Written scope fixes which clusters, namespaces, ingress and data stores the Helm release covers.
  • We confirm whether PostgreSQL, Redis or Valkey, ClickHouse and blob storage are bundled or external.
  • Scope records secrets handling, TLS, resource requests and the Langfuse version and Helm chart version.

How we build

  • We write production values files, then deploy and verify the web and worker workloads in your cluster.
  • Ingress, TLS certificates, secret sources and resource requests are configured and tested against your standards.
  • Upgrade path from the chart and Langfuse versions you start with is checked before go-live.

How we hand over

  • You receive the values files, deployment documentation, and a runbook for installs, upgrades and rollbacks.
  • Verification results cover health checks, login through your chosen identity method, and trace ingestion tests.
  • Your team gets a walkthrough so operators can run upgrades and data store maintenance without us.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the build.
  • Ask any provider what a support arrangement covers, including Helm chart upgrades and data store backups.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.