<p>I am trying to find a way to determine the status of the "kubectl port-forward" command.
There is a way to determine the readiness of a pod, a node...: i.e. "kubectl get pods" etc...</p>

<p>Is there a way to determine if the kubectl port-forward command has completed and ready to work?</p>

<p>Thank you.</p>

<p>I have the same understanding as you @VKR.</p>

<p>The way that I choose to solve this was to have a loop with a curl every second to check the status of the forwarded port. It works but I had hoped for a prebaked solution to this.</p>

<pre><code>do curl:6379
timer=0
while curl is false and timer &lt;100
  timer++
  curl:6379
  sleep 1
</code></pre>

<p>Thank you @Nicola and @David, I will keep those in mind when I get past development testing. </p>
