KUBERNETES: List All Images Used By All Pods In All Namespaces
Below command can be used.
kubectl get pods --all-namespaces -o jsonpath="{..image}" | tr -s '[[:space:]]' '\n' | sort | uniq -c
Below is sample output
kubectl get pods --all-namespaces -o jsonpath="{..image}" | tr -s '[[:space:]]' '\n' | sort | uniq -c
4 container-registry.oracle.com/olcne/coredns:current
4 container-registry.oracle.com/olcne/etcd:3.5.21-1
16 container-registry.oracle.com/olcne/flannel:current
4 container-registry.oracle.com/olcne/kube-apiserver:v1.32.7
4 container-registry.oracle.com/olcne/kube-controller-manager:v1.32.7
8 container-registry.oracle.com/olcne/kube-proxy:current
4 container-registry.oracle.com/olcne/kube-scheduler:v1.32.7
2 container-registry.oracle.com/olcne/ocne-catalog:v2.0.0
2 container-registry.oracle.com/olcne/ui:current
2 container-registry.oracle.com/olcne/ui-plugins:v2.0.0
2 container-registry.oracle.com/os/oraclelinux:8
No comments:
Post a Comment