-
Notifications
You must be signed in to change notification settings - Fork 12
Home
Securing MongoDB Enterprise on OpenShift
Using MongoDB Enterprise Operator with OpenShift and adding TLS using cert-manager
- Anthony Amanse anthony.amanse@ibm.com
This code pattern demonstrates the use MongoDB Enterprise operator from the Red Hat Marketplace. This will guide you how to deploy and secure your MongoDB deployments. Using the operator can make the configuration and deployment easier and standardize them accross your multiple OpenShift environments.
- Databases
- Containers
Deploying a MongoDB cluster can be a challenge as there are a lot of pieces and configuration involved like setting up the instances, providing backups, networking, etc. With the MongoDB Enterprise Kubernetes Operator, it minimizes and standardizes these steps in your Kubernetes and/or Openshift environments. This makes deploying a MongoDB in your own environment easier.
With the use of the operator, you can deploy MongoDB resources using the Kubernetes API and manage them natively. In this code pattern, you will learn how to install and use the operator and deploy a replica set. You will also secure the MongoDB deployment with authentication and manage users natively in Kubernetes/OpenShift. You will also secure it by adding TLS with the help of cert-manager. Cert-manager is another operator that allows you to manage certificates natively in the same environment.

- User registers OpenShift cluster with Red Hat Marketplace
- User can now install MongoDB Enterprise Operator in OpenShift
- Deploy an Ops Manager platform using with the provided APIs from the operator.
- Deploy the MongoDB replica set deployment which is also managed by the Ops Manager
- Install cert-manager operator which helps manage TLS certificates natively in OpenShift.
- Create certificates for each replica of the MongoDB deployment.
- Install the created certificates and enable TLS and Authentication on the MongoDB deployment.
- Add a MongoDB user for the MongoDB deployment with the operator.
- Deploy and connect an example Node.js application to the secured MongoDB database.
Find the detailed steps for this pattern in the readme file. The steps will show you how to:
- Clone the repo
- Install MongoDB Enterprise Advanced Operator
- Install MonogDB Resources
- Install cert-manager
- Generate Certificates and enable TLS
- Deploy sample application
- Red Hat OpenShift on IBM Cloud
- MongoDB and MongoDB Kubernetes Operator
- javascript/node