fs.Var(&f.KubeConfig,"kubeconfig","Path to a kubeconfig file, specifying how to connect to the API server. --api-servers will be used for the location unless --require-kubeconfig is set.")
fs.BoolVar(&f.RequireKubeConfig,"require-kubeconfig",f.RequireKubeConfig,"If true the Kubelet will exit if there are configuration errors, and will ignore the value of --api-servers in favor of the server defined in the kubeconfig file.")
fs.StringVar(&f.BootstrapKubeconfig,"experimental-bootstrap-kubeconfig",f.BootstrapKubeconfig,"<Warning: Experimental feature> Path to a kubeconfig file that will be used to get client certificate for kubelet. "+
"If the file specified by --kubeconfig does not exist, the bootstrap kubeconfig is used to request a client certificate from the API server. "+
fs.StringSliceVar(&f.APIServerList,"api-servers",[]string{},"List of Kubernetes API servers for publishing events, and reading pods and services. (ip:port), comma separated.")
fs.BoolVar(&f.RunOnce,"runonce",f.RunOnce,"If true, exit after spawning pods from local manifests or remote urls. Exclusive with --api-servers, and --enable-server")
fs.StringVar(&f.HostnameOverride,"hostname-override",f.HostnameOverride,"If non-empty, will use this string as identification instead of the actual hostname.")
fs.StringVar(&f.NodeIP,"node-ip",f.NodeIP,"IP address of the node. If set, kubelet will use this IP address for the node")
// TODO(#34726:1.8.0): Remove the opt-in for failing when swap is enabled.
fs.BoolVar(&c.ExperimentalFailSwapOn,"experimental-fail-swap-on",c.ExperimentalFailSwapOn,"Makes the Kubelet fail to start if swap is enabled on the node. This is a temporary opton to maintain legacy behavior, failing due to swap enabled will happen by default in v1.6.")
fs.StringVar(&c.PodManifestPath,"pod-manifest-path",c.PodManifestPath,"Path to to the directory containing pod manifest files to run, or the path to a single pod manifest file. Files starting with dots will be ignored.")
fs.DurationVar(&c.SyncFrequency.Duration,"sync-frequency",c.SyncFrequency.Duration,"Max period between synchronizing running containers and config")
fs.DurationVar(&c.FileCheckFrequency.Duration,"file-check-frequency",c.FileCheckFrequency.Duration,"Duration between checking config files for new data")
fs.DurationVar(&c.HTTPCheckFrequency.Duration,"http-check-frequency",c.HTTPCheckFrequency.Duration,"Duration between checking http for new data")
fs.StringVar(&c.ManifestURL,"manifest-url",c.ManifestURL,"URL for accessing the container manifest")
fs.StringVar(&c.ManifestURLHeader,"manifest-url-header",c.ManifestURLHeader,"HTTP header to use when accessing the manifest URL, with the key separated from the value with a ':', as in 'key:value'")
fs.BoolVar(&c.EnableServer,"enable-server",c.EnableServer,"Enable the Kubelet's server")
fs.Var(componentconfig.IPVar{Val:&c.Address},"address","The IP address for the Kubelet to serve on (set to 0.0.0.0 for all interfaces)")
fs.Int32Var(&c.Port,"port",c.Port,"The port for the Kubelet to serve on.")
fs.Int32Var(&c.ReadOnlyPort,"read-only-port",c.ReadOnlyPort,"The read-only port for the Kubelet to serve on with no authentication/authorization (set to 0 to disable)")
fs.StringSliceVar(&c.HostNetworkSources,"host-network-sources",c.HostNetworkSources,"Comma-separated list of sources from which the Kubelet allows pods to use of host network.")
fs.StringSliceVar(&c.HostPIDSources,"host-pid-sources",c.HostPIDSources,"Comma-separated list of sources from which the Kubelet allows pods to use the host pid namespace.")
fs.StringSliceVar(&c.HostIPCSources,"host-ipc-sources",c.HostIPCSources,"Comma-separated list of sources from which the Kubelet allows pods to use the host ipc namespace.")
fs.Int32Var(&c.RegistryPullQPS,"registry-qps",c.RegistryPullQPS,"If > 0, limit registry pull QPS to this value. If 0, unlimited.")
fs.Int32Var(&c.RegistryBurst,"registry-burst",c.RegistryBurst,"Maximum size of a bursty pulls, temporarily allows pulls to burst to this number, while still not exceeding registry-qps. Only used if --registry-qps > 0")
fs.Int32Var(&c.EventRecordQPS,"event-qps",c.EventRecordQPS,"If > 0, limit event creations per second to this value. If 0, unlimited.")
fs.Int32Var(&c.EventBurst,"event-burst",c.EventBurst,"Maximum size of a bursty event records, temporarily allows event records to burst to this number, while still not exceeding event-qps. Only used if --event-qps > 0")
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",false,"Enable lock contention profiling, if profiling is enabled")
fs.DurationVar(&c.MinimumGCAge.Duration,"minimum-container-ttl-duration",c.MinimumGCAge.Duration,"Minimum age for a finished container before it is garbage collected. Examples: '300ms', '10s' or '2h45m'")
fs.Int32Var(&c.MaxPerPodContainerCount,"maximum-dead-containers-per-container",c.MaxPerPodContainerCount,"Maximum number of old instances to retain per container. Each container takes up some disk space.")
fs.Int32Var(&c.MaxContainerCount,"maximum-dead-containers",c.MaxContainerCount,"Maximum number of old instances of containers to retain globally. Each container takes up some disk space. To disable, set to a negative number.")
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 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.BoolVar(&c.RegisterNode,"register-node",c.RegisterNode,"Register the node with the apiserver (defaults to true if --api-servers is set)")
fs.StringVar(&c.ClusterDomain,"cluster-domain",c.ClusterDomain,"Domain for this cluster. If set, kubelet will configure all containers to search this domain in addition to the host's search domains")
fs.StringVar(&c.MasterServiceNamespace,"master-service-namespace",c.MasterServiceNamespace,"The namespace from which the kubernetes master services should be injected into pods")
fs.StringSliceVar(&c.ClusterDNS,"cluster-dns",c.ClusterDNS,"Comma-separated list of DNS server IP address. This value is used for containers DNS server in case of Pods with \"dnsPolicy=ClusterFirst\". Note: all DNS servers appearing in the list MUST serve the same set of records otherwise name resolution within the cluster may not work correctly. There is no guarantee as to which DNS server may be contacted for name resolution.")
fs.DurationVar(&c.StreamingConnectionIdleTimeout.Duration,"streaming-connection-idle-timeout",c.StreamingConnectionIdleTimeout.Duration,"Maximum time a streaming connection can be idle before the connection is automatically closed. 0 indicates no timeout. Example: '5m'")
fs.DurationVar(&c.NodeStatusUpdateFrequency.Duration,"node-status-update-frequency",c.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.")
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(&c.ImageMinimumGCAge.Duration,"minimum-image-ttl-duration",c.ImageMinimumGCAge.Duration,"Minimum age for an unused image before it is garbage collected. Examples: '300ms', '10s' or '2h45m'.")
fs.Int32Var(&c.ImageGCHighThresholdPercent,"image-gc-high-threshold",c.ImageGCHighThresholdPercent,"The percent of disk usage after which image garbage collection is always run.")
fs.Int32Var(&c.ImageGCLowThresholdPercent,"image-gc-low-threshold",c.ImageGCLowThresholdPercent,"The percent of disk usage before which image garbage collection is never run. Lowest disk usage to garbage collect to.")
fs.Int32Var(&c.LowDiskSpaceThresholdMB,"low-diskspace-threshold-mb",c.LowDiskSpaceThresholdMB,"The absolute free disk space, in MB, to maintain. When disk space falls below this threshold, new pods would be rejected.")
fs.DurationVar(&c.VolumeStatsAggPeriod.Duration,"volume-stats-agg-period",c.VolumeStatsAggPeriod.Duration,"Specifies interval for kubelet to calculate and cache the volume disk usage for all pods and volumes. To disable volume calculations, set to 0.")
fs.StringVar(&c.VolumePluginDir,"volume-plugin-dir",c.VolumePluginDir,"<Warning: Alpha feature> The full path of the directory in which to search for additional third party volume plugins")
fs.StringVar(&c.CloudProvider,"cloud-provider",c.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.")
fs.StringVar(&c.CloudConfigFile,"cloud-config",c.CloudConfigFile,"The path to the cloud provider configuration file. Empty string for no configuration file.")
fs.StringVar(&c.FeatureGates,"feature-gates",c.FeatureGates,"A set of key=value pairs that describe feature gates for alpha/experimental features. "+
fs.StringVar(&c.SystemCgroups,"system-cgroups",c.SystemCgroups,"Optional absolute name of cgroups in which to place all non-kernel processes that are not already inside a cgroup under `/`. Empty for no container. Rolling back the flag requires a reboot.")
fs.BoolVar(&c.CgroupsPerQOS,"cgroups-per-qos",c.CgroupsPerQOS,"Enable creation of QoS cgroup hierarchy, if true top level QoS and pod cgroups are created.")
fs.StringVar(&c.CgroupDriver,"cgroup-driver",c.CgroupDriver,"Driver that the kubelet uses to manipulate cgroups on the host. Possible values: 'cgroupfs', 'systemd'")
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.ContainerRuntime,"container-runtime",c.ContainerRuntime,"The container runtime to use. Possible values: 'docker', 'rkt'.")
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.LockFilePath,"lock-file",c.LockFilePath,"<Warning: Alpha feature> The path to file for kubelet to use as a lock file.")
fs.BoolVar(&c.ExitOnLockContention,"exit-on-lock-contention",c.ExitOnLockContention,"Whether kubelet should exit upon lock-file contention.")
fs.StringVar(&c.ExperimentalMounterPath,"experimental-mounter-path",c.ExperimentalMounterPath,"[Experimental] Path of mounter binary. Leave empty to use the default mount.")
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.StringVar(&c.NonMasqueradeCIDR,"non-masquerade-cidr",c.NonMasqueradeCIDR,"Traffic to IPs outside this range will use IP masquerade. Set to '0.0.0.0/0' to never masquerade.")
fs.MarkDeprecated("non-masquerade-cidr","will be removed in a future version")
fs.StringVar(&c.PodCIDR,"pod-cidr","","The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master.")
fs.StringVar(&c.ResolverConfig,"resolv-conf",c.ResolverConfig,"Resolver configuration file used as the basis for the container DNS resolution configuration.")
fs.BoolVar(&c.CPUCFSQuota,"cpu-cfs-quota",c.CPUCFSQuota,"Enable CPU CFS quota enforcement for containers that specify CPU limits")
fs.BoolVar(&c.EnableControllerAttachDetach,"enable-controller-attach-detach",c.EnableControllerAttachDetach,"Enables the Attach/Detach controller to manage attachment/detachment of volumes scheduled to this node, and disables kubelet from executing any attach/detach operations")
fs.BoolVar(&c.MakeIPTablesUtilChains,"make-iptables-util-chains",c.MakeIPTablesUtilChains,"If true, kubelet will ensure iptables utility rules are present on host.")
fs.Int32Var(&c.IPTablesMasqueradeBit,"iptables-masquerade-bit",c.IPTablesMasqueradeBit,"The bit of the fwmark space to mark packets for SNAT. Must be within the range [0, 31]. Please match this parameter with corresponding parameter in kube-proxy.")
fs.Int32Var(&c.IPTablesDropBit,"iptables-drop-bit",c.IPTablesDropBit,"The bit of the fwmark space to mark packets for dropping. Must be within the range [0, 31].")
fs.StringSliceVar(&c.AllowedUnsafeSysctls,"experimental-allowed-unsafe-sysctls",c.AllowedUnsafeSysctls,"Comma-separated whitelist of unsafe sysctls or unsafe sysctl patterns (ending in *). Use these at your own risk.")
fs.BoolVar(&c.RegisterSchedulable,"register-schedulable",c.RegisterSchedulable,"Register the node as schedulable. Won't have any effect if register-node is false.")
fs.Var(utiltaints.NewTaintsVar(&c.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(&c.SerializeImagePulls,"serialize-image-pulls",c.SerializeImagePulls,"Pull images one at a time. We recommend *not* changing the default value on nodes that run docker daemon with version < 1.9 or an Aufs storage backend. Issue #10959 has more details.")
fs.DurationVar(&c.OutOfDiskTransitionFrequency.Duration,"outofdisk-transition-frequency",c.OutOfDiskTransitionFrequency.Duration,"Duration for which the kubelet has to wait before transitioning out of out-of-disk node condition status.")
fs.BoolVar(&c.EnableCustomMetrics,"enable-custom-metrics",c.EnableCustomMetrics,"Support for gathering custom metrics.")
fs.StringVar(&c.RuntimeCgroups,"runtime-cgroups",c.RuntimeCgroups,"Optional absolute name of cgroups to create and run the runtime in.")
fs.StringVar(&c.EvictionHard,"eviction-hard",c.EvictionHard,"A set of eviction thresholds (e.g. memory.available<1Gi) that if met would trigger a pod eviction.")
fs.StringVar(&c.EvictionSoft,"eviction-soft",c.EvictionSoft,"A set of eviction thresholds (e.g. memory.available<1.5Gi) that if met over a corresponding grace period would trigger a pod eviction.")
fs.StringVar(&c.EvictionSoftGracePeriod,"eviction-soft-grace-period",c.EvictionSoftGracePeriod,"A set of eviction grace periods (e.g. memory.available=1m30s) that correspond to how long a soft eviction threshold must hold before triggering a pod eviction.")
fs.DurationVar(&c.EvictionPressureTransitionPeriod.Duration,"eviction-pressure-transition-period",c.EvictionPressureTransitionPeriod.Duration,"Duration for which the kubelet has to wait before transitioning out of an eviction pressure condition.")
fs.Int32Var(&c.EvictionMaxPodGracePeriod,"eviction-max-pod-grace-period",c.EvictionMaxPodGracePeriod,"Maximum allowed grace period (in seconds) to use when terminating pods in response to a soft eviction threshold being met. If negative, defer to pod specified value.")
fs.StringVar(&c.EvictionMinimumReclaim,"eviction-minimum-reclaim",c.EvictionMinimumReclaim,"A set of minimum reclaims (e.g. imagefs.available=2Gi) that describes the minimum amount of resource the kubelet will reclaim when performing a pod eviction if that resource is under pressure.")
fs.BoolVar(&c.ExperimentalKernelMemcgNotification,"experimental-kernel-memcg-notification",c.ExperimentalKernelMemcgNotification,"If enabled, the kubelet will integrate with the kernel memcg notification to determine if memory eviction thresholds are crossed rather than polling.")
fs.Int32Var(&c.PodsPerCore,"pods-per-core",c.PodsPerCore,"Number of Pods per core that can run on this Kubelet. The total number of Pods on this Kubelet cannot exceed max-pods, so max-pods will be used if this calculation results in a larger number of Pods allowed on the Kubelet. A value of 0 disables this limit.")
fs.BoolVar(&c.ProtectKernelDefaults,"protect-kernel-defaults",c.ProtectKernelDefaults,"Default kubelet behaviour for kernel tuning. If set, kubelet errors if any of kernel tunables is different than kubelet defaults.")
fs.BoolVar(&c.KeepTerminatedPodVolumes,"keep-terminated-pod-volumes",c.KeepTerminatedPodVolumes,"Keep terminated pod volumes mounted to the node after the pod terminates. Can be useful for debugging volume related issues.")
fs.StringVar(&c.RemoteRuntimeEndpoint,"container-runtime-endpoint",c.RemoteRuntimeEndpoint,"[Experimental] The endpoint of remote runtime service. Currently unix socket is supported on Linux, and tcp is supported on windows. Examples:'unix:///var/run/dockershim.sock', 'tcp://localhost:3735'")
fs.StringVar(&c.RemoteImageEndpoint,"image-service-endpoint",c.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(&c.ExperimentalCheckNodeCapabilitiesBeforeMount,"experimental-check-node-capabilities-before-mount",c.ExperimentalCheckNodeCapabilitiesBeforeMount,"[Experimental] if set true, the kubelet will check the underlying node for required componenets (binaries, etc.) before performing the mount")
fs.Var(&c.SystemReserved,"system-reserved","A set of ResourceName=ResourceQuantity (e.g. cpu=200m,memory=500Mi) pairs that describe resources reserved for non-kubernetes components. Currently only cpu and memory are supported. See http://kubernetes.io/docs/user-guide/compute-resources for more detail. [default=none]")
fs.Var(&c.KubeReserved,"kube-reserved","A set of ResourceName=ResourceQuantity (e.g. cpu=200m,memory=500Mi) pairs that describe resources reserved for kubernetes system components. Currently only cpu and memory are supported. See http://kubernetes.io/docs/user-guide/compute-resources for more detail. [default=none]")
fs.StringSliceVar(&c.EnforceNodeAllocatable,"enforce-node-allocatable",c.EnforceNodeAllocatable,"A comma separated list of levels of node allocatable enforcement to be enforced by kubelet. Acceptible options are 'pods', 'system-reserved' & 'kube-reserved'. If the latter two options are specified, '--system-reserved-cgroup' & '--kube-reserved-cgroup' must also be set respectively. See https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node-allocatable.md for more details.")
fs.StringVar(&c.SystemReservedCgroup,"system-reserved-cgroup",c.SystemReservedCgroup,"Absolute name of the top level cgroup that is used to manage non-kubernetes components for which compute resources were reserved via '--system-reserved' flag. Ex. '/system-reserved'. [default='']")
fs.StringVar(&c.KubeReservedCgroup,"kube-reserved-cgroup",c.KubeReservedCgroup,"Absolute name of the top level cgroup that is used to manage kubernetes components for which compute resources were reserved via '--kube-reserved' flag. Ex. '/kube-reserved'. [default='']")
fs.BoolVar(&c.ExperimentalNodeAllocatableIgnoreEvictionThreshold,"experimental-allocatable-ignore-eviction",c.ExperimentalNodeAllocatableIgnoreEvictionThreshold,"When set to 'true', Hard Eviction Thresholds will be ignored while calculating Node Allocatable. See https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node-allocatable.md for more details. [default=false]")
fs.Var(&c.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]")