简体   繁体   中英

How does Kubernetes enforce the memory limit for a container?

How does it enforce the limit? Is it via cgroups? Or is there an actual process watching container processes and terminating them?

I seem to have a container process that gets a SIGKILL, but the pod does not get restarted (but the process dies because SIGKILL). So I'm unsure what the cause of it is.

https://github.com/kubernetes/kubernetes/issues/50632

IIUC, the process which consumes the most memory will be oom-killed in this case. The container won't terminate unless the killed perocess is the main process within the container.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM