Skip to content

Commit

Permalink
feat: add option to set basepath for readiness/lineness (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinux-l5d authored Nov 12, 2024
1 parent 2c7800c commit 7c3a816
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The following table lists the useful configurable parameters of the Langfuse cha
| --- | --- | --- |
| `langfuse.nextauth.url` | When deploying to production, set the `nextauth.url` value to the canonical URL of your site. | `http://localhost:3000` |
| `langfuse.nextauth.secret` | Used to encrypt the NextAuth.js JWT, and to hash email verification tokens. In case the value is set to `null`, then the default `NEXTAUTH_SECRET` environment variable will not be set. | `changeme` |
| `langfuse.next.healthcheckBasePath` | Base path for the liveness/readiness probes. Should not include trailing slash. | `""` |
| `langfuse.port` | Port to run Langfuse on | `3000` |
| `langfuse.salt` | Salt for API key hashing. In case the value is set to `null`, then the default `SALT` environment variable will not be set. | `changeme` |
| `langfuse.telemetryEnabled` | Weither or not to enable telemetry (reports basic usage statistics of self-hosted instances to a centralized server). | `true` |
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: langfuse
version: 0.7.0
version: 0.8.0
description: Open source LLM engineering platform - LLM observability, metrics, evaluations, prompt management.
type: application
keywords:
Expand Down
4 changes: 2 additions & 2 deletions charts/langfuse/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ spec:
protocol: TCP
livenessProbe:
httpGet:
path: /api/public/health
path: {{ .Values.langfuse.next.healthcheckBasePath | default "" | trimSuffix "/" }}/api/public/health
port: http
readinessProbe:
httpGet:
path: /api/public/ready
path: {{ .Values.langfuse.next.healthcheckBasePath | default "" | trimSuffix "/" }}/api/public/ready
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/langfuse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ fullnameOverride: ""
langfuse:
port: 3000
nodeEnv: production
next:
healthcheckBasePath: ""
nextauth:
url: http://localhost:3000
secret: changeme
Expand Down
2 changes: 2 additions & 0 deletions examples/values-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ replicaCount: 1
langfuse:
port: 3000
nodeEnv: production
next:
healthcheckBasePath: ""
nextauth:
url: http://localhost:3000
telemetryEnabled: True
Expand Down

0 comments on commit 7c3a816

Please sign in to comment.