Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Completed
Created by Guest
Created on Aug 3, 2020

Allow customizing mongod port in kubernetes

The additionalMongodConfig feature was a great addition to the Operator. Setting the spec.additionalMongodConfig.net.port to a value other than the default 27017 is not working as expected. The default port is still used despite the custom port value appearing in the MongoDB resource description/manifest. A common security compliance checklist often includes running services on non-default ports. Please consider allowing the net.port to be set to a custom value; this may have implications with the services that are automatically created in the cluster.
  • ADMIN RESPONSE
    Aug 1, 2025
    This is now confirmed to work as expected.
  • Attach files