After I changed the MongoDB secret password in Kubernetes I couldn't connect to the MongoDB database then I do some of the below tasks but nothing of them resolved my problem ...
- rollout restart & scale down all services that use this secret to connect MongoDB
- rollout restart & scale down MongoDB statefulset
- Manually changed the admin password of MongoDB ...
{"context": "MongooseModule", "level": "error", "message":"Unable to connect to the database. Retrying (2)...", "stack": [""], "timestamp":"2022-09-17T08:2 1:49.4372"}