trento-project / trento

An open cloud-native web console improving on the work day of SAP Applications administrators.
https://www.trento-project.io
Apache License 2.0
33 stars 25 forks source link

Add persistence to postgresql deployment on helm #855

Closed arbulu89 closed 2 years ago

arbulu89 commented 2 years ago

Add persistence to postgresql database, as by now, all the data is lost in machine reboot.

The implementation adds a permanent volume and permanent volume claim, together with some small changes in the values usage.

Unfortunately, I have not found the way to use the globals mountPath in the postgresql values (the value is duplicated) as the bitnami chart doesn't run template rendering

fabriziosestito commented 2 years ago

This is already enabled by default by the bitnami helm chart, it actually works on my machine :D

image

arbulu89 commented 2 years ago

This is already enabled by default by the bitnami helm chart, it actually works on my machine :D

image

We already commented in other thread, but I think this pvc don't create permanent mounts, so when the machine hosting k3s is rebooted, the data is lost. Here some links on what bitnami says to enable persistence layer: https://github.com/bitnami/charts/tree/master/bitnami/postgresql/#persistence https://github.com/bitnami/bitnami-docker-postgresql#persisting-your-database

arbulu89 commented 2 years ago

Closing. The issue looks something else when custom db image is used