enterprise-operator

by MongoDB

Helm chartv1.33.0

MongoDB Kubernetes Enterprise Operator

About this chart

MongoDB Enterprise Kubernetes Operator Helm Chart

A Helm Chart for installing and upgrading the MongoDB Enterprise Kubernetes Operator.

Prerequisites

The installation of this Chart does not have prerequisites. However, in order to create a Mongo Database in your Kubernetes cluster, you'll need a Cloud Manager account or an Ops Manager installation.

Installing Enterprise Operator

You can install the MongoDB Enterprise Operator easily with:

helm install enterprise-operator mongodb/enterprise-operator

This will install CRDs and the Enterprise Operator in the current namespace (default by default). You can pass a different namespace with:

helm install enterprise-operator mongodb/enterprise-operator --namespace mongodb [--create-namespace]

To install the Enterprise Operator in a namespace called mongodb; with the optional --create-namespace Helm will create the Namespace if it does not exist.

Configuring access to Cloud Manager

The Enteprise Operator can run against an account of Cloud Manager or Ops Manager.

Using Cloud Manager

Please visit "Configure Kubernetes for Deploying MongoDB Resource" in order to create new Secrets and ConfigMaps with credentials for your Cloud Manager project.

You will create a ConfigMap with name my-project, and a Secret with name my-credentials.

Deploying a MongoDB Replica Set

The Enterprise Operator will be watching for resources of type mongodb.mongodb.com (among others); you can quickly install a sample Mongo Database with:

kubectl apply -f https://raw.githubusercontent.com/mongodb/mongodb-enterprise-kubernetes/master/samples/mongodb/minimal/replica-set.yaml [--namespace mongodb]
  • Note: Make sure you add the --namespace option when needed.

After a few minutes you will have a 3-member MongoDB Replica Set installed in your cluster, that you can check with:

$ kubectl get mdb
NAME              PHASE     VERSION
my-replica-set    Running   4.4.0-ent

What to do next

Please follow the Official MongoDB Enterprise Kubernetes Operator for additional deployment topologies and multitude of other MongoDB options.

Deploy enterprise-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has enterprise-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartenterprise-operator is pinned at v1.33.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply