Refactor kubelet to use http.ServeMux

This commit is contained in:
derekwaynecarr
2014-08-20 13:24:51 -05:00
parent 6b05d71d74
commit fd8741edf2
4 changed files with 144 additions and 102 deletions

View File

@@ -162,7 +162,7 @@ func main() {
// start the kubelet server
if *enableServer {
go util.Forever(func() {
kubelet.ListenAndServeKubeletServer(k, cfg.Channel("http"), http.DefaultServeMux, *address, *port)
kubelet.ListenAndServeKubeletServer(k, cfg.Channel("http"), *address, *port)
}, 0)
}