by Lorenzo Bolla

Kubectl "outdated" plugin

We use Kubernetes at work and I am mostly responsible for making it run smoothly. This means staying on top of new releases, libraries and tools that come out at a pace I've never experienced before, in any project.

To help with that, I wrote a kubectl plugin that finds outdated components in a Kubernetes cluster. The code can be found here.

It works like this.

First it goes through all deployments and daemonsets , collecting the images referenced in their containers .

and , collecting the referenced in their . For each container, search for a newer image tag in its repository. I currently support querying Docker Hub and Google Container Repository (you need gcloud for that).

in its repository. I currently support querying Docker Hub and Google Container Repository (you need gcloud for that). Outputs which deployment or daemonset needs upgrading.

E.g. running it on a testing cluster I setup gives this output: