<p>My application contains 3 separate services. But there's an order 1,2,3 these services should start. How can I wait for 1st service to be completely up and running before starting the 2nd and 3rd?</p>

Rumesh Madhusanka
<p>As comment says, you should use timeout and retries on our code instead of hard coded dependencies.</p>
<p>But, to responds to you needs, you can use a initContainer on each service waiting for others.</p>
<pre class="lang-yaml prettyprint-override"><code>initContainers:
- name: wait-for-other-svc
  image: ubuntu
  args:
  - /bin/sh
  - -c
  - &gt;
    set -x;
    while [ $(curl -sw '%{http_code}' &quot;service.&lt;namespace&gt;.svc.cluster.local&quot; -o /dev/null) -ne 200 ]; do
      sleep 1;
    done
</code></pre>
