[COMMON] Changed mongo storage location to enable persistance 76/125076/5
authorAndreas Geissler <andreas-geissler@telekom.de>
Mon, 18 Oct 2021 14:18:18 +0000 (14:18 +0000)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 5 Nov 2021 18:32:07 +0000 (18:32 +0000)
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 <andreas-geissler@telekom.de>
Change-Id: Id054b36a9f8abea676e70511812d2aeb151d47e0

kubernetes/common/mongo/templates/statefulset.yaml

index 1160205..9f24493 100644 (file)
@@ -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 }}