How can I configure Postgres helm chart to execute custom init scripts to setup the db while deploying the application to cluster.
I have multiple *.sql scripts which gets executed by init.sh. dir structure
/init
- 001/*.sql
- init.sh
Any suggestion where I could mount script dir to /docker-entryinitdb.d path or any other possible solution. How can this implemented with Postgres Helm Chart
https://github.com/bitnami/charts/blob/main/bitnami/postgresql/values.yaml
While using ConfigMaps, size could become an issue for me as number of scripts might grow and --set initdb.script is best for small script/commands.
bitnami/postgresqlsupports, but note that it requires embedding the init scripts directly into Helm values and hits the ~1 MB Kubernetes object size limit.