<p>I'm trying to format the output of this command:</p>

<pre><code>kubectl get pods test
</code></pre>

<p>like docker I'm trying to format the outout just for it to print me the name and the status of all pods.
docker: </p>

<pre><code>docker ps --format "{{.Status}},{{.Name}}"
</code></pre>

<p>Any way I can do it?</p>

Itay Gil
<p>You can do that with <a href="https://kubernetes.io/docs/reference/kubectl/overview/#custom-columns" rel="nofollow noreferrer">custom columns</a>:</p>

<pre><code>kubectl get pods -o=custom-columns=STATUS:.status.phase,STARTED:.status.startTime,NAME:.metadata.name
</code></pre>
