Developer builds ferctl top to show Kubernetes pod resource usage against limits
A developer has published a tutorial detailing how to build 'ferctl top', a command-line tool that displays Kubernetes pod CPU and memory usage alongside their configured requests and limits. The tool addresses a gap in the standard 'kubectl top' command, which shows raw usage figures but does not indicate how close a pod is to its resource limits. Built using Go, Cobra, client-go, and the metrics-server API, ferctl top assigns a status label such as 'CRITICAL' when a pod nears its limit threshold. The project is part of an ongoing Platform Engineering with Go series and builds on patterns introduced in earlier posts covering CLI structure and cluster health reporting. Source code for the completed tool is available in a public repository for developers running minikube with metrics-server enabled.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in