MongoDB

High-performance, flexible, document-oriented NoSQL database for JSON with native support for hierarchical data and ad-hoc queries.

Version:

8.0.19

back to Marketplace

VM Requisites

Resource Minimum
CPU 2 vCPU
RAM 4 GB
Disk 40 GB
Operating System Ubuntu 22.04 / 24.04

Access Port

Port Protocol Usage
30017 TCP MongoDB wire protocol

How To Access

With mongosh

mongosh "mongodb://<USUARIO>:<PASSWORD>@<IP_DE_LA_VM>:30017/?authSource=admin"

Connection string for applications

mongodb://<USERNAME>:<PASSWORD>@<VM_IP>:30017/<database>?authSource=admin

Examples by language

# Python (pymongo)
from pymongo import MongoClient
client = MongoClient("mongodb://root:<PASSWORD>@<IP_DE_LA_VM>:30017/?authSource=admin")
// Node.js (mongoose)
mongoose.connect("mongodb://root:<PASSWORD>@<IP_DE_LA_VM>:30017/mi_app?authSource=admin");

ℹ️ The parameter ?authSource=admin is required when connecting as the root user. Without it, authentication will fail.

Verify that MongoDB is active

# View the MongoDB pod
`kubectl get pods -A | grep mongodb`

# View the installation log
`tail -f /var/log/cuemby/bootstrap.log`

# Verify that the port is listening
`ss -tlnp | grep 30017`

Expected output:

NAME                       READY   STATUS    RESTARTS
mongodb-xxxxxxxxx-xxxxx    1/1     Running   0        ← Running ✓

Configuration Parameters

Parameter Default Description
MONGO_INITDB_ROOT_PASSWORD ⚠️ auto-generated Root user password. If left blank, Cuemby generates a random one.
MONGO_INITDB_ROOT_USERNAME root Username root.
MONGODB_DATA_SIZE 20Gi Persistent volume size for databases.

ℹ️ If you did not set a password during deployment, look for it in the deployment outputs in the Cuemby portal.

First Steps (quick start)

// Select or create a database
use my_app

// Insert a document
db.users.insertOne({ name: "Martin", active: true, role: "admin" })

// Query documents
db.users.find({ active: true })

// Create an index
db.users.createIndex({ name: 1 })

// List databases
show dbs

Quick Troubleshooting

Problem Probable cause Solution
Authentication failed authSource=admin missing or incorrect password Add ?authSource=admin to the connection string and verify the password in the deployment outputs.
Connection refused MongoDB still getting started Wait ~3 min and check tail -f /var/log/cuemby/bootstrap.log.
not authorized on User without permissions in that database Log in as the root user and create a user with specific permissions for that database.
Pod in CrashLoopBackOff Insufficient disk space or RAM Check with kubectl describe pod -n .

Cuemby Cloud

IaaS

About Cuemby Cloud

Cuemby Cloud is enterprise-grade cloud infrastructure managed from a single console, built for stronger security, predictable operations, and easy scaling across regions.

Datacenters regions available in Colombia, Ecuador, and Chile

Backed by Tier III / Tier IV data center locations

Zero Network Ingress and Egress Fees

24/7 local expert support

Ready to Modernize Your Enterprise?

Future challenges demand future-ready solutions.
Let’s get started!

© Copyright | Cuemby® 2025