@@ -82,5 +82,5 @@ func (s *CloudControllerManagerServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -82,5 +82,5 @@ func (s *CloudControllerManagerServer) 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.DurationVar(&s.ReconcilerSyncLoopPeriod.Duration,"attach-detach-reconcile-sync-period",s.ReconcilerSyncLoopPeriod.Duration,"The reconciler sync wait time between volume attach detach. This duration must be larger than one second, and increasing this value from the default may allow for volumes to be mismatched with pods.")
fs.DurationVar(&s.ReconcilerSyncLoopPeriod.Duration,"attach-detach-reconcile-sync-period",s.ReconcilerSyncLoopPeriod.Duration,"The reconciler sync wait time between volume attach detach. This duration must be larger than one second, and increasing this value from the default may allow for volumes to be mismatched with pods.")
leaderelection.BindFlags(&s.LeaderElection,fs)
leaderelection.BindFlags(&s.LeaderElection,fs)
config.DefaultFeatureGate.AddFlag(fs)
utilflag.DefaultFeatureGate.AddFlag(fs)
}
}
// Validate is used to validate the options and config before launching the controller manager
// Validate is used to validate the options and config before launching the controller manager
@@ -169,7 +169,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -169,7 +169,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.DurationVar(&s.StreamingConnectionIdleTimeout.Duration,"streaming-connection-idle-timeout",s.StreamingConnectionIdleTimeout.Duration,"Maximum time a streaming connection can be idle before the connection is automatically closed. 0 indicates no timeout. Example: '5m'")
fs.DurationVar(&s.StreamingConnectionIdleTimeout.Duration,"streaming-connection-idle-timeout",s.StreamingConnectionIdleTimeout.Duration,"Maximum time a streaming connection can be idle before the connection is automatically closed. 0 indicates no timeout. Example: '5m'")
fs.DurationVar(&s.NodeStatusUpdateFrequency.Duration,"node-status-update-frequency",s.NodeStatusUpdateFrequency.Duration,"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.DurationVar(&s.NodeStatusUpdateFrequency.Duration,"node-status-update-frequency",s.NodeStatusUpdateFrequency.Duration,"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.Var(&bindableNodeLabels,"node-labels","<Warning: Alpha feature> Labels to add when registering the node in the cluster. Labels must be key=value pairs separated by ','.")
fs.Var(&bindableNodeLabels,"node-labels","<Warning: Alpha feature> Labels to add when registering the node in the cluster. Labels must be key=value pairs separated by ','.")
fs.DurationVar(&s.ImageMinimumGCAge.Duration,"minimum-image-ttl-duration",s.ImageMinimumGCAge.Duration,"Minimum age for an unused image before it is garbage collected. Examples: '300ms', '10s' or '2h45m'. Default: '2m'")
fs.DurationVar(&s.ImageMinimumGCAge.Duration,"minimum-image-ttl-duration",s.ImageMinimumGCAge.Duration,"Minimum age for an unused image before it is garbage collected. Examples: '300ms', '10s' or '2h45m'. Default: '2m'")
fs.Int32Var(&s.ImageGCHighThresholdPercent,"image-gc-high-threshold",s.ImageGCHighThresholdPercent,"The percent of disk usage after which image garbage collection is always run. Default: 90%")
fs.Int32Var(&s.ImageGCHighThresholdPercent,"image-gc-high-threshold",s.ImageGCHighThresholdPercent,"The percent of disk usage after which image garbage collection is always run. Default: 90%")
...
@@ -185,7 +185,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -185,7 +185,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.CloudProvider,"cloud-provider",s.CloudProvider,"The provider for cloud services. By default, kubelet will attempt to auto-detect the cloud provider. Specify empty string for running with no cloud provider. [default=auto-detect]")
fs.StringVar(&s.CloudProvider,"cloud-provider",s.CloudProvider,"The provider for cloud services. By default, kubelet will attempt to auto-detect the cloud provider. Specify empty string for running with no cloud provider. [default=auto-detect]")
fs.StringVar(&s.CloudConfigFile,"cloud-config",s.CloudConfigFile,"The path to the cloud provider configuration file. Empty string for no configuration file.")
fs.StringVar(&s.CloudConfigFile,"cloud-config",s.CloudConfigFile,"The path to the cloud provider configuration file. Empty string for no configuration file.")
fs.StringVar(&s.FeatureGates,"feature-gates",s.FeatureGates,"A set of key=value pairs that describe feature gates for alpha/experimental features. "+
fs.StringVar(&s.FeatureGates,"feature-gates",s.FeatureGates,"A set of key=value pairs that describe feature gates for alpha/experimental features. "+
fs.StringVar(&s.KubeletCgroups,"resource-container",s.KubeletCgroups,"Optional absolute name of the resource-only container to create and run the Kubelet in.")
fs.StringVar(&s.KubeletCgroups,"resource-container",s.KubeletCgroups,"Optional absolute name of the resource-only container to create and run the Kubelet in.")
fs.MarkDeprecated("resource-container","Use --kubelet-cgroups instead. Will be removed in a future version.")
fs.MarkDeprecated("resource-container","Use --kubelet-cgroups instead. Will be removed in a future version.")
@@ -72,5 +72,5 @@ func (s *SchedulerServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -72,5 +72,5 @@ func (s *SchedulerServer) AddFlags(fs *pflag.FlagSet) {
"to every RequiredDuringScheduling affinity rule. --hard-pod-affinity-symmetric-weight represents the weight of implicit PreferredDuringScheduling affinity rule.")
"to every RequiredDuringScheduling affinity rule. --hard-pod-affinity-symmetric-weight represents the weight of implicit PreferredDuringScheduling affinity rule.")
fs.StringVar(&s.FailureDomains,"failure-domains",api.DefaultFailureDomains,"Indicate the \"all topologies\" set for an empty topologyKey when it's used for PreferredDuringScheduling pod anti-affinity.")
fs.StringVar(&s.FailureDomains,"failure-domains",api.DefaultFailureDomains,"Indicate the \"all topologies\" set for an empty topologyKey when it's used for PreferredDuringScheduling pod anti-affinity.")