Skip to content

How the MongoDB Operator works

The MongoDB Operator reacts on reconcile requests of the Kubernetes API.

When a MongoDb resource is reconciled, it checks the status and creates a new database user and the Kubernetes secret if needed.

On cleanup requests, it will delete the user and, if requested, removes the database. Kubernetes will care about deleting the secret when deletion of the MongoDb resource is requested.

The process is described in the following sequence diagram:

uml diagram