Skip to content

Commit e779373

Browse files
Junyi-99Junyi Houclaude
authored
fix: set PD_MONGO_URI explicitly for in-cluster mongo (#143)
Co-authored-by: Junyi Hou <junyi@xtras3.tail08d22c.ts.net> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> fix in #138 (staging) and #140 (main).
1 parent 5e2ea74 commit e779373

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

helm-chart/templates/paperdebugger.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ data:
7676
INFERENCE_BASE_URL: "{{ .Values.inference_base_url }}"
7777
INFERENCE_API_KEY: "{{ .Values.inference_api_key }}"
7878
JWT_SIGNING_KEY: "{{ .Values.jwt_signing_key }}"
79-
{{ if not .Values.mongo.in_cluster }}
79+
{{- if .Values.mongo.in_cluster }}
80+
PD_MONGO_URI: "mongodb://mongo.{{ .Values.namespace }}.svc.cluster.local:27017/?replicaSet=in-cluster"
81+
{{- else }}
8082
PD_MONGO_URI: "{{ .Values.mongo.uri }}"
81-
{{ end }}
83+
{{- end }}

0 commit comments

Comments
 (0)