Add Helm chart for Kubernetes deployment#76
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Helm chart under
charts/librechat-exporterso the exporter can be deployed to Kubernetes and referenced from the official LibreChat chart (per #32).What's included
ghcr.io/virtuos/librechat_exporter(tag defaults to the chartappVersion),/metricson port 8000, readiness/liveness probes on/metrics.mongodb.urirendered into a chart-managed Secret, or point at anexistingSecret/existingSecretKey.envname/value map (e.g.METRICS_TIMEZONE,ENABLE_*,LIBRECHAT_URL) plus anextraEnvraw list forvalueFrom.serviceMonitor.enabled(Prometheus Operator CRDs), with configurable interval/labels/relabelings.README.mddocumenting all values; the main README gains a Helm section linking to it.Validation
helm lint(and--strict) pass.helm templaterenders cleanly across default,existingSecret,serviceMonitor.enabled=true, andserviceAccount.create=falsescenarios; rendered manifests parse as valid YAML; therequiredguard correctly fails when no MongoDB URI source is configured.Scope per discussion: chart source only — no packaging/publishing workflow in this PR.
Closes #32