<p>How to list the current deployments running in Kubernetes with custom columns displayed as mentioned below:</p>

<p><strong>DEPLOYMENT CONTAINER_IMAGE READY_REPLICAS NAMESPACE</strong></p>

<p>The data should be sorted by the increasing order of the deployment name.</p>

Yash Bindlish
<p>Look a the <code>-o custom-columns</code> feature. <a href="https://kubernetes.io/docs/reference/kubectl/overview/#custom-columns" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/kubectl/overview/#custom-columns</a> shows the basics. The hard one would be container_image, since a pod can contain more than one, but assuming you just want the first, something like <code>.spec.template.containers[0].image</code>? Give a shot and see how it goes.</p>
