Increase MaxPods in Kubemark

This commit is contained in:
gmarek 2016-03-02 16:21:16 +01:00
parent 3caa6caa04
commit 89f0699035
2 changed files with 7 additions and 1 deletions

View File

@ -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() {
config.KubeletPort, config.KubeletPort,
config.KubeletReadOnlyPort, config.KubeletReadOnlyPort,
containerManager, containerManager,
maxPods,
) )
hollowKubelet.Run() hollowKubelet.Run()
} }

View File

@ -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(
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,
), ),