@@ -275,6 +277,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -275,6 +277,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.BoolVar(&s.ReallyCrashForTesting,"really-crash-for-testing",s.ReallyCrashForTesting,"If true, when panics occur crash. Intended for testing.")
fs.BoolVar(&s.ReallyCrashForTesting,"really-crash-for-testing",s.ReallyCrashForTesting,"If true, when panics occur crash. Intended for testing.")
fs.Float64Var(&s.ChaosChance,"chaos-chance",s.ChaosChance,"If > 0.0, introduce random client errors and latency. Intended for testing. [default=0.0]")
fs.Float64Var(&s.ChaosChance,"chaos-chance",s.ChaosChance,"If > 0.0, introduce random client errors and latency. Intended for testing. [default=0.0]")
fs.BoolVar(&s.Containerized,"containerized",s.Containerized,"Experimental support for running kubelet in a container. Intended for testing. [default=false]")
fs.BoolVar(&s.Containerized,"containerized",s.Containerized,"Experimental support for running kubelet in a container. Intended for testing. [default=false]")
fs.Uint64Var(&s.MaxOpenFiles,"max-open-files",1000000,"Number of files that can be opened by Kubelet process. [default=1000000]")
}
}
// KubeletConfig returns a KubeletConfig suitable for being run, or an error if the server setup
// KubeletConfig returns a KubeletConfig suitable for being run, or an error if the server setup