summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mongo
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2021-10-18 14:18:18 +0000
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-11-05 18:32:07 +0000
commit0d9469d87c6173b20097499fea54013bd0f8169c (patch)
tree77f0991a4e1fc4c1fab9518901905478efa62fde /kubernetes/common/mongo
parenta9cee9a17d5f7ca3bc585e29fefcbe071e07a905 (diff)
[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 <andreas-geissler@telekom.de> Change-Id: Id054b36a9f8abea676e70511812d2aeb151d47e0
Diffstat (limited to 'kubernetes/common/mongo')
-rw-r--r--kubernetes/common/mongo/templates/statefulset.yaml2
1 files changed, 1 insertions, 1 deletions
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 }}