I can create a PostgresSQL deployment in Kubernetes with volumes with no problems. The question I have is how to create the database tables.
I can easily exec in the pod and create the tables but I want it to be automatically createded.
I don't want to build in into the docker image as a want a generic image.
I have thought about a few options such as Kubernetes Batch Job only running once but not sure what the best approach is ?
Thanks.