Skip to content
Merged
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
7 changes: 5 additions & 2 deletions charts/pca-ai-serving/charts/pca-observability/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ dependencies:
- name: langfuse
repository: https://langfuse.github.io/langfuse-k8s
version: 1.5.38
digest: sha256:8f6baa06158763167e7dcd54079ea3f5810111a0023c6558117fc62d0e788c62
generated: "2026-07-13T14:10:22.210943611+03:00"
- name: aws-compatible-storage
repository: https://rh-ai-quickstart.github.io/ai-architecture-charts
version: 0.2.0
digest: sha256:a5128c61ef539dc2956f2e6e274f984040eb6587c8f0442735bf75892b8d7939
generated: "2026-11-02T10:09:29.681673-05:00"
5 changes: 5 additions & 0 deletions charts/pca-ai-serving/charts/pca-observability/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ dependencies:
version: "1.5.38"
repository: https://langfuse.github.io/langfuse-k8s
condition: langfuse.enabled
# Object storage for Langfuse
- name: aws-compatible-storage
version: "0.2.0"
repository: https://rh-ai-quickstart.github.io/ai-architecture-charts
condition: aws-compatible-storage.enabled,langfuse.enabled
2 changes: 1 addition & 1 deletion charts/pca-ai-serving/charts/pca-observability/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ Guardrails proxy forwards these headers. Flagged requests (input skip or output

## Persistence

Modest defaults when Langfuse is on: Postgres ~10Gi, ClickHouse ~20Gi, MinIO ~10Gi. Omit `storageClassName` (cluster default) unless `persistence.storageClass` / bitnami persistence overrides are set. Grafana is ephemeral (ConfigMap dashboards).
Modest defaults when Langfuse is on: Postgres ~10Gi, ClickHouse ~20Gi, object storage ~10Gi (`aws-compatible-storage.storage.data.size`). Omit `storageClassName` (cluster default) unless `aws-compatible-storage.storage.data.storageClass` is set. Grafana is ephemeral (ConfigMap dashboards).
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
{{- $pgPass := $creds.postgresPassword | default "" -}}
{{- $redisPass := $creds.redisPassword | default "" -}}
{{- $chPass := $creds.clickhousePassword | default "" -}}
{{- $s3Pass := $creds.s3RootPassword | default "" -}}
{{- $userPass := $creds.initUserPassword | default "" -}}
{{- $pk := $creds.initProjectPublicKey | default "" -}}
{{- $sk := $creds.initProjectSecretKey | default "" -}}
Expand All @@ -22,7 +21,6 @@
{{- if and (not $pgPass) (index $existing.data "postgres-password") -}}{{- $pgPass = index $existing.data "postgres-password" | b64dec -}}{{- end -}}
{{- if and (not $redisPass) (index $existing.data "redis-password") -}}{{- $redisPass = index $existing.data "redis-password" | b64dec -}}{{- end -}}
{{- if and (not $chPass) (index $existing.data "clickhouse-password") -}}{{- $chPass = index $existing.data "clickhouse-password" | b64dec -}}{{- end -}}
{{- if and (not $s3Pass) (index $existing.data "s3-root-password") -}}{{- $s3Pass = index $existing.data "s3-root-password" | b64dec -}}{{- end -}}
{{- if and (not $userPass) (index $existing.data "init-user-password") -}}{{- $userPass = index $existing.data "init-user-password" | b64dec -}}{{- end -}}
{{- if and (not $pk) (index $existing.data "init-project-public-key") -}}{{- $pk = index $existing.data "init-project-public-key" | b64dec -}}{{- end -}}
{{- if and (not $sk) (index $existing.data "init-project-secret-key") -}}{{- $sk = index $existing.data "init-project-secret-key" | b64dec -}}{{- end -}}
Expand All @@ -34,7 +32,6 @@
{{- if not $pgPass -}}{{- $pgPass = randAlphaNum 24 -}}{{- end -}}
{{- if not $redisPass -}}{{- $redisPass = randAlphaNum 24 -}}{{- end -}}
{{- if not $chPass -}}{{- $chPass = randAlphaNum 24 -}}{{- end -}}
{{- if not $s3Pass -}}{{- $s3Pass = randAlphaNum 24 -}}{{- end -}}
{{- if not $userPass -}}{{- $userPass = randAlphaNum 24 -}}{{- end -}}
{{- if not $pk -}}{{- $pk = printf "pk-lf-%s" (randAlphaNum 32) -}}{{- end -}}
{{- if not $sk -}}{{- $sk = printf "sk-lf-%s" (randAlphaNum 32) -}}{{- end -}}
Expand All @@ -57,8 +54,6 @@ stringData:
postgres-password: {{ $pgPass | quote }}
redis-password: {{ $redisPass | quote }}
clickhouse-password: {{ $chPass | quote }}
s3-root-password: {{ $s3Pass | quote }}
s3-root-user: minio
init-user-password: {{ $userPass | quote }}
init-project-public-key: {{ $pk | quote }}
init-project-secret-key: {{ $sk | quote }}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{- if .Values.langfuse.enabled }}
{{- $ns := include "pca-observability.namespace" . -}}
{{- $secretName := "pca-langfuse-s3-credentials" -}}
{{- $existing := lookup "v1" "Secret" $ns $secretName -}}

{{- $creds := .Values.langfuse.credentials | default dict -}}
{{- $accessKeyId := $creds.s3AccessKeyId | default "" -}}
{{- $secretAccessKey := $creds.s3RootPassword | default "" -}}

{{- if $existing -}}
{{- if and (not $accessKeyId) (index $existing.data "AWS_ACCESS_KEY_ID") -}}{{- $accessKeyId = index $existing.data "AWS_ACCESS_KEY_ID" | b64dec -}}{{- end -}}
{{- if and (not $secretAccessKey) (index $existing.data "AWS_SECRET_ACCESS_KEY") -}}{{- $secretAccessKey = index $existing.data "AWS_SECRET_ACCESS_KEY" | b64dec -}}{{- end -}}
{{- end -}}

{{- if not $accessKeyId -}}{{- $accessKeyId = "s4admin" -}}{{- end -}}
{{- if not $secretAccessKey -}}{{- $secretAccessKey = randAlphaNum 24 -}}{{- end -}}

apiVersion: v1
kind: Secret
metadata:
name: {{ $secretName }}
namespace: {{ $ns }}
labels:
app.kubernetes.io/name: pca-langfuse-s3
app.kubernetes.io/part-of: pca-observability
annotations:
argocd.argoproj.io/sync-wave: "-1"
type: Opaque
stringData:
AWS_ACCESS_KEY_ID: {{ $accessKeyId | quote }}
AWS_SECRET_ACCESS_KEY: {{ $secretAccessKey | quote }}
{{- end }}
44 changes: 35 additions & 9 deletions charts/pca-ai-serving/charts/pca-observability/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,43 @@ langfuse:
size: 20Gi
zookeeper:
fullnameOverride: pca-langfuse-zookeeper
# Langfuse S3 client — external store (aws-compatible-storage below).
# deploy: false disables the MinIO bundled with the langfuse chart
s3:
deploy: true
fullnameOverride: pca-langfuse-s3
auth:
rootUser: minio
existingSecret: pca-langfuse-credentials
rootUserSecretKey: s3-root-user
rootPasswordSecretKey: s3-root-password
persistence:
deploy: false
bucket: langfuse
region: us-east-1
endpoint: http://pca-langfuse-s3:7480
forcePathStyle: true
accessKeyId:
secretKeyRef:
name: pca-langfuse-s3-credentials
key: AWS_ACCESS_KEY_ID
secretAccessKey:
secretKeyRef:
name: pca-langfuse-s3-credentials
key: AWS_SECRET_ACCESS_KEY
# Object storage for Langfuse, replacing the MinIO bundled with the langfuse chart.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there potentiallyu an update to the langfuse chart that would replace minio instead of this work around ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Langfuse chart is from https://github.com/langfuse/langfuse-k8s and is not maintained by us. It looks like they switched over to the legacy version of MinIO hosted by Bitnami Legacy:

Since MinIO is a minor component of this quickstart (just used by Langfuse for observability), we could continue with their solution for now to not add in complexity and I can close this PR. What do you think?

aws-compatible-storage:
fullnameOverride: pca-langfuse-s3
s3:
existingSecret: pca-langfuse-s3-credentials
region: us-east-1
endpoint: http://localhost:7480
auth:
enabled: false
route:
enabled: false
s3Api:
enabled: false
storage:
data:
size: 10Gi
# Creates the bucket only (urls: [] → nothing uploaded).
sampleFileUpload:
enabled: true
bucket: langfuse
urls: []
otelCollector:
image: otel/opentelemetry-collector-contrib:0.120.0
replicas: 1
Expand All @@ -157,4 +184,3 @@ persistence:
storageClass: ""
postgresSize: 10Gi
clickhouseSize: 20Gi
minioSize: 10Gi
Loading