NimbleArchitect / kubectl-ice

Kubectl-ice is an open-source tool for Kubernetes users to monitor and optimize container resource usage. Features include usage breakdowns for pods and containers, making scaling and optimization easier. The tool is compatible with major cloud providers and is actively developed by a community of contributors
Apache License 2.0
250 stars 9 forks source link

how much I love the tool :) #15

Open dmitry-mightydevops opened 1 year ago

dmitry-mightydevops commented 1 year ago
➜ k ice image -A | grep k8s.gcr.io
insights-agent                   insights-agent-vpa-recommender-7f866c4698-6jw5k                  vpa                                    Always        k8s.gcr.io/autoscaling/vpa-recommender                                          0.10.0
kube-system                      ebs-csi-controller-549546d89f-wg8j9                              csi-provisioner                        IfNotPresent  k8s.gcr.io/sig-storage/csi-provisioner                                          v3.1.0
kube-system                      ebs-csi-controller-549546d89f-wg8j9                              csi-attacher                           IfNotPresent  k8s.gcr.io/sig-storage/csi-attacher                                             v3.4.0
kube-system                      ebs-csi-controller-549546d89f-wg8j9                              csi-resizer                            IfNotPresent  k8s.gcr.io/sig-storage/csi-resizer                                              v1.4.0
kube-system                      ebs-csi-controller-549546d89f-wg8j9                              liveness-probe                         IfNotPresent  k8s.gcr.io/sig-storage/livenessprobe                                            v2.6.0
kube-system                      ebs-csi-node-4kfb5                                               node-driver-registrar                  IfNotPresent  k8s.gcr.io/sig-storage/csi-node-driver-registrar                                v2.5.1
kube-system                      ebs-csi-node-4kfb5                                               liveness-probe                         IfNotPresent  k8s.gcr.io/sig-storage/livenessprobe                                            v2.6.0
kube-system                      ebs-csi-node-59gkf                                               node-driver-registrar                  IfNotPresent  k8s.gcr.io/sig-storage/csi-node-driver-registrar                                v2.5.1
kube-system                      ebs-csi-node-59gkf                                               liveness-probe                         IfNotPresent  k8s.gcr.io/sig-storage/livenessprobe                                            v2.6.0
kube-system                      ebs-csi-node-5gs6s                                               node-driver-registrar                  IfNotPresent  k8s.gcr.io/sig-storage/csi-node-driver-registrar                                v2.5.1
kube-system                      ebs-csi-node-5gs6s                                               liveness-probe                         IfNotPresent  k8s.gcr.io/sig-storage/livenessprobe                                            v2.6.0

just compare it with

kubectl get po -A -o jsonpath='{range .items[*]}{"namespace="}{.metadata.namespace}{" "}{"pod="}{.metadata.name}{" "}{range .spec.containers[*]}{"image="}{.image}{" "}{end}{"\n"}{end}' | grep k8s.gcr.io

Thank you for the GREAT Tool

NimbleArchitect commented 1 year ago

Your Welcome, I'm glad you find ice useful. As always, if you have any questions or suggestions for improvements please do let me know.

I dont know if your aware but you can also use k image -A --match 'image==k8s.gcr.io*' rather than piping through grep and loosing the headers