New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why cgroup not created during kubelet start #72808

Open
ztewyk opened this Issue Jan 11, 2019 · 2 comments

Comments

Projects
None yet
4 participants
@ztewyk
Copy link

ztewyk commented Jan 11, 2019

cgroup created during container start:
in kubernetes/pkg/kubelet/cm/container_manager_linux.go
func (cm *containerManagerImpl) createNodeAllocatableCgroups() error {
cgroupConfig := &CgroupConfig{
Name: cm.cgroupRoot,
// The default limits for cpu shares can be very low which can lead to CPU starvation for pods.
ResourceParameters: getCgroupConfig(cm.capacity),
}
if cm.cgroupManager.Exists(cgroupConfig.Name) {
return nil
}
if err := cm.cgroupManager.Create(cgroupConfig); err != nil {
glog.Errorf("Failed to create %q cgroup", cm.cgroupRoot)
return err
}
return nil
}

so why cgroup not created during kubelet start?

@Joseph-Irving

This comment has been minimized.

Copy link
Contributor

Joseph-Irving commented Jan 11, 2019

/sig node

@k8s-ci-robot k8s-ci-robot added sig/node and removed needs-sig labels Jan 11, 2019

@mjaow

This comment has been minimized.

Copy link

mjaow commented Jan 11, 2019

is there any logs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment