One can use kubectl describe pods
to obtain a list of pods and then post-process to determine the nodes that these pods are running on. However, this command takes over 1 second to run.
If I am sshed into a particular Kubernetes node, is there a fast way (less than 100 ms) to talk to the local Kubernetes agent and obtain the list of pods running on localhost
?
For example, are there command line clients to the talk to the local kubelet
and obtain this information?