<p>I want to get a list of just the pod names and the Result should not include the status, number of instances etc. </p>

<p>I am using the command </p>

<p><code>oc get pods</code></p>

<p>It prints</p>

<pre><code>Pod1-qawer            Running           1/1           2d
Pod2g-bvch            Running           1/1           3h
</code></pre>

<p>Expected result</p>

<pre><code>Pod1-qawer
Pod2g-bvch
</code></pre>

<p>How do i avoid the extra details from getting printed </p>

<p>You can omit the headers with <code>--no-headers</code> and you can use <code>-o custom-columns=</code> to customize the output.</p>

<pre><code>oc get pods -o custom-columns=POD:.metadata.name --no-headers
</code></pre>

<p>Example output</p>

<pre><code>$ oc get pods -o custom-columns=POD:.metadata.name --no-headers
goapp-75d9b6bfbf-b5fdh
httpd-58c5c54fff-b97h8
app-proxy-6c8dfb4899-8vdkb
app-64d5985fdb-xjp58
httpd-dd5976fc-rsnhz
</code></pre>
