Remove pods from failed node

This commit is contained in:
Deyuan Deng
2015-02-07 14:53:42 -05:00
parent f5bc43a46c
commit 55b9944cfe
9 changed files with 363 additions and 75 deletions

View File

@@ -202,7 +202,8 @@ func startComponents(manifestURL string) (apiServerURL string) {
controllerManager.Run(10 * time.Minute)
nodeResources := &api.NodeResources{}
nodeController := nodeControllerPkg.NewNodeController(nil, "", machineList, nodeResources, cl, fakeKubeletClient{})
nodeController := nodeControllerPkg.NewNodeController(nil, "", machineList, nodeResources, cl, fakeKubeletClient{}, 5*time.Minute)
nodeController.Run(5*time.Second, 10, true)
// Kubelet (localhost)