Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICP 3.1.x and 3.2.x - Mongo backup and restore - cert permissions and host parameter #27

Open
niv-ibm opened this issue May 17, 2020 · 0 comments

Comments

@niv-ibm
Copy link

niv-ibm commented May 17, 2020

This applies to both icp-mongodb-mongodump-job.yaml and icp-mongodb-mongorestore-job.yaml .

  1. Mounted secret permissions are 400 and cant be read by the nobody user running the newer mongodb image - this can be resolved by changing the secrets to defaultMode: 0444.

  2. The pod command uses cat to combine the certs and place them in /, however, the user can't write to /, changing to a writable dir such as /tmp fixes this

  3. The mongorestore command flag --host should be rs0/mongodb:$MONGODB_SERVICE_PORT, otherwise you receive an error Failed: no reachable servers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant