From 0d9469d87c6173b20097499fea54013bd0f8169c Mon Sep 17 00:00:00 2001 From: Andreas Geissler Date: Mon, 18 Oct 2021 14:18:18 +0000 Subject: [PATCH] [COMMON] Changed mongo storage location to enable persistance Changed the volume mounted from /var/lib/mongo to /data/db, which is the default storage location of mongo Issue-ID: OOM-2864 Signed-off-by: Andreas Geissler Change-Id: Id054b36a9f8abea676e70511812d2aeb151d47e0 --- kubernetes/common/mongo/templates/statefulset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/common/mongo/templates/statefulset.yaml b/kubernetes/common/mongo/templates/statefulset.yaml index 11602054e8..9f24493392 100644 --- a/kubernetes/common/mongo/templates/statefulset.yaml +++ b/kubernetes/common/mongo/templates/statefulset.yaml @@ -72,7 +72,7 @@ spec: periodSeconds: {{ .Values.readiness.periodSeconds }} volumeMounts: - name: {{ include "common.fullname" . }}-data - mountPath: /var/lib/mongo + mountPath: /data/db resources: {{ include "common.resources" . | nindent 12 }} {{ include "common.containerSecurityContext" . | indent 10 }} {{- if .Values.nodeSelector }} -- 2.16.6