From a91493a535b864ba8db60f12fa425a4e0eca6ab9 Mon Sep 17 00:00:00 2001 From: Peter Zhao Date: Mon, 2 Nov 2026 10:58:21 -0500 Subject: [PATCH] fix(observability): replace Langfuse's bundled MinIO with aws-compatible-storage The langfuse chart bundles Bitnami MinIO (bitnamilegacy/minio, Docker Hub) as Langfuse's S3 backend. Switch to the shared ai-architecture-charts aws-compatible-storage subchart; S3 behaviour is otherwise unchanged. - Chart.yaml: add aws-compatible-storage 0.2.0. The condition falls back to langfuse.enabled, so the store exists only with Langfuse. Commit Chart.lock and the packaged chart (subcharts are vendored in this repo). - values: langfuse.s3.deploy=false and point the client at pca-langfuse-s3:7480 with path-style addressing. The MinIO-only keys (fullnameOverride/auth/persistence) and the dead persistence.minioSize are replaced by the subchart block; no UI or S3 Route, so the API stays cluster-internal. - Credentials: dedicated generated Secret pca-langfuse-s3-credentials (AWS_ACCESS_KEY_ID plus a lookup-stable randAlphaNum secret) so the store pod only sees the keys it needs. Langfuse and the bucket Job reference it; the now-dead s3-root-user/s3-root-password are dropped from pca-langfuse-credentials. - Bucket: the subchart's sampleFileUpload Job creates `langfuse` (urls: []). - README: Persistence no longer mentions MinIO / persistence.minioSize. --- .../charts/pca-observability/Chart.lock | 7 ++- .../charts/pca-observability/Chart.yaml | 5 ++ .../charts/pca-observability/README.md | 2 +- .../charts/aws-compatible-storage-0.2.0.tgz | Bin 0 -> 9142 bytes .../templates/langfuse-secret.yaml | 5 -- .../templates/object-storage-secret.yaml | 32 +++++++++++++ .../charts/pca-observability/values.yaml | 44 ++++++++++++++---- 7 files changed, 78 insertions(+), 17 deletions(-) create mode 100644 charts/pca-ai-serving/charts/pca-observability/charts/aws-compatible-storage-0.2.0.tgz create mode 100644 charts/pca-ai-serving/charts/pca-observability/templates/object-storage-secret.yaml diff --git a/charts/pca-ai-serving/charts/pca-observability/Chart.lock b/charts/pca-ai-serving/charts/pca-observability/Chart.lock index 6f0c2e3..27b5cf9 100644 --- a/charts/pca-ai-serving/charts/pca-observability/Chart.lock +++ b/charts/pca-ai-serving/charts/pca-observability/Chart.lock @@ -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" diff --git a/charts/pca-ai-serving/charts/pca-observability/Chart.yaml b/charts/pca-ai-serving/charts/pca-observability/Chart.yaml index 497be4d..5ae66a7 100644 --- a/charts/pca-ai-serving/charts/pca-observability/Chart.yaml +++ b/charts/pca-ai-serving/charts/pca-observability/Chart.yaml @@ -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 diff --git a/charts/pca-ai-serving/charts/pca-observability/README.md b/charts/pca-ai-serving/charts/pca-observability/README.md index 7380fdd..c919d7c 100644 --- a/charts/pca-ai-serving/charts/pca-observability/README.md +++ b/charts/pca-ai-serving/charts/pca-observability/README.md @@ -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). diff --git a/charts/pca-ai-serving/charts/pca-observability/charts/aws-compatible-storage-0.2.0.tgz b/charts/pca-ai-serving/charts/pca-observability/charts/aws-compatible-storage-0.2.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..dafc9251631dd3c39b39e4964927a221308f1582 GIT binary patch literal 9142 zcmV;nBT3vJiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PKDJQzN&sXnyuz(a*`Lh4a>fKY-139c~rNvKtZ>d@*Ei-l-HN z&&amIcr+_%03X8t{z@M+qxrJOhK1b(r7DXxQmfT!b+=kl3*GRROJ^YxWaQ%(7nGq1 z-a42fCY(8%`QJS}wcG9X?)J9&x7}{%|84K=cE9WFba#8*_RdbP_g%ZQv$NCr4%&~< z_R-WUwkAYOqmkp%*%q6&5aF0z z6BqN=DB9xNjVnCAq0Hm`MhkdP{!asMw4j`08!d2gIBm3mO>P=9L;`_GfSH02AlY<` z%>EG!O>6M>qM<)lK;<-IE>=KlVlL*P1Q&)ragn52<2og1*J(GNd&IM;V*XzvKf?Tx z1i<3?-`VMGw{!Dqj3x zM`-R4S~`a-U=yU6IUWBe+|@+J{*lts2DKJaUcvuttuS53=6JW4H>ycLiTq;xL^cxO_)LC`$Ju> z5C8t%06D$Jj1domm|}3%AWJc*WMTZR53gR86(7r{RcZNGS&d;Y9>m;G@m?}c!ye$k z3n>W%T$~-lM#M4r)J6W3a?yXY{bO78iv$9*0QqqC;gh6dT&WMQq(JU(ZDlLHvKo-I zpn)3qi4wrCBHqG?i&n=jhFlkO4p(>%NAF-mia_iE2@HK@tGdW9cz)#d;T7LT-i!n` z3|-U)RSHM{wI4%MuykGm?1E#!w}cB4Ok%K-5W^n040|{b1o>Q*J{kkZ;x+J|V<8AA z@MKo5EkFzdnFJCkRao?9Pf zCnXv&t{Pm-0;kGgKt9j_w*;AC_=Ao>Op%biKmv0>FpAtONwmO&DD)}vIB=w-iAUXN zh6BN!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-sD{Qut0&dd7mDbnKgpJ9My-oMPc%A=U8eOz;R_~Iyz4Gg0> zczBE=Uu1-yC4|c3POr6$vJ5Sa3Aa(Hw6E$RW69xM$mEPAk%?4m3u+w>qGFE-->O{> z$ECBJEG`^AGcQl&HXhPov;&66Le$_ijIlcdD{L!>aLxvAgU$nBsjy!`^1RAr-5rZ z6!;YhZ9*wMk_pF5xYP|*Zl7ZOX0^9o^{Q5kHy4`akd#)njI#y{TdwWsgm?T>66;v%d}SDss*ubLL> ze-$U~;TFIW{omWp>;G=Mz5R0j=Sk9H{jV5cwdKFH)>bhgtreLG20(&|y-~DqIg~~p z{UU2v9ksHK7zim7P8!UhC|GMp$_P!=1x&C!LwS2VC-Q|PQth}5Dd8m7uMHvzNP#`hjz`GIIW7A2@SFy zI`gr@MVAk;tUPlyFj!|kSmr665pB-M$(07yl~`u%d<#`O@a{s>o$wPXP9onwWrwp+ z%-5PyEosspsvF!Z^7slh6Na`<=$K>4X=L7#Lpph?B%ylyAmv-@j~mglW@~NdRf=5N ze33u%O+1eLU!wn&mHWlde{>7+e|y_+UiAM{q-FYF#{*s007yee=Pdwy8&aMwl;3Rs z*jC#A6CO$VlpGU&eC40MXR&ncPm1V?5OtH>W3Zo4$Dt@SHui8b=Elo{;*@- zVfpE98_gw0zjK$<#1tp1Y$b{dRz#V*&X|DA{Z`tG3B1!uc*b z$6bH(i>p{=$sUX(t)zb*!!?k4_?}kzEVSbAY7jFd-02yf;M@Ac7a}1r3;NJZq80zp z{Cl|o7V7`Js9&>Y^B+%=zK7uyG3*(&u9j+3?9WzFHto7q_Q{g4Oq?h!P{(kBI2LJ&7{~YxRd;sbI03kI9 A00000 literal 0 HcmV?d00001 diff --git a/charts/pca-ai-serving/charts/pca-observability/templates/langfuse-secret.yaml b/charts/pca-ai-serving/charts/pca-observability/templates/langfuse-secret.yaml index a424245..b708609 100644 --- a/charts/pca-ai-serving/charts/pca-observability/templates/langfuse-secret.yaml +++ b/charts/pca-ai-serving/charts/pca-observability/templates/langfuse-secret.yaml @@ -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 "" -}} @@ -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 -}} @@ -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 -}} @@ -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 }} diff --git a/charts/pca-ai-serving/charts/pca-observability/templates/object-storage-secret.yaml b/charts/pca-ai-serving/charts/pca-observability/templates/object-storage-secret.yaml new file mode 100644 index 0000000..7d7ce80 --- /dev/null +++ b/charts/pca-ai-serving/charts/pca-observability/templates/object-storage-secret.yaml @@ -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 }} diff --git a/charts/pca-ai-serving/charts/pca-observability/values.yaml b/charts/pca-ai-serving/charts/pca-observability/values.yaml index fda6ebb..56923df 100644 --- a/charts/pca-ai-serving/charts/pca-observability/values.yaml +++ b/charts/pca-ai-serving/charts/pca-observability/values.yaml @@ -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. +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 @@ -157,4 +184,3 @@ persistence: storageClass: "" postgresSize: 10Gi clickhouseSize: 20Gi - minioSize: 10Gi