Skip to content

Add Helm chart for Kubernetes deployment#76

Merged
Odrec merged 1 commit into
mainfrom
feat-helm-chart
Jun 16, 2026
Merged

Add Helm chart for Kubernetes deployment#76
Odrec merged 1 commit into
mainfrom
feat-helm-chart

Conversation

@Odrec

@Odrec Odrec commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Adds a Helm chart under charts/librechat-exporter so the exporter can be deployed to Kubernetes and referenced from the official LibreChat chart (per #32).

What's included

  • Deployment + Service — single replica, image ghcr.io/virtuos/librechat_exporter (tag defaults to the chart appVersion), /metrics on port 8000, readiness/liveness probes on /metrics.
  • MongoDB configmongodb.uri rendered into a chart-managed Secret, or point at an existingSecret/existingSecretKey.
  • Exporter env — every exporter variable is configurable via an env name/value map (e.g. METRICS_TIMEZONE, ENABLE_*, LIBRECHAT_URL) plus an extraEnv raw list for valueFrom.
  • Optional ServiceMonitor — gated behind serviceMonitor.enabled (Prometheus Operator CRDs), with configurable interval/labels/relabelings.
  • ServiceAccount, resources, scheduling, security contexts — standard values hooks.
  • Chart README.md documenting all values; the main README gains a Helm section linking to it.

Validation

helm lint (and --strict) pass. helm template renders cleanly across default, existingSecret, serviceMonitor.enabled=true, and serviceAccount.create=false scenarios; rendered manifests parse as valid YAML; the required guard correctly fails when no MongoDB URI source is configured.

Scope per discussion: chart source only — no packaging/publishing workflow in this PR.

Closes #32

Add charts/librechat-exporter, a single-purpose chart that deploys the
exporter as a Deployment + Service exposing /metrics on port 8000.

- MongoDB URI via a chart-managed Secret or an existingSecret reference
- All exporter env vars configurable via env map / extraEnv raw entries
- Optional Prometheus Operator ServiceMonitor (serviceMonitor.enabled)
- ServiceAccount, probes, resources and scheduling controls in values
- Chart README documents every value; main README links to it

Validated with helm lint (incl. --strict) and helm template across
default, existingSecret, ServiceMonitor-enabled and serviceAccount
toggles; rendered manifests parse as valid YAML.

Closes #32
@Odrec Odrec merged commit ea6181a into main Jun 16, 2026
21 checks passed
@Odrec Odrec deleted the feat-helm-chart branch June 16, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add helm chart

1 participant