<p>I have 3 services that are based on the same image, they're basically running the same app in 3 different configurations. 1 service is responsible for running migrations and data updates which the other 2 services will need. So I need this 1 service to be deployed first before the other 2 will be deployed. Is there any way to do this?</p>

AshanPerera
<p>I assume that the two services which are dependent on service 1 are either <code>Pod</code>, <code>Deployment</code> or <code>ReplicaSet</code>. So, make use of <a href="https://kubernetes.io/docs/concepts/workloads/pods/init-containers/" rel="nofollow noreferrer">Init Containers</a>.</p>
<p><a href="https://kubernetes.io/docs/concepts/workloads/pods/init-containers/#init-containers-in-use" rel="nofollow noreferrer">Here is an example</a> that will make a pod wait until the dependent services are up and running. <code>busybox</code> is most common image used for init containers that supports variety of linux commands that will help you check the status of dependent services.</p>
