<p>I'm trying to build a script that can follow(-f) <code>kubectl get pods</code> see a realtime update when I make any changes/delete pods on Ubuntu server.</p>
<p>What could be the easiest/efficient way to do so?</p>

Swapnil Patel
<p>You can just use</p>
<pre><code>kubectl get pod &lt;your pod name&gt; -w
</code></pre>
<p>whenever any update/change/delete happen to the pod, you will see the update.</p>
<p>You can also use</p>
<pre><code>watch -n 1 kubectl get  pod &lt;your pod name&gt;
</code></pre>
<p>This will continuously run <code>kubectl get pod ...</code> with 1 seconds interval. So, you will see latest state.</p>
