A Helm chart for installing and upgrading the MongoDB Atlas Operator.
If required, you can install the Atlas Custom Resource Definitions Helm Chart separately or as a dependency of this Chart.
If the atlas-operator-crds
Helm chart has been installed already, or if you
don't want to install the CRDs (because you have already installed them), then
you need to pass --set mongodb-atlas-operator-crds.enabled=false
, when
installing the Operator.
This will install the Operator in Cluster wide mode. The Operator will watch over all the namespaces in the Kubernetes cluster.
helm install atlas-operator mongodb/mongodb-atlas-operator \
--namespace=atlas-operator \
--create-namespace
This installation mode will restrict the Operator to watch over resources created in the same namespace the Operator is installed.
helm install atlas-operator mongodb/mongodb-atlas-operator \
--namespace=atlas-operator \
--set watchNamespaces=atlas-operator \
--create-namespace
This installation mode will allow the Operator to watch over resources created in the namespaces specified by the watchNamespaces parameter.
helm install atlas-operator mongodb/mongodb-atlas-operator \
--namespace=atlas-operator \
--set watchNamespaces="{ns1,ns2}" \
--create-namespace
Note: Same thing can be achieved via values.yaml as well.
watchNamespaces:
- ns1
- ns2
In this mode the Operator will be installed in Cluster wide mode with Global Atlas configuration.
helm install atlas-operator mongodb/mongodb-atlas-operator \
--namespace=atlas-operator \
--create-namespace \
--set globalConnectionSecret.publicApiKey=<the_public_key> \
--set globalConnectionSecret.privateApiKey=<the_private_key> \
--set globalConnectionSecret.orgId=<the_org_id>
helm upgrade atlas-operator mongodb/mongodb-atlas-operator
After the atlas-operator
Helm Chart has been installed, you can proceed to
Atlas Cluster Helm Chart to create your first Atlas
database.