<p>I have a namespace <code>namespace</code>  - which has ~10-15 deployments.
Creating a big yaml file, and apply it on a "deploy".</p>

<p>How do i validate, wait, watch, block, until all deployments have been rolledout ?</p>

<p>currently i am thinking of:</p>

<ul>
<li>get list of deployments</li>
<li>foreach deployment - make api call to get status</li>
<li>once all deployments are "green" - end process, signaling deployment/ship is done.</li>
</ul>

<p>what are the status'es of deployments, is there already a similar tool that can do it? <a href="https://github.com/Shopify/kubernetes-deploy" rel="nofollow noreferrer">https://github.com/Shopify/kubernetes-deploy</a> is kind of what i am searching for, but it forces a yml structure and so on.</p>

<p>what would be the best approach?</p>

<p>Set a <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#define-readiness-probes" rel="nofollow noreferrer">readiness probe</a> and use <code>kubectl rollout status deployment &lt;deployment_name&gt;</code> to see the <code>deployment</code> rollout status</p>
