@@ -315,6 +316,7 @@ func (s *SchedulerServer) addCoreFlags(fs *pflag.FlagSet) {
...
@@ -315,6 +316,7 @@ func (s *SchedulerServer) addCoreFlags(fs *pflag.FlagSet) {
fs.IntVar(&s.minionLogMaxAgeInDays,"minion-max-log-age",s.minionLogMaxAgeInDays,"Maximum log file age of the executor and proxy in days")
fs.IntVar(&s.minionLogMaxAgeInDays,"minion-max-log-age",s.minionLogMaxAgeInDays,"Maximum log file age of the executor and proxy in days")
fs.IntVar(&s.minionLogMaxBackups,"minion-max-log-backups",s.minionLogMaxBackups,"Maximum log file backups of the executor and proxy to keep after rotation")
fs.IntVar(&s.minionLogMaxBackups,"minion-max-log-backups",s.minionLogMaxBackups,"Maximum log file backups of the executor and proxy to keep after rotation")
fs.StringSliceVar(&s.kubeletApiServerList,"kubelet-api-servers",s.kubeletApiServerList,"List of Kubernetes API servers kubelet will use. (ip:port), comma separated. If unspecified it defaults to the value of --api-servers.")
fs.StringVar(&s.kubeletRootDirectory,"kubelet-root-dir",s.kubeletRootDirectory,"Directory path for managing kubelet files (volume mounts,etc). Defaults to executor sandbox.")
fs.StringVar(&s.kubeletRootDirectory,"kubelet-root-dir",s.kubeletRootDirectory,"Directory path for managing kubelet files (volume mounts,etc). Defaults to executor sandbox.")
fs.StringVar(&s.kubeletDockerEndpoint,"kubelet-docker-endpoint",s.kubeletDockerEndpoint,"If non-empty, kubelet will use this for the docker endpoint to communicate with.")
fs.StringVar(&s.kubeletDockerEndpoint,"kubelet-docker-endpoint",s.kubeletDockerEndpoint,"If non-empty, kubelet will use this for the docker endpoint to communicate with.")
fs.StringVar(&s.kubeletPodInfraContainerImage,"kubelet-pod-infra-container-image",s.kubeletPodInfraContainerImage,"The image whose network/ipc namespaces containers in each pod will use.")
fs.StringVar(&s.kubeletPodInfraContainerImage,"kubelet-pod-infra-container-image",s.kubeletPodInfraContainerImage,"The image whose network/ipc namespaces containers in each pod will use.")
...
@@ -428,7 +430,12 @@ func (s *SchedulerServer) prepareExecutorInfo(hks hyperkube.Interface) (*mesos.E
...
@@ -428,7 +430,12 @@ func (s *SchedulerServer) prepareExecutorInfo(hks hyperkube.Interface) (*mesos.E
//TODO(jdef): provide some way (env var?) for users to customize executor config
//TODO(jdef): provide some way (env var?) for users to customize executor config
//TODO(jdef): set -address to 127.0.0.1 if `address` is 127.0.0.1
//TODO(jdef): set -address to 127.0.0.1 if `address` is 127.0.0.1