Is there an API for talking to the kubelet?

2/8/2019

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?

-- merlin2011
google-kubernetes-engine
kubelet
kubernetes

1 Answer

2/8/2019

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.

-- Prafull Ladha
Source: StackOverflow