Skip to content

Commit

Permalink
feat: add pod labels function (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen911 authored Mar 4, 2025
1 parent c911f55 commit cba8856
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
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: 1.0.0-rc.5
version: 1.0.0-rc.6
description: Open source LLM engineering platform - LLM observability, metrics, evaluations, prompt management.
type: application
keywords:
Expand Down
5 changes: 4 additions & 1 deletion charts/langfuse/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# langfuse

![Version: 1.0.0-rc.5](https://img.shields.io/badge/Version-1.0.0--rc.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.29.1](https://img.shields.io/badge/AppVersion-3.29.1-informational?style=flat-square)
![Version: 1.0.0-rc.6](https://img.shields.io/badge/Version-1.0.0--rc.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.29.1](https://img.shields.io/badge/AppVersion-3.29.1-informational?style=flat-square)

Open source LLM engineering platform - LLM observability, metrics, evaluations, prompt management.

Expand Down Expand Up @@ -77,6 +77,7 @@ Open source LLM engineering platform - LLM observability, metrics, evaluations,
| langfuse.nodeEnv | string | `"production"` | Node.js environment to use for all langfuse deployments |
| langfuse.nodeSelector | object | `{}` | Node selector for all langfuse deployments |
| langfuse.pod.annotations | object | `{}` | Annotations for all langfuse pods |
| langfuse.pod.labels | object | `{}` | Labels for all langfuse pods |
| langfuse.podSecurityContext | object | `{}` | Pod security context for all langfuse deployments |
| langfuse.replicas | int | `1` | Number of replicas to use for all langfuse deployments. Can be overridden by the individual deployments |
| langfuse.resources | object | `{}` | Resources for all langfuse deployments. Can be overridden by the individual deployments |
Expand All @@ -103,6 +104,7 @@ Open source LLM engineering platform - LLM observability, metrics, evaluations,
| langfuse.web.livenessProbe.successThreshold | int | `1` | Success threshold for livenessProbe. |
| langfuse.web.livenessProbe.timeoutSeconds | int | `5` | Timeout seconds for livenessProbe. |
| langfuse.web.pod.annotations | object | `{}` | Annotations for the web pods |
| langfuse.web.pod.labels | object | `{}` | Labels for the web pods |
| langfuse.web.readinessProbe.failureThreshold | int | `3` | Failure threshold for readinessProbe. |
| langfuse.web.readinessProbe.initialDelaySeconds | int | `20` | Initial delay seconds for readinessProbe. |
| langfuse.web.readinessProbe.path | string | `"/api/public/ready"` | Path to check for readiness. |
Expand Down Expand Up @@ -136,6 +138,7 @@ Open source LLM engineering platform - LLM observability, metrics, evaluations,
| langfuse.worker.livenessProbe.successThreshold | int | `1` | Success threshold for livenessProbe. |
| langfuse.worker.livenessProbe.timeoutSeconds | int | `5` | Timeout seconds for livenessProbe. |
| langfuse.worker.pod.annotations | object | `{}` | Annotations for the worker pods |
| langfuse.worker.pod.labels | object | `{}` | Labels for the worker pods |
| langfuse.worker.replicas | string | `nil` | Number of replicas to use if HPA is not enabled. Defaults to the global replicas |
| langfuse.worker.resources | object | `{}` | Resources for the langfuse worker pods. Defaults to the global resources |
| langfuse.worker.vpa.controlledResources | list | `[]` | The resources to control for the langfuse worker pods |
Expand Down
4 changes: 4 additions & 0 deletions charts/langfuse/templates/web/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
labels:
{{- include "langfuse.selectorLabels" . | nindent 8 }}
app: web
{{- $podLabels := merge (.Values.langfuse.web.pod.labels | default dict) (.Values.langfuse.pod.labels | default dict) }}
{{- with $podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with (.Values.langfuse.web.image.pullSecrets | default .Values.langfuse.image.pullSecrets) }}
imagePullSecrets:
Expand Down
4 changes: 4 additions & 0 deletions charts/langfuse/templates/worker/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ spec:
labels:
{{- include "langfuse.selectorLabels" . | nindent 8 }}
app: worker
{{- $podLabels := merge (.Values.langfuse.worker.pod.labels | default dict) (.Values.langfuse.pod.labels | default dict) }}
{{- with $podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with (.Values.langfuse.worker.image.pullSecrets | default .Values.langfuse.image.pullSecrets) }}
imagePullSecrets:
Expand Down
6 changes: 6 additions & 0 deletions charts/langfuse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ langfuse:
pod:
# -- Annotations for all langfuse pods
annotations: {}
# -- Labels for all langfuse pods
labels: {}
deployment:
# -- Annotations for all langfuse deployments
annotations: {}
Expand Down Expand Up @@ -135,6 +137,8 @@ langfuse:
pod:
# -- Annotations for the web pods
annotations: {}
# -- Labels for the web pods
labels: {}
service:
# -- The type of service to use for the langfuse web application
type: ClusterIP
Expand Down Expand Up @@ -226,6 +230,8 @@ langfuse:
pod:
# -- Annotations for the worker pods
annotations: {}
# -- Labels for the worker pods
labels: {}

# -- Resources for the langfuse worker pods. Defaults to the global resources
resources: {}
Expand Down

0 comments on commit cba8856

Please sign in to comment.