title: Kubernetes Deployments and Init Containers
body: <p>I <a href="https://stackoverflow.com/questions/44233242/kubernetes-cluster-and-phoenix-automate-mix-ecto-migrate/44233465#44233465">learned recently</a> that Kubernetes has a feature called <a href="https://kubernetes.io/docs/concepts/workloads/pods/init-containers/" rel="noreferrer">Init Containers</a>. Awesome, because I can use this feature to wait for my postgres service and create/migrate the database before my web application service runs.</p>
  
  <p>However, it appears that Init Containers can only be configured in a Pod yaml file. Is there a way I can do this via a Deployment yaml file? Or do I have to choose?</p>