Prerequisites
On this page
Procedure
To install the MongoDB Kubernetes Operator, you must:
Have a Kubernetes solution available to use, and verify hardware architecture support.
If you need a Kubernetes solution, see the Kubernetes documentation on picking the right solution. Review supported hardware architectures.
Clone the MongoDB Enterprise Kubernetes Operator repository.
git clone https://github.com/mongodb/mongodb-enterprise-kubernetes.git
Note
You can use Helm to install the Kubernetes Operator. To learn how to install Helm, see its documentation on GitHub.
Create a namespace for your Kubernetes deployment.
By default, The Kubernetes Operator uses the mongodb
namespace. To
simplify your installation, consider creating a namespace labeled
mongodb
using the following kubectl command:
kubectl create namespace mongodb
If you do not want to use the mongodb
namespace, you can label
your namespace anything you like:
kubectl create namespace <namespaceName>
Optional: Have a running Ops Manager.
If you don't deploy an Ops Manager resource with the Kubernetes Operator, you must have an Ops Manager running outside of your Kubernetes cluster. If you will deploy an Ops Manager resource in Kubernetes with the Kubernetes Operator, skip this prerequisite.
Important
Your Ops Manager installation must run an active NTP service. If the Ops Manager host's clock falls out of sync, that host can't communicate with the Kubernetes Operator.
To learn how to check your NTP service for your Ops Manager host, see the documentation for RHEL.