Docs Menu
Docs Home
/
MongoDB Ops Manager
/ /

Configure Kubernetes for Deploying MongoDB Resource

On this page

  • Verify Permissions
  • Navigate to the Kubernetes Setup Page in the Ops Manager UI
  • Set Up Kubernetes for a MongoDB Resource

You can use the Kubernetes Operator to deploy MongoDB resources such as a replica set, a sharded cluster, or a standalone instance using an object. Ops Manager can generate the YAML files you need to configure your Kubernetes environment for deploying a MongoDB Database resource.

To generate the YAML files:

You must have one of the following roles to access the Ops Manager UI for setting up Kubernetes:

To access the Kubernetes Setup page in the Ops Manager UI:

1
2
3

If you are a Global Owner or Organization Owner, you can access the Kubernetes Setup page in the Ops Manager UI by doing the following also:

1
2

The MongoDB Enterprise Kubernetes Operator requires a Kubernetes ConfigMap to create or link your Ops Manager project.

You can use the Ops Manager Kubernetes Setup page to automatically generate the ConfigMap. The generated YAML file for the ConfigMap looks similar to the following:

You need to store your Programmatic API Key as a Kubernetes secret to create or update Kubernetes objects in your Ops Manager project. A Kubernetes secret stores authentication credentials so only Kubernetes can access them.

To generate the YAML files, you must do the following:

1

Create a YAML file that contains your Programmatic API Key in the /mongodb-ops-manager/ folder.

2

Create a YAML file that contains the ConfigMap to connect to your HTTPS-enabled Ops Manager instance in the /mongodb-ops-manager/ folder.

3

In your server's conf-mms.properties file, configure the following settings:

  • kubernetes.templates.credentialsFilePath

  • kubernetes.templates.projectFilePath

To learn more about these settings, see Kubernetes Setup.

To setup Kubernetes for a MongoDB resource:

← Deploy MongoDB Resources Using Kubernetes