kubeletCadvisorPort:4194,// copied from github.com/GoogleCloudPlatform/kubernetes/blob/release-0.14/cmd/kubelet/app/server.go
kubeletCadvisorPort:4194,// copied from github.com/GoogleCloudPlatform/kubernetes/blob/release-0.14/cmd/kubelet/app/server.go
kubeletSyncFrequency:10*time.Second,
kubeletSyncFrequency:10*time.Second,
kubeletEnableDebuggingHandlers:true,
containPodResources:true,
containPodResources:true,
nodeRelistPeriod:defaultNodeRelistPeriod,
nodeRelistPeriod:defaultNodeRelistPeriod,
}
}
...
@@ -291,6 +293,7 @@ func (s *SchedulerServer) addCoreFlags(fs *pflag.FlagSet) {
...
@@ -291,6 +293,7 @@ func (s *SchedulerServer) addCoreFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.kubeletHostNetworkSources,"kubelet-host-network-sources",s.kubeletHostNetworkSources,"Comma-separated list of sources from which the Kubelet allows pods to use of host network. For all sources use \"*\" [default=\"file\"]")
fs.StringVar(&s.kubeletHostNetworkSources,"kubelet-host-network-sources",s.kubeletHostNetworkSources,"Comma-separated list of sources from which the Kubelet allows pods to use of host network. For all sources use \"*\" [default=\"file\"]")
fs.DurationVar(&s.kubeletSyncFrequency,"kubelet-sync-frequency",s.kubeletSyncFrequency,"Max period between synchronizing running containers and config")
fs.DurationVar(&s.kubeletSyncFrequency,"kubelet-sync-frequency",s.kubeletSyncFrequency,"Max period between synchronizing running containers and config")
fs.StringVar(&s.kubeletNetworkPluginName,"kubelet-network-plugin",s.kubeletNetworkPluginName,"<Warning: Alpha feature> The name of the network plugin to be invoked for various events in kubelet/pod lifecycle")
fs.StringVar(&s.kubeletNetworkPluginName,"kubelet-network-plugin",s.kubeletNetworkPluginName,"<Warning: Alpha feature> The name of the network plugin to be invoked for various events in kubelet/pod lifecycle")
fs.BoolVar(&s.kubeletEnableDebuggingHandlers,"kubelet-enable-debugging-handlers",s.kubeletEnableDebuggingHandlers,"Enables kubelet endpoints for log collection and local running of containers and commands")
//TODO(jdef) support this flag once we have a better handle on mesos-dns and k8s DNS integration
//TODO(jdef) support this flag once we have a better handle on mesos-dns and k8s DNS integration
//fs.StringVar(&s.HADomain, "ha-domain", s.HADomain, "Domain of the HA scheduler service, only used in HA mode. If specified may be used to construct artifact download URIs.")
//fs.StringVar(&s.HADomain, "ha-domain", s.HADomain, "Domain of the HA scheduler service, only used in HA mode. If specified may be used to construct artifact download URIs.")
...
@@ -409,6 +412,7 @@ func (s *SchedulerServer) prepareExecutorInfo(hks hyperkube.Interface) (*mesos.E
...
@@ -409,6 +412,7 @@ func (s *SchedulerServer) prepareExecutorInfo(hks hyperkube.Interface) (*mesos.E