log.Warningf("failed to determine current directory: %v",err)
...
...
@@ -107,7 +84,6 @@ func (s *KubeletExecutorServer) AddFlags(fs *pflag.FlagSet) {
fs.DurationVar(&s.SuicideTimeout,"suicide-timeout",s.SuicideTimeout,"Self-terminate after this period of inactivity. Zero disables suicide watch.")
fs.IntVar(&s.ShutdownFD,"shutdown-fd",s.ShutdownFD,"File descriptor used to signal shutdown to external watchers, requires shutdown-fifo flag")
fs.StringVar(&s.ShutdownFIFO,"shutdown-fifo",s.ShutdownFIFO,"FIFO used to signal shutdown to external watchers, requires shutdown-fd flag")
fs.StringVar(&s.cgroupPrefix,"cgroup-prefix",s.cgroupPrefix,"The cgroup prefix concatenated with MESOS_DIRECTORY must give the executor cgroup set by Mesos")
}
// returns a Closer that should be closed to signal impending shutdown, but only if ShutdownFD
Cloud:nil,// TODO(jdef) Cloud, specifying null here because we don't want all kubelets polling mesos-master; need to account for this in the cloudprovider impl
fs.StringVar(&ms.cgroupPrefix,"mesos-cgroup-prefix",ms.cgroupPrefix,"The cgroup prefix concatenated with MESOS_DIRECTORY must give the executor cgroup set by Mesos")
fs.BoolVar(&ms.privateMountNS,"private-mountns",ms.privateMountNS,"Enter a private mount NS before spawning procs (linux only). Experimental, not yet compatible with k8s volumes.")
fs.StringVar(&ms.pathOverride,"path-override",ms.pathOverride,"Override the PATH in the environment of the sub-processes.")
fs.StringVar(&s.MesosAuthProvider,"mesos-authentication-provider",s.MesosAuthProvider,fmt.Sprintf("Authentication provider to use, default is SASL that supports mechanisms: %+v",mech.ListSupported()))
fs.StringVar(&s.DockerCfgPath,"dockercfg-path",s.DockerCfgPath,"Path to a dockercfg file that will be used by the docker instance of the minions.")
fs.StringVar(&s.MesosCgroupPrefix,"mesos-cgroup-prefix",s.MesosCgroupPrefix,"The cgroup prefix concatenated with MESOS_DIRECTORY must give the executor cgroup set by Mesos")
fs.BoolVar(&s.Checkpoint,"checkpoint",s.Checkpoint,"Enable/disable checkpointing for the kubernetes-mesos framework.")
fs.Float64Var(&s.FailoverTimeout,"failover-timeout",s.FailoverTimeout,fmt.Sprintf("Framework failover timeout, in sec."))
fs.UintVar(&s.DriverPort,"driver-port",s.DriverPort,"Port that the Mesos scheduler driver process should listen on.")
...
...
@@ -234,7 +235,6 @@ func (s *SchedulerServer) addCoreFlags(fs *pflag.FlagSet) {
fs.IntVar(&s.ExecutorLogV,"executor-logv",s.ExecutorLogV,"Logging verbosity of spawned minion and executor processes.")
fs.BoolVar(&s.ExecutorBindall,"executor-bindall",s.ExecutorBindall,"When true will set -address of the executor to 0.0.0.0.")
fs.DurationVar(&s.ExecutorSuicideTimeout,"executor-suicide-timeout",s.ExecutorSuicideTimeout,"Executor self-terminates after this period of inactivity. Zero disables suicide watch.")
fs.StringVar(&s.ExecutorCgroupPrefix,"executor-cgroup-prefix",s.ExecutorCgroupPrefix,"The cgroup prefix concatenated with MESOS_DIRECTORY must give the executor cgroup set by Mesos")
fs.BoolVar(&s.ProxyBindall,"proxy-bindall",s.ProxyBindall,"When true pass -proxy-bindall to the executor.")
fs.BoolVar(&s.RunProxy,"run-proxy",s.RunProxy,"Run the kube-proxy as a side process of the executor.")
...
...
@@ -364,7 +364,7 @@ func (s *SchedulerServer) prepareExecutorInfo(hks hyperkube.Interface) (*mesos.E