fs.BoolVar(&s.RunProxy,"run-proxy",s.RunProxy,"Maintain a running kube-proxy instance as a child proc of this kubelet-executor.")
fs.IntVar(&s.ProxyLogV,"proxy-logv",s.ProxyLogV,"Log verbosity of the child kube-proxy.")
fs.StringVar(&s.ProxyLogfile,"proxy-logfile",s.ProxyLogfile,"Path to the kube-proxy log file.")
fs.BoolVar(&s.ProxyBindall,"proxy-bindall",s.ProxyBindall,"When true will cause kube-proxy to bind to 0.0.0.0.")
fs.DurationVar(&s.SuicideTimeout,"suicide-timeout",s.SuicideTimeout,"Self-terminate after this period of inactivity. Zero disables suicide watch.")
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.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.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")
fs.StringVar(&s.cgroupPrefix,"cgroup-prefix",s.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.")
// log file flags
fs.Var(resource.NewQuantityFlagValue(&ms.logMaxSize),"max-log-size","Maximum log file size for the executor and proxy before rotation")
fs.IntVar(&ms.logMaxAgeInDays,"max-log-age",ms.logMaxAgeInDays,"Maximum log file age of the executor and proxy in days")
fs.IntVar(&ms.logMaxBackups,"max-log-backups",ms.logMaxBackups,"Maximum log file backups of the executor and proxy to keep after rotation")
// proxy flags
fs.BoolVar(&ms.runProxy,"run-proxy",ms.runProxy,"Maintain a running kube-proxy instance as a child proc of this kubelet-executor.")
fs.IntVar(&ms.proxyLogV,"proxy-logv",ms.proxyLogV,"Log verbosity of the child kube-proxy.")
fs.BoolVar(&ms.proxyBindall,"proxy-bindall",ms.proxyBindall,"When true will cause kube-proxy to bind to 0.0.0.0.")
KubeletCadvisorPort:4194,// copied from github.com/GoogleCloudPlatform/kubernetes/blob/release-0.14/cmd/kubelet/app/server.go
ReconcileCooldown:defaultReconcileCooldown,
KubeletSyncFrequency:10*time.Second,
Checkpoint:true,
FrameworkName:defaultFrameworkName,
HA:false,
mux:http.NewServeMux(),
KubeletCadvisorPort:4194,// copied from github.com/GoogleCloudPlatform/kubernetes/blob/release-0.14/cmd/kubelet/app/server.go
KubeletSyncFrequency:10*time.Second,
}
}
// cache this for later use. also useful in case the original binary gets deleted, e.g.
// cache this for later use. also useful in case the original binary gets deleted, e.g.
// during upgrades, development deployments, etc.
// during upgrades, development deployments, etc.
...
@@ -211,13 +227,19 @@ func (s *SchedulerServer) addCoreFlags(fs *pflag.FlagSet) {
...
@@ -211,13 +227,19 @@ func (s *SchedulerServer) addCoreFlags(fs *pflag.FlagSet) {
fs.Var(&s.DefaultContainerCPULimit,"default-container-cpu-limit","Containers without a CPU resource limit are admitted this much CPU shares")
fs.Var(&s.DefaultContainerCPULimit,"default-container-cpu-limit","Containers without a CPU resource limit are admitted this much CPU shares")
fs.Var(&s.DefaultContainerMemLimit,"default-container-mem-limit","Containers without a memory resource limit are admitted this much amount of memory in MB")
fs.Var(&s.DefaultContainerMemLimit,"default-container-mem-limit","Containers without a memory resource limit are admitted this much amount of memory in MB")
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.BoolVar(&s.ExecutorBindall,"executor-bindall",s.ExecutorBindall,"When true will set -address of the executor to 0.0.0.0.")
fs.IntVar(&s.ExecutorLogV,"executor-logv",s.ExecutorLogV,"Logging verbosity of spawned executor processes.")
fs.BoolVar(&s.ExecutorProxyBindall,"executor-proxy-bindall",s.ExecutorProxyBindall,"When true pass -proxy-bindall to the executor.")
fs.BoolVar(&s.ExecutorRunProxy,"executor-run-proxy",s.ExecutorRunProxy,"Run the kube-proxy as a child process of the executor.")
fs.DurationVar(&s.ExecutorSuicideTimeout,"executor-suicide-timeout",s.ExecutorSuicideTimeout,"Executor self-terminates after this period of inactivity. Zero disables suicide watch.")
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.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.")
fs.IntVar(&s.ProxyLogV,"proxy-logv",s.ProxyLogV,"Logging verbosity of spawned minion proxy processes.")
fs.Var(resource.NewQuantityFlagValue(&s.MinionLogMaxSize),"minion-max-log-size","Maximum log file size for the executor and proxy before rotation")
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.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.")
...
@@ -233,7 +255,6 @@ func (s *SchedulerServer) addCoreFlags(fs *pflag.FlagSet) {
...
@@ -233,7 +255,6 @@ func (s *SchedulerServer) addCoreFlags(fs *pflag.FlagSet) {