Is there a way to overwrite the `/prod/<pid>...
# rke2
b
Is there a way to overwrite the
/prod/<pid>/oom_score_adj
for containerd and rke2 agent? kubelet already has a proper OOM kill score
Copy code
cat /proc/$(pidof kubelet)/oom_score_adj
-999
but containerd and rke agent have 0
Copy code
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