From 6d4becee83ffe6af9162abc705ae25a739ab42b4 Mon Sep 17 00:00:00 2001 From: MrCroxx Date: Wed, 7 May 2025 09:36:38 +0800 Subject: [PATCH 1/2] [BUG]: fix dev k8s query-service-cache mount with subpath Signed-off-by: MrCroxx --- k8s/distributed-chroma/templates/query-service.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/k8s/distributed-chroma/templates/query-service.yaml b/k8s/distributed-chroma/templates/query-service.yaml index 8f08c305204..5199f500991 100644 --- a/k8s/distributed-chroma/templates/query-service.yaml +++ b/k8s/distributed-chroma/templates/query-service.yaml @@ -75,6 +75,7 @@ spec: {{if .Values.queryService.cache}} - name: query-service-cache mountPath: {{ .Values.queryService.cache.mountPath }} + subPathExpr: $(POD_NAME) {{ end }} ports: - containerPort: 50051 @@ -88,6 +89,10 @@ spec: # TODO properly use flow control here to check which type of value we need. {{ .value | nindent 14 }} {{ end }} + - name: POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name - name: CHROMA_QUERY_SERVICE__MY_MEMBER_ID valueFrom: fieldRef: From 49bc3934cfc894602e4da2c52ffb6d99e830783a Mon Sep 17 00:00:00 2001 From: MrCroxx Date: Wed, 7 May 2025 10:06:03 +0800 Subject: [PATCH 2/2] [BUG]: fix compaction cache, too Signed-off-by: MrCroxx --- k8s/distributed-chroma/templates/query-service.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/k8s/distributed-chroma/templates/query-service.yaml b/k8s/distributed-chroma/templates/query-service.yaml index 5199f500991..cc50ee5f8c8 100644 --- a/k8s/distributed-chroma/templates/query-service.yaml +++ b/k8s/distributed-chroma/templates/query-service.yaml @@ -75,7 +75,7 @@ spec: {{if .Values.queryService.cache}} - name: query-service-cache mountPath: {{ .Values.queryService.cache.mountPath }} - subPathExpr: $(POD_NAME) + subPathExpr: $(CHROMA_QUERY_SERVICE__MY_MEMBER_ID) {{ end }} ports: - containerPort: 50051 @@ -89,10 +89,6 @@ spec: # TODO properly use flow control here to check which type of value we need. {{ .value | nindent 14 }} {{ end }} - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - name: CHROMA_QUERY_SERVICE__MY_MEMBER_ID valueFrom: fieldRef: