Running database migrations using jobs and init containers: Deploying ASP.NET Core applications to Kubernetes - Part 8

added by DotNetKicks
10/20/2020 10:29:20 AM


In the previous post I described several ways to run database migrations when deploying to Kubernetes. In this post, I show to implement my preferred approach using Kubernetes Jobs and init containers. I'll show an example Helm Chart for a job, and how to update your existing application pods to use init containers that wait for the job to complete.