Skip to content

Commit cec5983

Browse files
OhJuhunwrn14897
andauthored
use remote mongodb (#29)
Co-authored-by: Warren <[email protected]>
1 parent a5e2bd0 commit cec5983

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.changeset/metal-queens-give.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"helm-charts": patch
3+
---
4+
5+
enable using remote mongodb

charts/hdx-oss-v2/templates/configmaps/app-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ data:
1313
HYPERDX_APP_URL: "{{ .Values.hyperdx.appUrl }}"
1414
HYPERDX_LOG_LEVEL: "{{ .Values.hyperdx.logLevel }}"
1515
MINER_API_URL: "http://{{ include "hdx-oss.fullname" . }}-miner:5123"
16-
MONGO_URI: "mongodb://{{ include "hdx-oss.fullname" . }}-mongodb:{{ .Values.mongodb.port }}/hyperdx"
16+
MONGO_URI: "{{ tpl .Values.hyperdx.mongoUri . }}"
1717
NEXT_PUBLIC_SERVER_URL: "http://localhost:{{ .Values.hyperdx.apiPort }}"
1818
OTEL_SERVICE_NAME: "hdx-oss-api"
1919
USAGE_STATS_ENABLED: "{{ .Values.hyperdx.usageStatsEnabled | default true }}"

charts/hdx-oss-v2/templates/hyperdx-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ spec:
2828
{{- end -}}
2929
{{- end }}
3030
spec:
31+
{{- if not .Values.mongodb.enabled }}
3132
initContainers:
3233
- name: wait-for-mongodb
3334
image: busybox
3435
command: ['sh', '-c', 'until nc -z {{ include "hdx-oss.fullname" . }}-mongodb {{ .Values.mongodb.port }}; do echo waiting for mongodb; sleep 2; done;']
36+
{{- end }}
3537
containers:
3638
- name: app
3739
image: "{{ .Values.hyperdx.image }}"

charts/hdx-oss-v2/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ hyperdx:
1414
usageStatsEnabled: true
1515
# Endpoint to send hyperdx logs/traces/metrics to.Defaults to the chart's otel collector endpoint.
1616
otelExporterEndpoint: http://{{ include "hdx-oss.fullname" . }}-otel-collector:{{ .Values.otel.httpPort }}
17+
mongoUri: mongodb://{{ include "hdx-oss.fullname" . }}-mongodb:{{ .Values.mongodb.port }}/hyperdx
1718
annotations: {}
1819
# myAnnotation: "myValue"
1920
labels: {}

0 commit comments

Comments
 (0)