Series: Platform engineering with Go | Topics: Go, Kubernetes, Cobra, client-go, metrics-server, Platform Engineering

This is part of the Platform Engineering with Go series. This post builds on the Cobra CLI patterns from post 4 and client-go from post 3. Read post 4 first if you haven't yet.

kubectl top tells you what's happening. It doesn't tell you how close to the edge you are.

In post 3 and post 4, we built a health reporter and learned how to structure a Go CLI with Cobra. Now we put both together into something with real operational value.

kubectl top pods -n production