Working on a project which is a k8s service which is implemented using flask.
As part of the deployment, I'd like to run db migrations before the app starts execution.
I was wondering what is considered "best practice", and why.
Just mentioning here some of the ideas I had in mind:
- An entrypoint.sh script
- An init container
- A job
- A configmap
if you had other approach/technique, be my guest :)
Thanks in advance!