<p>Problem:
I want to list all pods except those NOT in <code>Completed</code> state.</p>

<p>field selector still outputs pods in <code>Completed</code> phase when Selected not Completed in <code>kubectl</code> command</p>

<p>Proposed Solution: observe that am also getting pods in <code>Completed</code> phase.</p>

<pre><code>kubectl get pods --all-namespaces --field-selector=spec.nodeName=node1,status.phase!=Completed --no-headers
</code></pre>

<pre><code>test-2d7dbabf-f8cc-4c0b-af3b-80db52d2257e nightly-2020-04-01-13-00-tokyo-demo-route-gt-4245049053 2/2 Running 0 13m
test-2d7dbabf-f8cc-4c0b-af3b-80db52d2257e nightly-2020-04-01-13-00-willows-405-a2a-1380625152 0/2 Completed 0 3h31m
test-2d7dbabf-f8cc-4c0b-af3b-80db52d2257e nightly-2020-04-01-13-00-willows-405-a2a-1464250510 0/2 Completed 0 7h33m
</code></pre>

<pre><code>Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.5", GitCommit:"2166946f41b36dea2c4626f90a77706f426cdea2", GitTreeState:"clean", BuildDate:"2019-03-25T15:19:22Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
</code></pre>

<p>but when i do for <code>Running</code> it works and lists only Completed phase pods</p>

<pre><code>kubectl get pods --all-namespaces --field-selector=spec.nodeName=node1,status.phase!=Running --no-headers
</code></pre>

AhmFM
<p><code>Completed</code> is not a valid Pod Phase, use <code>Succeeded</code> instead.</p>

<p><code>Pending</code>, <code>Running</code>, <code>Succeeded</code>, <code>Failed</code> and <code>Unknown</code> are the valid values for <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase" rel="noreferrer">Pod Phase</a>. </p>

<p>To get the non-completed pods, </p>

<pre><code>kubectl get pods --all-namespaces --field-selector=spec.nodeName=node1,status.phase!=Succeeded --no-headers
</code></pre>
