helm-mongodb-operator

by jfelten

Helm chartv0.1.0App 1.8.2MIT

A Helm chart for MongoDB Enterprise Kubernetes Operator

About this chart

helm-mongodb-operator

A Helm chart for MongoDB Enterprise Kubernetes Operator

Homepage: https://github.com/keyporttech/helm-charts

Introduction

This Kubernetes helm chart supports the management of MongoDB applications through a Kubernetes operator. It does this by deploying to a cluster a pod running the MongoDB Enterprise Kubernetes Operator. Applications can then have the operator deploy the MongoDB Ops Manager and a MongoDB Database.

This chart was developed and tested on kubernetes version 1.19, but should work on earlier or later versions.

Requirements

Kubernetes: >=1.13-0

  • helm 3 installation
  • Nodes have enought resources to run the chart pod.
  • The mongodb namespace to deploy into.

Images:

  • MongoDB Enterprise Kubernetes Operator: quay.io/mongodb/mongodb-enterprise-operator

Installing the Chart

There are two methods that can be used to install the chart.

Use the chart from the Keyporttech Helm Repository

helm repo add keyporttech https://keyporttech.github.io/helm-charts/
helm install my-release keyporttech/helm-mongodb-operator -n mongodb

or clone this repo and install from the local file system.

$ helm install my-release . -n mongodb

Only one instances of the operator can exist in a cluster so multiple helm releases of this chart are not permissible.

Tip: There should not be a need to modify any of the chart values. Use the default values.yaml file.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm uninstall my-release -n mongodb

All resources associated with the last release of the chart as well as its release history will be deleted.

Storage

The operator does not require any persistent storage.

Values

KeyTypeDefaultDescription
appDb.namestring"mongodb-enterprise-appdb"
database.namestring"mongodb-enterprise-database"
database.versionstring"2.0.0"
debugPortstringnil
initAppDb.namestring"mongodb-enterprise-init-appdb"
initAppDb.versionstring"1.0.5"
initDatabase.namestring"mongodb-enterprise-init-database"
initDatabase.versionstring"1.0.1"
initOpsManager.namestring"mongodb-enterprise-init-ops-manager"
initOpsManager.versionstring"1.0.3"
managedSecurityContextboolfalse
namespacestring"mongodb"
needsCAInfrastructurebooltrue
operator.deployment_namestring"mongodb-enterprise-operator"
operator.envstring"prod"
operator.namestring"mongodb-enterprise-operator"
operator.versionstring"1.8.2"
operator.watchedResources[0]string"mongodb"
operator.watchedResources[1]string"opsmanagers"
operator.watchedResources[2]string"mongodbusers"
opsManager.namestring"mongodb-enterprise-ops-manager"
registry.appDbstring"quay.io/mongodb"
registry.databasestring"quay.io/mongodb"
registry.imagePullSecretsstringnil
registry.initAppDbstring"quay.io/mongodb"
registry.initDatabasestring"quay.io/mongodb"
registry.initOpsManagerstring"quay.io/mongodb"
registry.operatorstring"quay.io/mongodb"
registry.opsManagerstring"quay.io/mongodb"
registry.pullPolicystring"Always"
securityContext.runAsNonRootbooltrue
securityContext.runAsUserint1001
subresourceEnabledbooltrue

Source Code

Maintainers

NameEmailUrl
Keyport Technologies, Inc.[email protected]https://keyporttech.github.io/

Contributing

Please see keyporttech charts contribution guidelines

Deploy helm-mongodb-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has helm-mongodb-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 charthelm-mongodb-operator is pinned at v0.1.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