Skip to main content

Kubernetes

Prerequisites​

Use Helm 3.8 or newer and a cluster with a default StorageClass. Otherwise, set clickhouse.storageClassName

The chart installs Lens with its own ClickHouse on a persistent volume and generates its credentials. You do not create any Secrets, and Lens does not use PostgreSQL

Install the chart​

helm upgrade --install lens oci://ghcr.io/berriai/charts/lens \
--namespace lens --create-namespace \
--wait --timeout 10m

Argo CD and other GitOps tools render the chart without cluster access, so generated credentials would change on every sync. Use pre-provisioned Secrets there

On first start, the Lens pod stays in Init until the bundled ClickHouse answers. With your own ClickHouse, Lens restarts until it can connect. Persistent failures need storage and startup diagnostics

Expose Lens​

Save these overrides as values.yaml. Replace the hostname, the ingress class of your installed controller and the TLS Secret that holds the certificate for that hostname

values.yaml
publicUrl: https://lens.example.com
ingress:
enabled: true
className: <your-ingress-class>
host: lens.example.com
tls:
- secretName: lens-tls
hosts: [lens.example.com]

Run the install command again with --values values.yaml. Then check that Lens is ready:

curl --fail https://lens.example.com/health/ready

Sign in​

Open https://lens.example.com/ui/, open Admin token and paste the generated admin token. Read the token with:

kubectl --namespace lens get secret lens-admin \
-o jsonpath='{.data.admin-token}' | base64 --decode

Next, send your first trace or add Lens to LiteLLM

values.yaml reference​

See the complete values.yaml for all settings

ValueDefaultDescription
publicUrl""Browser-facing origin of Lens, without /ui/. Lens rejects sign-in and saves from any other origin. When empty, it is the ingress.host address when ingress is enabled (https when ingress.tls is set) and http://localhost:4318 otherwise. The install fails when it names a different host than ingress.host.
ingestionUrl""Address agents send traces to. Uses publicUrl when empty.
ingress.enabledfalseCreates the Ingress. Install its controller separately.
ingress.className, ingress.hostBoth ""Ingress class and hostname. The hostname is required when ingress is enabled.
ingress.annotations, ingress.tls{}, []Controller settings and Kubernetes ingress TLS entries.
service.type, service.nodePortClusterIP, nullService type. Use NodePort or LoadBalancer to reach Lens without an ingress, and set publicUrl to the address browsers open.
adminTokenSecret.name, .key"", admin-tokenExisting Secret with the admin token. The chart generates lens-admin when the name is empty.
gateway.enabledfalseAccepts sign-in from a LiteLLM gateway. See Add Lens to LiteLLM.
gateway.secretName, serviceTokenSecret.nameBoth ""Existing Secrets with the two gateway connection values.
clickhouse.storage, clickhouse.storageClassName20Gi, nullSize and StorageClass of the ClickHouse volume. Size it for your traffic and retention.
clickhouseSecret.name, .key"", urlSecret with the URL of an existing ClickHouse. Replaces the bundled one.
retentionDays14Days Lens keeps trace data.
resources, clickhouse.resourcesRequests 100m CPU with 256Mi and 512Mi, memory limits 2Gi and 4GiLens and ClickHouse container resources.
extraEnv, extraEnvFromBoth []Extra environment settings, such as analysis model credentials.

Upgrade​

Back up ClickHouse first. Run the install command again with the same values file. Helm installs the newest released chart and reuses the generated credentials and the ClickHouse volume

To stay on one chart version, add --version with a version from Releases and images to the install command

LiteLLM Enterprise
SSO/SAML, audit logs, spend tracking, multi-team management, and guardrails, built for production.
Learn more →