Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/langfuse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ Open source LLM engineering platform - LLM observability, metrics, evaluations,
| langfuse.worker.vpa.minAllowed | object | `{}` | The minimum allowed resources for the langfuse worker pods |
| langfuse.worker.vpa.updatePolicy.updateMode | string | `"Auto"` | The update policy mode for the langfuse worker pods |
| nameOverride | string | `""` | Override the name for the selector labels, defaults to the chart name |
| namespaceOverride | string | `""` | Override the namespace for all deployed resources, defaults to the release namespace |
| postgresql.architecture | string | `"standalone"` | |
| postgresql.args | string | `""` | Additional database connection arguments |
| postgresql.auth.args | string | `""` | Additional database connection arguments |
Expand Down
11 changes: 11 additions & 0 deletions charts/langfuse/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ app.kubernetes.io/name: {{ include "langfuse.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Return the namespace to use
*/}}
{{- define "langfuse.namespace" -}}
{{- if .Values.namespaceOverride }}
{{- .Values.namespaceOverride }}
{{- else }}
{{- .Release.Namespace }}
{{- end }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ include "langfuse.fullname" . }}
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
{{- with .Values.langfuse.ingress.additionalLabels }}
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/nextauth-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ include "langfuse.fullname" . }}-nextauth
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
data:
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/postgresql-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ include "langfuse.fullname" . }}-postgresql
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
type: Opaque
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "langfuse.serviceAccountName" . }}
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
{{- with .Values.langfuse.serviceAccount.annotations }}
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/web/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "langfuse.fullname" . }}-web
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
{{- with .Values.langfuse.web.deployment.additionalLabels }}
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/web/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "langfuse.fullname" . }}-web
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/web/scaled-object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: {{ include "langfuse.fullname" . }}-web
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/web/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "langfuse.fullname" . }}-web
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
{{- with .Values.langfuse.web.service.additionalLabels }}
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/web/vpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: {{ include "langfuse.fullname" . }}-web
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/worker/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "langfuse.fullname" . }}-worker
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
{{- with .Values.langfuse.worker.deployment.additionalLabels }}
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/worker/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "langfuse.fullname" . }}-worker
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/worker/scaled-object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: {{ include "langfuse.fullname" . }}-worker
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion charts/langfuse/templates/worker/vpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: {{ include "langfuse.fullname" . }}-worker
namespace: {{ $.Release.Namespace }}
namespace: {{ include "langfuse.namespace" . }}
labels:
{{- include "langfuse.labels" . | nindent 4 }}
spec:
Expand Down
3 changes: 3 additions & 0 deletions charts/langfuse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ nameOverride: ""
# -- Override the full name of the deployed resources, defaults to a combination of the release name and the name for the selector labels
fullnameOverride: ""

# -- Override the namespace for all deployed resources, defaults to the release namespace
namespaceOverride: ""

# Core Langfuse Configuration
langfuse:
# Logging configuration
Expand Down