// AddFlags adds flags for a specific ProxyServer to the specified FlagSet
func(s*ProxyServer)AddFlags(fs*pflag.FlagSet){
fs.StringVar(&s.EtcdConfigFile,"etcd_config",s.EtcdConfigFile,"The config file for the etcd client. Mutually exclusive with -etcd_servers")
fs.Var(&s.EtcdServerList,"etcd_servers","List of etcd servers to watch (http://ip:port), comma separated (optional). Mutually exclusive with -etcd_config")
fs.Var(&s.BindAddress,"bind_address","The IP address for the proxy server to serve on (set to 0.0.0.0 for all interfaces)")
client.BindClientConfigFlags(fs,&s.ClientConfig)
fs.IntVar(&s.HealthzPort,"healthz_port",s.HealthzPort,"The port to bind the health check server. Use 0 to disable.")
@@ -115,13 +113,11 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.HostnameOverride,"hostname_override",s.HostnameOverride,"If non-empty, will use this string as identification instead of the actual hostname.")
fs.StringVar(&s.PodInfraContainerImage,"pod_infra_container_image",s.PodInfraContainerImage,"The image whose network/ipc namespaces containers in each pod will use.")
fs.StringVar(&s.DockerEndpoint,"docker_endpoint",s.DockerEndpoint,"If non-empty, use this for the docker endpoint to communicate with")
fs.Var(&s.EtcdServerList,"etcd_servers","List of etcd servers to watch (http://ip:port), comma separated. Mutually exclusive with -etcd_config")
fs.StringVar(&s.EtcdConfigFile,"etcd_config",s.EtcdConfigFile,"The config file for the etcd client. Mutually exclusive with -etcd_servers")
fs.StringVar(&s.RootDirectory,"root_dir",s.RootDirectory,"Directory path for managing kubelet files (volume mounts,etc).")
fs.BoolVar(&s.AllowPrivileged,"allow_privileged",s.AllowPrivileged,"If true, allow containers to request privileged mode. [default=false]")
fs.Float64Var(&s.RegistryPullQPS,"registry_qps",s.RegistryPullQPS,"If > 0, limit registry pull QPS to this value. If 0, unlimited. [default=0.0]")
fs.IntVar(&s.RegistryBurst,"registry_burst",s.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.BoolVar(&s.RunOnce,"runonce",s.RunOnce,"If true, exit after spawning pods from local manifests or remote urls. Exclusive with --etcd_servers, --api_servers, and --enable-server")
fs.BoolVar(&s.RunOnce,"runonce",s.RunOnce,"If true, exit after spawning pods from local manifests or remote urls. Exclusive with --api_servers, and --enable-server")
fs.BoolVar(&s.EnableDebuggingHandlers,"enable_debugging_handlers",s.EnableDebuggingHandlers,"Enables server endpoints for log collection and local running of containers and commands")
fs.DurationVar(&s.MinimumGCAge,"minimum_container_ttl_duration",s.MinimumGCAge,"Minimum age for a finished container before it is garbage collected. Examples: '300ms', '10s' or '2h45m'")
fs.IntVar(&s.MaxContainerCount,"maximum_dead_containers_per_container",s.MaxContainerCount,"Maximum number of old instances of a container to retain per container. Each container takes up some disk space. Default: 5.")