<p>I'm trying to add a step in the pipeline where a check is made if the PODS are ready before the pipeline moves forward.
I've read on forums that the <code>kubectl wait</code> command can work, however, every time the pipeline is executed, the PODS are created again, so I can't put a default name on the kubectl wait command.
Does anyone have any tips, please?</p>

Richard Alves de Oliveira
<p>If your pods are part of a deployment:</p>
<pre><code>kubectl wait deployment &lt;deployment-name&gt; -n &lt;deployment-namespace&gt; --for condition=Available=True --timeout=120s 
</code></pre>
