code: func NewKubeletFlags() *KubeletFlags {
  	remoteRuntimeEndpoint := ""
  	if runtime.GOOS == "linux" {
  		remoteRuntimeEndpoint = "unix:///var/run/dockershim.sock"
  	} else if runtime.GOOS == "windows" {
  		remoteRuntimeEndpoint = "npipe:////./pipe/dockershim"
  	}
  
  	return &KubeletFlags{
  		EnableServer:                        true,
  		ContainerRuntimeOptions:             *NewContainerRuntimeOptions(),
  		CertDirectory:                       "/var/lib/kubelet/pki",
  		RootDirectory:                       defaultRootDir,
  		MasterServiceNamespace:              metav1.NamespaceDefault,
  		MaxContainerCount:                   -1,
  		MaxPerPodContainerCount:             1,
  		MinimumGCAge:                        metav1.Duration{Duration: 0},
  		NonMasqueradeCIDR:                   "10.0.0.0/8",
  		RegisterSchedulable:                 true,
  		ExperimentalKernelMemcgNotification: false,
  		RemoteRuntimeEndpoint:               remoteRuntimeEndpoint,
  		NodeLabels:                          make(map[string]string),
  		VolumePluginDir:                     "/usr/libexec/kubernetes/kubelet-plugins/volume/exec/",
  		RegisterNode:                        true,
  		SeccompProfileRoot:                  filepath.Join(defaultRootDir, "seccomp"),
  		HostNetworkSources:                  []string{kubetypes.AllSource},
  		HostPIDSources:                      []string{kubetypes.AllSource},
  		HostIPCSources:                      []string{kubetypes.AllSource},
  		// TODO(#58010:v1.13.0): Remove --allow-privileged, it is deprecated
  		AllowPrivileged: true,
  		// prior to the introduction of this flag, there was a hardcoded cap of 50 images
  		NodeStatusMaxImages: 50,
  	}
  }
docs: // NewKubeletFlags will create a new KubeletFlags with default values