Closed lbeckman314 closed 6 months ago
Largely resolved for local deployments with the make clean
command in the Makefile. This deletes the Postgres pod and all associated tables.
This likely isn't wanted for non-local deployments as data persistence is required.
Previously PostgreSQL databases would be deleted when the deployment was brought down. With persistent storage through RDS it can be challenging and time intensive to manually delete the databases and users that were created during development cycles.
One option to solve this might be to add a Kubernetes job that could be run that would automate the required deletion steps:
This job would need to have access to the RDS password passed to it either in a Configmap or environmental variable.
This should be included in the
make clean
target as well.