<p>When I use <code>kubeadm</code> to install Kubernetes, I can use the command below to get.</p>

<pre><code>kubeadm config images list
</code></pre>

<p>the output like:</p>

<pre><code>k8s.gcr.io/kube-apiserver:v1.12.2
k8s.gcr.io/kube-controller-manager:v1.12.2
k8s.gcr.io/kube-scheduler:v1.12.2
k8s.gcr.io/kube-proxy:v1.12.2
k8s.gcr.io/pause:3.1
k8s.gcr.io/etcd:3.2.24
k8s.gcr.io/coredns:1.2.2
</code></pre>

<p>Besides <code>kubeadm</code>, how can I find the related image version with the kubernetes version?</p>

cxyfreedom
<p>As per <a href="https://kubernetes.io/docs/tasks/access-application-cluster/list-all-running-container-images/#list-containers-filtering-by-pod-namespace" rel="nofollow noreferrer">List All Container Images Running in a Cluster</a>, you can use:</p>

<p><code>kubectl get pods --namespace kube-system -o jsonpath="{..image}"</code></p>

<p>This will list all images used by containers running in <code>kube-system</code> namespace.</p>

<p>You can use <code>go-template</code> to improve the formatting. Here is an output example using a vanilla Minikube:</p>

<pre><code>$ kubectl get pods --namespace=kube-system -o go-template --template='{{range .items}}{{range .spec.containers}}{{.image}}{{"\n"}} {{end}}{{end}}'
 k8s.gcr.io/coredns:1.6.2
 k8s.gcr.io/coredns:1.6.2
 k8s.gcr.io/etcd:3.3.15-0
 k8s.gcr.io/kube-addon-manager:v9.0.2
 k8s.gcr.io/kube-apiserver:v1.16.0
 k8s.gcr.io/kube-controller-manager:v1.16.0
 k8s.gcr.io/kube-proxy:v1.16.0
 k8s.gcr.io/kube-scheduler:v1.16.0
 gcr.io/k8s-minikube/storage-provisioner:v1.8.1
</code></pre>
