mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Make controller manager node monitor constant public
This commit is contained in:
parent
6a2602a51b
commit
bc7523a775
@ -124,6 +124,9 @@ func NewCMServer() *CMServer {
|
|||||||
MinResyncPeriod: 12 * time.Hour,
|
MinResyncPeriod: 12 * time.Hour,
|
||||||
RegisterRetryCount: 10,
|
RegisterRetryCount: 10,
|
||||||
PodEvictionTimeout: 5 * time.Minute,
|
PodEvictionTimeout: 5 * time.Minute,
|
||||||
|
NodeMonitorGracePeriod: 40 * time.Second,
|
||||||
|
NodeStartupGracePeriod: 60 * time.Second,
|
||||||
|
NodeMonitorPeriod: 5 * time.Second,
|
||||||
ClusterName: "kubernetes",
|
ClusterName: "kubernetes",
|
||||||
TerminatedPodGCThreshold: 12500,
|
TerminatedPodGCThreshold: 12500,
|
||||||
VolumeConfigFlags: VolumeConfigFlags{
|
VolumeConfigFlags: VolumeConfigFlags{
|
||||||
@ -204,13 +207,13 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
|
|||||||
fs.IntVar(&s.RegisterRetryCount, "register-retry-count", s.RegisterRetryCount, ""+
|
fs.IntVar(&s.RegisterRetryCount, "register-retry-count", s.RegisterRetryCount, ""+
|
||||||
"The number of retries for initial node registration. Retry interval equals node-sync-period.")
|
"The number of retries for initial node registration. Retry interval equals node-sync-period.")
|
||||||
fs.MarkDeprecated("register-retry-count", "This flag is currently no-op and will be deleted.")
|
fs.MarkDeprecated("register-retry-count", "This flag is currently no-op and will be deleted.")
|
||||||
fs.DurationVar(&s.NodeMonitorGracePeriod, "node-monitor-grace-period", 40*time.Second,
|
fs.DurationVar(&s.NodeMonitorGracePeriod, "node-monitor-grace-period", s.NodeMonitorGracePeriod,
|
||||||
"Amount of time which we allow running Node to be unresponsive before marking it unhealty. "+
|
"Amount of time which we allow running Node to be unresponsive before marking it unhealty. "+
|
||||||
"Must be N times more than kubelet's nodeStatusUpdateFrequency, "+
|
"Must be N times more than kubelet's nodeStatusUpdateFrequency, "+
|
||||||
"where N means number of retries allowed for kubelet to post node status.")
|
"where N means number of retries allowed for kubelet to post node status.")
|
||||||
fs.DurationVar(&s.NodeStartupGracePeriod, "node-startup-grace-period", 60*time.Second,
|
fs.DurationVar(&s.NodeStartupGracePeriod, "node-startup-grace-period", s.NodeStartupGracePeriod,
|
||||||
"Amount of time which we allow starting Node to be unresponsive before marking it unhealty.")
|
"Amount of time which we allow starting Node to be unresponsive before marking it unhealty.")
|
||||||
fs.DurationVar(&s.NodeMonitorPeriod, "node-monitor-period", 5*time.Second,
|
fs.DurationVar(&s.NodeMonitorPeriod, "node-monitor-period", s.NodeMonitorPeriod,
|
||||||
"The period for syncing NodeStatus in NodeController.")
|
"The period for syncing NodeStatus in NodeController.")
|
||||||
fs.StringVar(&s.ServiceAccountKeyFile, "service-account-private-key-file", s.ServiceAccountKeyFile, "Filename containing a PEM-encoded private RSA key used to sign service account tokens.")
|
fs.StringVar(&s.ServiceAccountKeyFile, "service-account-private-key-file", s.ServiceAccountKeyFile, "Filename containing a PEM-encoded private RSA key used to sign service account tokens.")
|
||||||
fs.BoolVar(&s.EnableProfiling, "profiling", true, "Enable profiling via web interface host:port/debug/pprof/")
|
fs.BoolVar(&s.EnableProfiling, "profiling", true, "Enable profiling via web interface host:port/debug/pprof/")
|
||||||
|
Loading…
Reference in New Issue
Block a user