Command for changing MongoDB Password
For single-node setup
Use command
echo "db.getSiblingDB(\"admin\").changeUserPassword(\"admin\", \"<newpass>\")" |
kubectl exec -it mongodb-0 -n avx -- mongo --authenticationDatabase admin -u admin –p
<currentPass>
For multi-node setup/For FP5
Use command
echo "db.getSiblingDB(\"admin\").changeUserPassword(\"admin\", \"<newpass>\")" |
kubectl exec -it routerdb-0 -n avx -- mongo --authenticationDatabase admin -u admin –p <currentPass>
Note: It is necessary to cross-check whether your password is
changed or not. Copy other_user_internal.pem file into scripts directory
from appviewx_kubernetes/scripts directory.
