<p>I know I can use <code>kubectl wait</code> to check if a pod is <code>Ready</code> but is there an easy way to check whether the pod is gone or in <code>Terminating</code> state? I'm running some tests and I only want to continue when the pod (or the namespace for that matter) is completely gone.</p>
<p>Also a timeout option would come in handy.</p>

Sam
<p>It's actually part of the wait command.</p>
<pre><code>kubectl wait --for=delete pod/busybox1 --timeout=60s
</code></pre>
<p>You can check with <code>kubectl wait --help</code> to see this example and some more. For example</p>
<blockquote>
<p>--for='': The condition to wait on: [delete|condition=condition-  name|jsonpath='{JSONPath expression}'=JSONPath
Condition]. The default status value of condition-name is true, you &gt; can set false with condition=condition-name=false.</p>
</blockquote>
