Commit 89f06990 authored by gmarek's avatar gmarek

Increase MaxPods in Kubemark

parent 3caa6caa
...@@ -49,6 +49,10 @@ type HollowNodeConfig struct { ...@@ -49,6 +49,10 @@ type HollowNodeConfig struct {
ServerPort int ServerPort int
} }
const (
maxPods = 110
)
var knownMorphs = sets.NewString("kubelet", "proxy") var knownMorphs = sets.NewString("kubelet", "proxy")
func (c *HollowNodeConfig) addFlags(fs *pflag.FlagSet) { func (c *HollowNodeConfig) addFlags(fs *pflag.FlagSet) {
...@@ -110,6 +114,7 @@ func main() { ...@@ -110,6 +114,7 @@ func main() {
config.KubeletPort, config.KubeletPort,
config.KubeletReadOnlyPort, config.KubeletReadOnlyPort,
containerManager, containerManager,
maxPods,
) )
hollowKubelet.Run() hollowKubelet.Run()
} }
......
...@@ -43,6 +43,7 @@ func NewHollowKubelet( ...@@ -43,6 +43,7 @@ func NewHollowKubelet(
dockerClient dockertools.DockerInterface, dockerClient dockertools.DockerInterface,
kubeletPort, kubeletReadOnlyPort int, kubeletPort, kubeletReadOnlyPort int,
containerManager cm.ContainerManager, containerManager cm.ContainerManager,
maxPods int,
) *HollowKubelet { ) *HollowKubelet {
testRootDir := integration.MakeTempDirOrDie("hollow-kubelet.", "") testRootDir := integration.MakeTempDirOrDie("hollow-kubelet.", "")
manifestFilePath := integration.MakeTempDirOrDie("manifest", testRootDir) manifestFilePath := integration.MakeTempDirOrDie("manifest", testRootDir)
...@@ -71,7 +72,7 @@ func NewHollowKubelet( ...@@ -71,7 +72,7 @@ func NewHollowKubelet(
10*time.Second, /* NodeStatusUpdateFrequency */ 10*time.Second, /* NodeStatusUpdateFrequency */
10*time.Second, /* SyncFrequency */ 10*time.Second, /* SyncFrequency */
5*time.Minute, /* OutOfDiskTransitionFrequency */ 5*time.Minute, /* OutOfDiskTransitionFrequency */
40, /* MaxPods */ maxPods,
containerManager, containerManager,
nil, nil,
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment