bitter-school-39753
08/09/2023, 2:40 PM/prod/<pid>/oom_score_adj
for containerd and rke2 agent?
kubelet already has a proper OOM kill score
cat /proc/$(pidof kubelet)/oom_score_adj
-999
but containerd and rke agent have 0
cat /proc/$(pidof containerd)/oom_score_adj
0
cat /proc/$(pidof rke2)/oom_score_adj
0
I have a problem when the worker is under too much load it starts to kill also services like containerd which kills all containers.
I think it would be good if containerd and rke2 agent get a score of -999 too
Then the containers could get killed instead of critical services
For containerd i could be set within the containerd config: https://github.com/containerd/containerd/blob/main/docs/man/containerd-config.toml.5.md i guess?
But im not sure about the rke2 agent