Use cache for minion lookups, don't hammer apiserver

This commit is contained in:
Daniel Smith
2014-10-13 14:46:31 -07:00
parent 13acb63fb3
commit 0431f2430d
3 changed files with 16 additions and 12 deletions

View File

@@ -58,10 +58,7 @@ func main() {
go http.ListenAndServe(net.JoinHostPort(address.String(), strconv.Itoa(*port)), nil)
configFactory := &factory.ConfigFactory{Client: kubeClient}
config, err := configFactory.Create()
if err != nil {
glog.Fatalf("Can't create scheduler config: %v", err)
}
config := configFactory.Create()
s := scheduler.New(config)
s.Run()