From eaed1b5e10c2263b6a0004d0664d54faa377147e Mon Sep 17 00:00:00 2001 From: Ben Parees Date: Tue, 26 Apr 2016 15:39:57 -0400 Subject: [PATCH] use an emptydir volume for mongodb instead of no volume --- openshift/templates/nodejs-mongodb.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/openshift/templates/nodejs-mongodb.json b/openshift/templates/nodejs-mongodb.json index 661bcbb..bd775ee 100644 --- a/openshift/templates/nodejs-mongodb.json +++ b/openshift/templates/nodejs-mongodb.json @@ -330,6 +330,20 @@ "limits": { "memory": "${MEMORY_MONGODB_LIMIT}" } + }, + "volumeMounts": [ + { + "name": "${DATABASE_SERVICE_NAME}-data", + "mountPath": "/var/lib/mongodb/data" + } + ] + } + ], + "volumes": [ + { + "name": "${DATABASE_SERVICE_NAME}-data", + "emptyDir": { + "medium": "" } } ]