fs.StringVar(&s.RuntimeCgroups,"runtime-cgroups",s.RuntimeCgroups,"Optional absolute name of cgroups to create and run the runtime in.")
fs.BoolVar(&s.RedirectContainerStreaming,"redirect-container-streaming",s.RedirectContainerStreaming,"Enables container streaming redirect. If false, kubelet will proxy container streaming data between apiserver and container runtime; if true, kubelet will return an http redirect to apiserver, and apiserver will access container runtime directly. The proxy approach is more secure, but introduces some overhead. The redirect approach is more performant, but less secure because the connection between apiserver and container runtime may not be authenticated.")
fs.MarkDeprecated("redirect-container-streaming","Container streaming redirection will be removed from the kubelet in v1.20, and this flag will be removed in v1.22. For more details, see http://git.k8s.io/enhancements/keps/sig-node/20191205-container-streaming-requests.md")
fs.BoolVar(&s.ExperimentalDockershim,"experimental-dockershim",s.ExperimentalDockershim,"Enable dockershim only mode. In this mode, kubelet will only start dockershim without any other functionalities. This flag only serves test purpose, please do not use it unless you are conscious of what you are doing. [default=false]")
fs.MarkHidden("experimental-dockershim")
fs.StringVar(&s.DockershimRootDirectory,"experimental-dockershim-root-directory",s.DockershimRootDirectory,"Path to the dockershim root directory.")
fs.StringVar(&s.PodSandboxImage,"pod-infra-container-image",s.PodSandboxImage,fmt.Sprintf("The image whose network/ipc namespaces containers in each pod will use. %s",dockerOnlyWarning))
fs.StringVar(&s.DockerEndpoint,"docker-endpoint",s.DockerEndpoint,fmt.Sprintf("Use this for the docker endpoint to communicate with. %s",dockerOnlyWarning))
fs.DurationVar(&s.ImagePullProgressDeadline.Duration,"image-pull-progress-deadline",s.ImagePullProgressDeadline.Duration,fmt.Sprintf("If no pulling progress is made before this deadline, the image pulling will be cancelled. %s",dockerOnlyWarning))
// Network plugin settings for Docker.
fs.StringVar(&s.NetworkPluginName,"network-plugin",s.NetworkPluginName,fmt.Sprintf("<Warning: Alpha feature> The name of the network plugin to be invoked for various events in kubelet/pod lifecycle. %s",dockerOnlyWarning))
fs.StringVar(&s.CNIConfDir,"cni-conf-dir",s.CNIConfDir,fmt.Sprintf("<Warning: Alpha feature> The full path of the directory in which to search for CNI config files. %s",dockerOnlyWarning))
fs.StringVar(&s.CNIBinDir,"cni-bin-dir",s.CNIBinDir,fmt.Sprintf("<Warning: Alpha feature> A comma-separated list of full paths of directories in which to search for CNI plugin binaries. %s",dockerOnlyWarning))
fs.StringVar(&s.CNICacheDir,"cni-cache-dir",s.CNICacheDir,fmt.Sprintf("<Warning: Alpha feature> The full path of the directory in which CNI should store cache files. %s",dockerOnlyWarning))
fs.Int32Var(&s.NetworkPluginMTU,"network-plugin-mtu",s.NetworkPluginMTU,fmt.Sprintf("<Warning: Alpha feature> The MTU to be passed to the network plugin, to override the default. Set to 0 to use the default 1460 MTU. %s",dockerOnlyWarning))