Add the /runningpods/ api endpoint (#611)

* Add the /runningpods/ api endpoint

This adds an API endpoint from the kubelet (/runningpods/). It is
an endpoint on kubelet which is considered a "debug" endpoint, so
it might be worth exposing through the options, but by default
it is exposed in most k8s configs AFAICT.
This commit is contained in:
Sargun Dhillon
2019-05-13 15:10:31 -07:00
committed by Brian Goff
parent c50f33e701
commit 63fa4e124b
4 changed files with 63 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ func setupHTTPServer(ctx context.Context, p providers.Provider, cfg *apiServerCo
}
mux := http.NewServeMux()
vkubelet.AttachPodRoutes(p, mux)
vkubelet.AttachPodRoutes(p, mux, true)
s := &http.Server{
Handler: mux,