Skip to content

Deploy MongoDB

Buzzy requires a Mongo database. This documentation will deploy a MongoDB replicaSet into your Kubernetes setup.

If you already have an externally hosted or cross-namespace Mongo database please skip this step.


  1. Config file downloaded

Update config file

Line Key Default Value Description
21 nfs.path /pv-buzzy/mongo Path to storage location
22 nfs.server [STORAGE_SERVER_IP] IP of NFS server

Deploy instructions

  1. Create the folder at nfs.path location on the nfs.server with access 777

    Note: please ensure sufficient storage is available (ie 100GB)

  2. Ensure each Node in your Kubernetes cluster can mount this location.

    Please modify the file /etc/exports on your NFS Server to include this line


    For example:


    Apply new NFS storage to exports

    exportfs -ra
  3. Install Mongo

    kubectl apply -f ./mongo.yaml


The following are the parameters required to connect to this database. You will need these later in the application setup. If you have your own MongoDB deployment, please substitute your values.

Key Default Value Description
MONGO_PROTOCOL mongo Protocol used in your Connections String
MONGO_HOST mongo-service:27017 Hostname of your Mongo service
MONGO_PARAMS replicaSet=replicaset Request parameters (ie ?)
MONGO_USER None Username to connect.
Authentication is disabled in this private deployment
MONGO_PASSWORD None Password to connect.
Authentication is disabled in this private deployment

Alternatively, these parameters can be set with MONGO_URI which is built from:



Or with optional credentials:



Last update: 2020-12-17