Keycloak - MongoDB - database admin user configuration

Hello,

I need some Percona information on how to configure a MongoDB database admin user on keycloak in a technical environment consisting of a Kubernet cluster hosting the MongoDb and the Keycloak Pods.

I would like to add the databaseAdmin user as a kycloak user.

Could some point me on the right direction?

Thank you

Nitu

Hi, please check our official doc for getting started: With Keycloak - Percona Server for MongoDB 8.0

Hello,

In the documentation link you kindly give me, a reference to configure mongo with /etc/mongod.conf file.

Problem : As our mongodb is running on a POD on the Kubernetes cluster, the /etc/mongod.conf does not exist in our case.

Have you got a config valid for a mongo running on a Kubernetes POD?

Thank you

Hi @nitu ,

If you are using Percona Operator for MongoDB, you can add the configuration in cr.yaml, config maps and secrets as per Changing MongoDB options - Percona Operator for MongoDB.

That being said, if you are not using Percona Operator for MongoDB, how did you deploy your MongoDB pod? Can you share the yaml file?

Hi Jaimes,

Mongodb was deployed using Percona Operator for MongoDB. We made some changes on the cr.yaml file.
Our Kube cluster is front-ended by a Kubernetes gateway from solo.io. The gateway enables access through https virtual services. http is redirected to https.

Which “nework protocol” should I use, https or tcp, through the Gateway Load-balancer to access Percona MongoDB?

external ExpressJS App ------->Gateway/Load-balancer (https) -------MongoDB + Percona Operator