Kubernetes InitContainers are a neat way to run arbitrary code before your container starts. It ensures that certain pre-conditions are met before your app is up and running. For example it allows you to:
- run database migrations with Django or Rails before your app starts
- ensure a microservice or API you depend on to is running