"If true, node controller sends probes to kubelet and updates NodeStatus."+
"If true, node controller sends probes to kubelet and updates NodeStatus."+
"If false, Kubelet posts NodeStatus to API server.")
"If false, Kubelet posts NodeStatus to API server.")
fs.DurationVar(&s.NodeMonitorGracePeriod,"node_monitor_grace_period",8*time.Second,"Amount of time which we allow running Node to be unresponsive before marking it unhealty."+
fs.DurationVar(&s.NodeMonitorGracePeriod,"node_monitor_grace_period",40*time.Second,"Amount of time which we allow running Node to be unresponsive before marking it unhealty."+
"Must be N times more than kubelet's nodeStatusUpdateFrequency, where N means number of retries allowed for kubelet to post node status.")
"Must be N times more than kubelet's nodeStatusUpdateFrequency, where N means number of retries allowed for kubelet to post node status.")
fs.DurationVar(&s.NodeStartupGracePeriod,"node_startup_grace_period",30*time.Second,"Amount of time which we allow starting Node to be unresponsive before marking it unhealty.")
fs.DurationVar(&s.NodeStartupGracePeriod,"node_startup_grace_period",60*time.Second,"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,"The period for syncing NodeStatus in NodeController.")
fs.DurationVar(&s.NodeMonitorPeriod,"node_monitor_period",5*time.Second,"The period for syncing NodeStatus in NodeController.")
// TODO: Discover these by pinging the host machines, and rip out these flags.
// TODO: Discover these by pinging the host machines, and rip out these flags.
// TODO: in the meantime, use resource.QuantityFlag() instead of these
// TODO: in the meantime, use resource.QuantityFlag() instead of these
@@ -183,7 +183,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -183,7 +183,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.Var(&s.ClusterDNS,"cluster_dns","IP address for a cluster DNS server. If set, kubelet will configure all containers to use this for DNS resolution in addition to the host's DNS servers")
fs.Var(&s.ClusterDNS,"cluster_dns","IP address for a cluster DNS server. If set, kubelet will configure all containers to use this for DNS resolution in addition to the host's DNS servers")
fs.BoolVar(&s.ReallyCrashForTesting,"really_crash_for_testing",s.ReallyCrashForTesting,"If true, crash with panics more often.")
fs.BoolVar(&s.ReallyCrashForTesting,"really_crash_for_testing",s.ReallyCrashForTesting,"If true, crash with panics more often.")
fs.DurationVar(&s.StreamingConnectionIdleTimeout,"streaming_connection_idle_timeout",0,"Maximum time a streaming connection can be idle before the connection is automatically closed. Example: '5m'")
fs.DurationVar(&s.StreamingConnectionIdleTimeout,"streaming_connection_idle_timeout",0,"Maximum time a streaming connection can be idle before the connection is automatically closed. Example: '5m'")
fs.DurationVar(&s.NodeStatusUpdateFrequency,"node_status_update_frequency",s.NodeStatusUpdateFrequency,"Specifies how often kubelet posts node status to master. Note: be cautious when changing the constant, it must work with nodeMonitorGracePeriod in nodecontroller. Default: 2s")
fs.DurationVar(&s.NodeStatusUpdateFrequency,"node_status_update_frequency",s.NodeStatusUpdateFrequency,"Specifies how often kubelet posts node status to master. Note: be cautious when changing the constant, it must work with nodeMonitorGracePeriod in nodecontroller. Default: 10s")
fs.IntVar(&s.ImageGCHighThresholdPercent,"image_gc_high_threshold",s.ImageGCHighThresholdPercent,"The percent of disk usage after which image garbage collection is always run. Default: 90%%")
fs.IntVar(&s.ImageGCHighThresholdPercent,"image_gc_high_threshold",s.ImageGCHighThresholdPercent,"The percent of disk usage after which image garbage collection is always run. Default: 90%%")
fs.IntVar(&s.ImageGCLowThresholdPercent,"image_gc_low_threshold",s.ImageGCLowThresholdPercent,"The percent of disk usage before which image garbage collection is never run. Lowest disk usage to garbage collect to. Default: 80%%")
fs.IntVar(&s.ImageGCLowThresholdPercent,"image_gc_low_threshold",s.ImageGCLowThresholdPercent,"The percent of disk usage before which image garbage collection is never run. Lowest disk usage to garbage collect to. Default: 80%%")
fs.StringVar(&s.NetworkPluginName,"network_plugin",s.NetworkPluginName,"<Warning: Alpha feature> The name of the network plugin to be invoked for various events in kubelet/pod lifecycle")
fs.StringVar(&s.NetworkPluginName,"network_plugin",s.NetworkPluginName,"<Warning: Alpha feature> The name of the network plugin to be invoked for various events in kubelet/pod lifecycle")