<p>All</p>

<p>running computation Monte Carlo jobs on Google Compute Engine. Last time I ran them was September, and things have changed a bit since then. I used to run a lot of jobs with <code>kubectl</code> from some pod.json file, no RC, no restart, fire-and-forget setup. After I started jobs I used to get pods (<code>kubectl get pods</code>) and typically output looks like</p>

<pre><code>NAME                READY     STATUS    RESTARTS   AGE
r8o3il08c25-y0z10   1/1       Running   0          56m
r8o3il08c25-y0z15   0/1       Pending   0          56m
</code></pre>

<p>After one is done and second is started, I used to get output</p>

<pre><code>NAME                READY     STATUS    RESTARTS   AGE
r8o3il08c25-y0z10   1/1       Exit:0    0          1h
r8o3il08c25-y0z15   1/1       Running   0          1h
</code></pre>

<p>So I could, using simple <code>grep</code>, get the picture how many are running, how many are pending, and how many are done, and query exit code (so to check if there are errors with some pods) etc</p>

<p>Now output with latest SDK (Google Cloud SDK 0.9.87) looks like this</p>

<pre><code>NAME      READY     STATUS    RESTARTS   AGE
</code></pre>

<p>All finished pods are now invisible.</p>

<p>Could I get old behavior back? Why it was changed? </p>

<p><a href="https://github.com/kubernetes/kubernetes/pull/12112" rel="nofollow">PR #12112</a> changed <code>kubectl get pods</code> to not show terminated pods by default. You can get the old behavior (show all pods) by using <code>kubectl get pods -a</code></p>
