fs.BoolVar(&f.RegisterNode,"register-node",f.RegisterNode,"Register the node with the apiserver. If --kubeconfig is not provided, this flag is irrelevant, as the Kubelet won't have an apiserver to register with. Default=true.")
fs.BoolVar(&f.RegisterNode,"register-node",f.RegisterNode,"Register the node with the apiserver. If --kubeconfig is not provided, this flag is irrelevant, as the Kubelet won't have an apiserver to register with. Default=true.")
fs.Var(utiltaints.NewTaintsVar(&f.RegisterWithTaints),"register-with-taints","Register the node with the given list of taints (comma separated \"<key>=<value>:<effect>\"). No-op if register-node is false.")
fs.Var(utiltaints.NewTaintsVar(&f.RegisterWithTaints),"register-with-taints","Register the node with the given list of taints (comma separated \"<key>=<value>:<effect>\"). No-op if register-node is false.")
fs.BoolVar(&f.Containerized,"containerized",f.Containerized,"Running kubelet in a container.")
fs.BoolVar(&f.Containerized,"containerized",f.Containerized,"Running kubelet in a container.")
fs.Int32Var(&f.CAdvisorPort,"cadvisor-port",f.CAdvisorPort,"The port of the localhost cAdvisor endpoint (set to 0 to disable)")
// EXPERIMENTAL FLAGS
// EXPERIMENTAL FLAGS
fs.StringVar(&f.KubeletConfigFile,"config",f.KubeletConfigFile,"<Warning: Alpha feature> The Kubelet will load its initial configuration from this file. The path may be absolute or relative; relative paths start at the Kubelet's current working directory. Omit this flag to use the built-in default configuration values. Note that the format of the config file is still Alpha.")
fs.StringVar(&f.KubeletConfigFile,"config",f.KubeletConfigFile,"<Warning: Alpha feature> The Kubelet will load its initial configuration from this file. The path may be absolute or relative; relative paths start at the Kubelet's current working directory. Omit this flag to use the built-in default configuration values. Note that the format of the config file is still Alpha.")
...
@@ -444,7 +454,6 @@ func AddKubeletConfigFlags(fs *pflag.FlagSet, c *kubeletconfig.KubeletConfigurat
...
@@ -444,7 +454,6 @@ func AddKubeletConfigFlags(fs *pflag.FlagSet, c *kubeletconfig.KubeletConfigurat
fs.BoolVar(&c.EnableDebuggingHandlers,"enable-debugging-handlers",c.EnableDebuggingHandlers,"Enables server endpoints for log collection and local running of containers and commands")
fs.BoolVar(&c.EnableDebuggingHandlers,"enable-debugging-handlers",c.EnableDebuggingHandlers,"Enables server endpoints for log collection and local running of containers and commands")
fs.BoolVar(&c.EnableContentionProfiling,"contention-profiling",c.EnableContentionProfiling,"Enable lock contention profiling, if profiling is enabled")
fs.BoolVar(&c.EnableContentionProfiling,"contention-profiling",c.EnableContentionProfiling,"Enable lock contention profiling, if profiling is enabled")
fs.Int32Var(&c.CAdvisorPort,"cadvisor-port",c.CAdvisorPort,"The port of the localhost cAdvisor endpoint (set to 0 to disable)")
fs.Int32Var(&c.HealthzPort,"healthz-port",c.HealthzPort,"The port of the localhost healthz endpoint (set to 0 to disable)")
fs.Int32Var(&c.HealthzPort,"healthz-port",c.HealthzPort,"The port of the localhost healthz endpoint (set to 0 to disable)")
fs.Var(componentconfig.IPVar{Val:&c.HealthzBindAddress},"healthz-bind-address","The IP address for the healthz server to serve on (set to `0.0.0.0` for all IPv4 interfaces and `::` for all IPv6 interfaces)")
fs.Var(componentconfig.IPVar{Val:&c.HealthzBindAddress},"healthz-bind-address","The IP address for the healthz server to serve on (set to `0.0.0.0` for all IPv4 interfaces and `::` for all IPv6 interfaces)")
fs.Int32Var(&c.OOMScoreAdj,"oom-score-adj",c.OOMScoreAdj,"The oom-score-adj value for kubelet process. Values must be within the range [-1000, 1000]")
fs.Int32Var(&c.OOMScoreAdj,"oom-score-adj",c.OOMScoreAdj,"The oom-score-adj value for kubelet process. Values must be within the range [-1000, 1000]")
allErrors=append(allErrors,fmt.Errorf("invalid configuration: SystemCgroups (--system-cgroups) was specified and CgroupRoot (--cgroup-root) was not specified"))
allErrors=append(allErrors,fmt.Errorf("invalid configuration: SystemCgroups (--system-cgroups) was specified and CgroupRoot (--cgroup-root) was not specified"))
allErrors=append(allErrors,fmt.Errorf("invalid configuration: CAdvisorPort (--cadvisor-port) %v must be between 0 and 65535, inclusive",kc.CAdvisorPort))
}
ifkc.EventBurst<0{
ifkc.EventBurst<0{
allErrors=append(allErrors,fmt.Errorf("invalid configuration: EventBurst (--event-burst) %v must not be a negative number",kc.EventBurst))
allErrors=append(allErrors,fmt.Errorf("invalid configuration: EventBurst (--event-burst) %v must not be a negative number",kc.EventBurst))