<p>I need to list down all the pods with status complete and with given name.</p>
<pre><code>user@host:~$ kubectl get pods
NAME                             READY     STATUS    RESTARTS   AGE
App1-something                    1/1       Running   570        2d
App2-something                    1/1       completed 597        2d
App3-something                    1/1       completed 570        2d
App4-something                    1/1       Running   597        2d
</code></pre>
<p>Using Field Selector i can list completed pods, but not able to find the correct command to list down required pod with specific name</p>
<p>Something to get below output</p>
<pre><code>App3-something                    1/1       completed 570        2d
</code></pre>
<p><strong>kubectl get pod --field-selector=status.phase==Succeeded</strong> and pod name is App3-something</p>

<p>You can use comma to add multiple conditions like <code>--field-selector=metadata.name=app3-something,,status.phase=Succeeded</code>.</p>
<pre><code>kubectl get pod --field-selector=metadata.name=App3-something,status.phase=Completed  
</code></pre>
<p>Reference: <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/</a></p>
<p>--</p>
<pre><code>C:\&gt;kubectl get pods
NAME             READY   STATUS    RESTARTS   AGE
app1-something   1/1     Running   0          62s
app2-something   1/1     Running   0          56s
app3-something   1/1     Running   0          52s

C:\&gt;kubectl get pod --field-selector=metadata.name=app3-something,,status.phase=Running
NAME             READY   STATUS    RESTARTS   AGE
app3-something   1/1     Running   0          57s
</code></pre>
