fs.StringVar(&f.RemoteImageEndpoint,"image-service-endpoint",f.RemoteImageEndpoint,"[Experimental] The endpoint of remote image service. If not specified, it will be the same with container-runtime-endpoint by default. Currently unix socket is supported on Linux, and tcp is supported on windows. Examples:'unix:///var/run/dockershim.sock', 'tcp://localhost:3735'")
fs.StringVar(&f.RemoteImageEndpoint,"image-service-endpoint",f.RemoteImageEndpoint,"[Experimental] The endpoint of remote image service. If not specified, it will be the same with container-runtime-endpoint by default. Currently unix socket is supported on Linux, and tcp is supported on windows. Examples:'unix:///var/run/dockershim.sock', 'tcp://localhost:3735'")
fs.BoolVar(&f.ExperimentalCheckNodeCapabilitiesBeforeMount,"experimental-check-node-capabilities-before-mount",f.ExperimentalCheckNodeCapabilitiesBeforeMount,"[Experimental] if set true, the kubelet will check the underlying node for required components (binaries, etc.) before performing the mount")
fs.BoolVar(&f.ExperimentalCheckNodeCapabilitiesBeforeMount,"experimental-check-node-capabilities-before-mount",f.ExperimentalCheckNodeCapabilitiesBeforeMount,"[Experimental] if set true, the kubelet will check the underlying node for required components (binaries, etc.) before performing the mount")
fs.BoolVar(&f.ExperimentalNodeAllocatableIgnoreEvictionThreshold,"experimental-allocatable-ignore-eviction",f.ExperimentalNodeAllocatableIgnoreEvictionThreshold,"When set to 'true', Hard Eviction Thresholds will be ignored while calculating Node Allocatable. See https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/ for more details. [default=false]")
fs.BoolVar(&f.ExperimentalNodeAllocatableIgnoreEvictionThreshold,"experimental-allocatable-ignore-eviction",f.ExperimentalNodeAllocatableIgnoreEvictionThreshold,"When set to 'true', Hard Eviction Thresholds will be ignored while calculating Node Allocatable. See https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/ for more details. [default=false]")
fs.Var(flag.NewMapStringString(&f.ExperimentalQOSReserved),"experimental-qos-reserved","A set of ResourceName=Percentage (e.g. memory=50%) pairs that describe how pod resource requests are reserved at the QoS level. Currently only memory is supported. [default=none]")
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.StringVar(&f.VolumePluginDir,"volume-plugin-dir",f.VolumePluginDir,"The full path of the directory in which to search for additional third party volume plugins")
fs.StringVar(&f.VolumePluginDir,"volume-plugin-dir",f.VolumePluginDir,"The full path of the directory in which to search for additional third party volume plugins")
...
@@ -519,6 +513,7 @@ func AddKubeletConfigFlags(mainfs *pflag.FlagSet, c *kubeletconfig.KubeletConfig
...
@@ -519,6 +513,7 @@ func AddKubeletConfigFlags(mainfs *pflag.FlagSet, c *kubeletconfig.KubeletConfig
fs.StringVar(&c.CgroupRoot,"cgroup-root",c.CgroupRoot,"Optional root cgroup to use for pods. This is handled by the container runtime on a best effort basis. Default: '', which means use the container runtime default.")
fs.StringVar(&c.CgroupRoot,"cgroup-root",c.CgroupRoot,"Optional root cgroup to use for pods. This is handled by the container runtime on a best effort basis. Default: '', which means use the container runtime default.")
fs.StringVar(&c.CPUManagerPolicy,"cpu-manager-policy",c.CPUManagerPolicy,"CPU Manager policy to use. Possible values: 'none', 'static'. Default: 'none'")
fs.StringVar(&c.CPUManagerPolicy,"cpu-manager-policy",c.CPUManagerPolicy,"CPU Manager policy to use. Possible values: 'none', 'static'. Default: 'none'")
fs.DurationVar(&c.CPUManagerReconcilePeriod.Duration,"cpu-manager-reconcile-period",c.CPUManagerReconcilePeriod.Duration,"<Warning: Alpha feature> CPU Manager reconciliation period. Examples: '10s', or '1m'. If not supplied, defaults to `NodeStatusUpdateFrequency`")
fs.DurationVar(&c.CPUManagerReconcilePeriod.Duration,"cpu-manager-reconcile-period",c.CPUManagerReconcilePeriod.Duration,"<Warning: Alpha feature> CPU Manager reconciliation period. Examples: '10s', or '1m'. If not supplied, defaults to `NodeStatusUpdateFrequency`")
fs.Var(flag.NewMapStringString(&c.QOSReserved),"qos-reserved","<Warning: Alpha feature> A set of ResourceName=Percentage (e.g. memory=50%) pairs that describe how pod resource requests are reserved at the QoS level. Currently only memory is supported. Requires the QOSReserved feature gate to be enabled.")
fs.DurationVar(&c.RuntimeRequestTimeout.Duration,"runtime-request-timeout",c.RuntimeRequestTimeout.Duration,"Timeout of all runtime requests except long running request - pull, logs, exec and attach. When timeout exceeded, kubelet will cancel the request, throw out an error and retry later.")
fs.DurationVar(&c.RuntimeRequestTimeout.Duration,"runtime-request-timeout",c.RuntimeRequestTimeout.Duration,"Timeout of all runtime requests except long running request - pull, logs, exec and attach. When timeout exceeded, kubelet will cancel the request, throw out an error and retry later.")
fs.StringVar(&c.HairpinMode,"hairpin-mode",c.HairpinMode,"How should the kubelet setup hairpin NAT. This allows endpoints of a Service to loadbalance back to themselves if they should try to access their own Service. Valid values are \"promiscuous-bridge\", \"hairpin-veth\" and \"none\".")
fs.StringVar(&c.HairpinMode,"hairpin-mode",c.HairpinMode,"How should the kubelet setup hairpin NAT. This allows endpoints of a Service to loadbalance back to themselves if they should try to access their own Service. Valid values are \"promiscuous-bridge\", \"hairpin-veth\" and \"none\".")
fs.Int32Var(&c.MaxPods,"max-pods",c.MaxPods,"Number of Pods that can run on this Kubelet.")
fs.Int32Var(&c.MaxPods,"max-pods",c.MaxPods,"Number of Pods that can run on this Kubelet.")