kubectl pods-onA kubectl plugin to query list of pods running on a Node (by name or Node label selector).
If you ever found yourself finding a list of Pods on a particular Node or a set of Nodes, you'll find this plugin useful.
-o/--output=json|yaml|wide|jsonpath|go-template|... formats (just
like kubectl)sh
kubectl pods-on <node-name> [<node-name>...]
sh
kubectl pods-on pool=general
sh
kubectl pods-on "topology.kubernetes.io/zone in (us-west-1a, us-west-1b)"
sh
kubectl pods-on \
"tier in (db, cache)" \
"foo=bar"\
node1.example.com
Install Krew using its installation guide.
Run kubectl krew install pods-on.
kubectl pods-on is ready to use!
go (not recommended)In this method, you will not receive any updates to the plugin unless you
manually run go install again.
sh
go install github.com/ahmetb/kubectl-pods_on@latest
Add $HOME/go/bin to your PATH.
Run kubectl pods-on!
Distributed as-is under Apache 2.0. See LICENSE.
—
$ claude mcp add kubectl-pods_on \
-- python -m otcore.mcp_server <graph>