Using a MongoDB document-oriented NoSQL database
MongoDB is a document-oriented NoSQL database. It stores its data as JSON documents. It also implements sharding techniques to distribute data across its nodes and uses the MapReduce technique for data aggregation. It’s easy to use and uses low resources for single node scenarios. For our MongoDB deployment, we are going to use a ConfigMap to store custom configurations. In this case, our MongoDB configuration is set to expose its port across the network, but for the moment we are not using Secrets to simplify the deployment. In the Using a PostgreSQL object-relational and SQL database section, we are going to explore the use of secrets, but before that, let’s follow the next steps to deploy MongoDB:
- Deploy your custom configuration to enable clients to connect to MongoDB:
$ cat <<EOF | kubectl apply -f - apiVersion: v1 kind: ConfigMap metadata: name: mongo-configmap data: mongod-conf...