Stop the kubelet from taking control over cgroups and other processes

pull/6/head
Dr. Stefan Schimanski 2015-08-18 17:42:58 +02:00
parent b2e363fa08
commit 8ddcb222e9
1 changed files with 6 additions and 2 deletions

View File

@ -99,6 +99,12 @@ func NewKubeletExecutorServer() *KubeletExecutorServer {
k.Address = net.ParseIP(defaultBindingAddress())
k.ShutdownFD = -1 // indicates unspecified FD
// empty string for all containers (= cgroup paths) which stop the kubelet
// from taking any control over the cgroups of itself and other system processes.
k.SystemContainer = ""
k.ResourceContainer = ""
k.DockerDaemonContainer = ""
return k
}
@ -134,8 +140,6 @@ func (s *KubeletExecutorServer) Run(hks hyperkube.Interface, _ []string) error {
// derive the executor cgroup and use it as docker cgroup root
mesosCgroup := findMesosCgroup(s.cgroupPrefix)
s.cgroupRoot = mesosCgroup
s.SystemContainer = mesosCgroup
s.ResourceContainer = mesosCgroup
log.V(2).Infof("passing cgroup %q to the kubelet as cgroup root", s.CgroupRoot)
// create apiserver client