I want to migrate from normal mongo (on docker-compose) into kubernetes using percona mongo operator/servers.
But i am having trouble to initially create users/db. I could do this manually, like suggested in the docs / user section. But since i am using fluxcd i need to be automatic and only on creation.
my docker-compose.yaml had this volume binding:
Within the docker-entrypoint-initdb.d i placed a script which did everything for the initial creation/setuup. I really would like to reuse this script.
Could you please show a way how to do that, or e.g. show a way for initial setup.