<p>To wait for a certain pod to be completed the command is </p>

<p><code>kubectl wait --for=condition=Ready pod/pod-name</code> </p>

<p>Similarly I want to wait for any one pod in the statefulset to be ready. I tried the command below which did not work,</p>

<p><code>kubectl wait --for=condition=Ready statefulset/statefulset-name</code> </p>

<p>What should the command options look like? </p>

<p>I used following and it works for me</p>
<pre><code>kubectl wait -l statefulset.kubernetes.io/pod-name=activemq-0 --for=condition=ready pod --timeout=-1s
</code></pre>
