I have been searching around the kubernetes documentation and cannot seem to find any descriptions of communicating with a kubelet on localhost
.
Is there a way to interrogate the kubelet
about its status and managed pods for debugging purposes?
The kubernetes doesn't have any API client talking to kubelet, but for debugging purpose kubelet starts an internal HTTP server which exposed some endpoints like /metrics, /stats, /cadvisor etc for debugging purpose.
Here is the link for that internal HTTP server code.