<p>I'm looking for an easy way to find what version of my images I have deployed in my kubernetes environment. </p>

<p>The closest thing I can find to what I want is <code>helm get values &lt;namespace&gt; -a</code> 
<br>(but this gets values and dumps all (computed) values)</p>

<p>Is there an easier/clean way to get a list of images and versions deployed??</p>

<p>Thanks in advance</p>

user3292394
<p>You can use <code>kubectl</code> to get all images form all pods running in the namespace/cluster. See <a href="https://kubernetes.io/docs/tasks/access-application-cluster/list-all-running-container-images/" rel="nofollow noreferrer">List All Container Images Running in a Cluster</a>.</p>

<p>For one namespace:</p>

<pre><code>kubectl get pods -n &lt;namespace&gt; -o jsonpath="{..image}" | tr -s '[[:space:]]' '\n' | sort | uniq -c
</code></pre>

<p>For the whole cluster:</p>

<pre><code>kubectl get pods --all-namespaces -o jsonpath="{..image}" | tr -s '[[:space:]]' '\n' | sort | uniq -c
</code></pre>
