Running database migrations when deploying to Kubernetes: Deploying ASP.NET Core applications to Kubernetes - Part 7

added by DotNetKicks
10/13/2020 10:49:20 AM

375 Views

In this post I deal with a classic thorny issue that quickly arises when you deploy to a highly-replicated production environment: database migrations. I discuss various possible solutions to the problem, including simple options as well as more complex approaches. Finally I discuss the approach that I've settled on in production: using Kubernetes Jobs and init containers.


0 comments