How to run Job before application deploy #448
-
In my case, I want to run a Job before flux2 apply deployment, because I have to execute DB migration in deploy. For example |
Beta Was this translation helpful? Give feedback.
Answered by
stefanprodan
Nov 11, 2020
Replies: 1 comment 5 replies
-
We have no support for pre/post deploy hooks as we don't plan to recreate Helm. You can use an init container inside your app deployment and run the migration that way. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
h3poteto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have no support for pre/post deploy hooks as we don't plan to recreate Helm. You can use an init container inside your app deployment and run the migration that way.