/
Using an external Atlas Mongo DB

Using an external Atlas Mongo DB

The deployment can be configured to use an external Mongo DB instance rather than deploying one in the cluster. At the moment this was tested with Atlas Mongo DB.

Add or change the following properties in your values file of Smartfacts to use an external Mongo DB:

property

value to be set

remark

Default value in chart

property

value to be set

remark

Default value in chart

global.mongodbConnectionSecretName

The name of the secret containing the mongodb connection string.

Opaqe secret with key connection-string in the data section.

The connection string contains the username and password of the mongodb user to use.

<release name>-mongodb-connection-secret

mongodb.enabled

false

Deactivates the deployment of mongodb in the cluster.

true

platform.useShortDBNames

true

Mongo Atlas limits the length of data base names to 38 bytes (instead of 63). Therefore this flag must be true if Mongo Atlas DB is used.

false

platform.useShortMwhIds

true

Mongo Atlas limits the length of collections. Therefor this flag must be set to true Mongo Atlas DB is used.

false

To create the secret for the mongdb connection string, you can use this command:

kubectl create secret generic <mongodbConnectionSecretName> --from-literal=connection-string=<mongodb connection string> -n smartfacts
  • Replace <mongodbConnectionSecretName>with the name of the secret you have set in the values file, or <release name>-mongodb-connection-secret if you did not set the property mongodbConnectionSecretName.

  • Replace <mongodb connection string> with the Mongodb connection string

Related content

Installing Smartfacts in Production
Installing Smartfacts in Production
More like this
NUI_Installing Smartfacts in Production
NUI_Installing Smartfacts in Production
More like this
V 1.0.0 - May 27th, 2024
V 1.0.0 - May 27th, 2024
More like this
Deployment on OpenShift with Internet Connection
Deployment on OpenShift with Internet Connection
More like this
V 0.1.7 - January 24, 2024
V 0.1.7 - January 24, 2024
More like this