I am serving jupyter notebook through a Kubernetes cluster. And I've set resources.limits
to prevent someone from draining all of the host servers memory.
While one problem is that the jupyter notebook kernels after crash and automatic restart they do not throw any OOM errors after the container exceeds the memory, which will make the user very confused.
So how can I make the jupyter notebook raise the OOM error when running with Kubernetes?