<p>I know I can get the pods using:</p>

<pre><code>kubectl get pods -n "namespace",  and also to retrieve a json output
</code></pre>

<p>I'm trying to expand to get the pods name, the associated images, and a label attribute called 'base'. Also the date when I retrieve this information.</p>

user3541631
<p>You can try this using yaml output.</p>
<p><code>kubectl  get pods --all-namespaces -o yaml| egrep &quot;name:|image:&quot; </code></p>
<p>This will give you name of pod and image which is there for running the pod.</p>
<p><strong>OR</strong></p>
<p><code>kubectl get pods --all-namespaces -o jsonpath=&quot;{.items[*].spec.containers[*].image}&quot;</code></p>
<p>This command will give you all images which are there in all pods.</p>
<p>If you found this is difficult then use,</p>
<p><code>kubectl get pod --all-namespaces</code></p>
<p>Check which pods image you need to find then use,</p>
<p><code>kubectl describe pod &lt;pod_name&gt; -n &lt;namespace&gt; </code></p>
<p>For reference use <a href="https://kubernetes.io/docs/tasks/access-application-cluster/list-all-running-container-images/" rel="nofollow noreferrer">Link</a></p>
