MongoDB - Standalone

mongodb/standalone

Single-node MongoDB 7 deployment for Kubernetes

Deploys a single-replica MongoDB instance as a Kubernetes Deployment with a NodePort Service on port 27017.

Usage#

sew create --from mongodb/standalone

Details#

  • Image: mongo:7
  • Port: 27017
  • Resources: 250m–1 CPU, 512Mi–1Gi memory

Host access#

Kind maps hostPort 30017containerPort 30017 (NodePort) → targetPort 27017. From the host, connect to localhost:30017.

This is a minimal, persistence-free MongoDB suitable for development and testing. It is used as a dependency by higher-level contexts such as gravitee.io/oss/apim/mongodb.

Post-deploy notes

Your cluster "mongo-standalone" is ready.

MongoDB is available at localhost:30017 (no authentication).

If you have mongosh installed you can test the connection with:

  mongosh mongodb://localhost:30017