// TODO: Discover these by pinging the host machines, and rip out these params.
NodeMilliCPUint64
...
...
@@ -63,7 +64,7 @@ type CMServer struct {
KubeletConfigclient.KubeletConfig
}
// NewCMServer creates a new CMServer with default a default config.
// NewCMServer creates a new CMServer with a default config.
funcNewCMServer()*CMServer{
s:=CMServer{
Port:ports.ControllerManagerPort,
...
...
@@ -71,6 +72,7 @@ func NewCMServer() *CMServer {
NodeSyncPeriod:10*time.Second,
ResourceQuotaSyncPeriod:10*time.Second,
RegisterRetryCount:10,
PodEvictionTimeout:5*time.Minute,
NodeMilliCPU:1000,
NodeMemory:resource.MustParse("3Gi"),
SyncNodeList:true,
...
...
@@ -110,6 +112,7 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
"The period for syncing nodes from cloudprovider. Longer periods will result in "+
"fewer calls to cloud provider, but may delay addition of new nodes to cluster.")
fs.DurationVar(&s.ResourceQuotaSyncPeriod,"resource_quota_sync_period",s.ResourceQuotaSyncPeriod,"The period for syncing quota usage status in the system")
fs.DurationVar(&s.PodEvictionTimeout,"pod_eviction_timeout",s.PodEvictionTimeout,"The grace peroid for deleting pods on failed nodes.")