@@ -141,6 +141,7 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -141,6 +141,7 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
fs.DurationVar(&s.DeploymentControllerSyncPeriod.Duration,"deployment-controller-sync-period",s.DeploymentControllerSyncPeriod.Duration,"Period for syncing the deployments.")
fs.DurationVar(&s.DeploymentControllerSyncPeriod.Duration,"deployment-controller-sync-period",s.DeploymentControllerSyncPeriod.Duration,"Period for syncing the deployments.")
fs.DurationVar(&s.PodEvictionTimeout.Duration,"pod-eviction-timeout",s.PodEvictionTimeout.Duration,"The grace period for deleting pods on failed nodes.")
fs.DurationVar(&s.PodEvictionTimeout.Duration,"pod-eviction-timeout",s.PodEvictionTimeout.Duration,"The grace period for deleting pods on failed nodes.")
fs.Float32Var(&s.DeletingPodsQps,"deleting-pods-qps",0.1,"Number of nodes per second on which pods are deleted in case of node failure.")
fs.Float32Var(&s.DeletingPodsQps,"deleting-pods-qps",0.1,"Number of nodes per second on which pods are deleted in case of node failure.")
fs.MarkDeprecated("deleting-pods-qps","This flag is currently no-op and will be deleted.")
fs.Int32Var(&s.DeletingPodsBurst,"deleting-pods-burst",0,"Number of nodes on which pods are bursty deleted in case of node failure. For more details look into RateLimiter.")
fs.Int32Var(&s.DeletingPodsBurst,"deleting-pods-burst",0,"Number of nodes on which pods are bursty deleted in case of node failure. For more details look into RateLimiter.")
fs.MarkDeprecated("deleting-pods-burst","This flag is currently no-op and will be deleted.")
fs.MarkDeprecated("deleting-pods-burst","This flag is currently no-op and will be deleted.")
@@ -173,5 +174,10 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -173,5 +174,10 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
fs.DurationVar(&s.ControllerStartInterval.Duration,"controller-start-interval",s.ControllerStartInterval.Duration,"Interval between starting controller managers.")
fs.DurationVar(&s.ControllerStartInterval.Duration,"controller-start-interval",s.ControllerStartInterval.Duration,"Interval between starting controller managers.")
fs.BoolVar(&s.EnableGarbageCollector,"enable-garbage-collector",s.EnableGarbageCollector,"Enables the generic garbage collector. MUST be synced with the corresponding flag of the kube-apiserver. WARNING: the generic garbage collector is an alpha feature.")
fs.BoolVar(&s.EnableGarbageCollector,"enable-garbage-collector",s.EnableGarbageCollector,"Enables the generic garbage collector. MUST be synced with the corresponding flag of the kube-apiserver. WARNING: the generic garbage collector is an alpha feature.")
fs.Int32Var(&s.ConcurrentGCSyncs,"concurrent-gc-syncs",s.ConcurrentGCSyncs,"The number of garbage collector workers that are allowed to sync concurrently.")
fs.Int32Var(&s.ConcurrentGCSyncs,"concurrent-gc-syncs",s.ConcurrentGCSyncs,"The number of garbage collector workers that are allowed to sync concurrently.")
fs.Float32Var(&s.NodeEvictionRate,"node-eviction-rate",0.1,"Number of nodes per second on which pods are deleted in case of node failure when a zone is healthy (see --unhealthy-zone-threshold for definition of healthy/unhealthy). Zone refers to entire cluster in non-multizone clusters.")
fs.Float32Var(&s.SecondaryNodeEvictionRate,"secondary-node-eviction-rate",0.01,"Number of nodes per second on which pods are deleted in case of node failure when a zone is unhealthy (see --unhealthy-zone-threshold for definition of healthy/unhealthy). Zone refers to entire cluster in non-multizone clusters. This value is implicitly overridden to 0 if the cluster size is smaller than --large-cluster-size-threshold.")
fs.Int32Var(&s.LargeClusterSizeThreshold,"large-cluster-size-threshold",50,"Number of nodes from which NodeController treats the cluster as large for the eviction logic purposes. --secondary-node-eviction-rate is implicitly overridden to 0 for clusters this size or smaller.")
fs.Float32Var(&s.UnhealthyZoneThreshold,"unhealthy-zone-threshold",0.55,"Fraction of Nodes in a zone which needs to be not Ready (minimum 3) for zone to be treated as unhealthy. ")