I have my own physical kubernetes nodes, hosted on physical machines. (12 cores, 16GB ram) I have noticed that during heavy load I have failing pods and OOM events (out-of memory kill) in the logs.
How could I force kubernetes not to schedule any job on a node if RAM is exhausted?
I am running
kubernetes v1.16.11 and
CentOS Linux 7 3.10.0-1127.10.1.el7.x86_64
P.S I add a snippet of offending pod code, I am using requests and limit
containers: - name: jnlp (...) resources: requests: cpu: 500m memory: 1024Mi limits: memory: 2048Mi - name: build (...) resources: requests: cpu: 3000m memory: 4096Mi