From f4b95d42a60990b975f9529ac4061ffd920f0824 Mon Sep 17 00:00:00 2001 From: Kenichi Omichi Date: Wed, 12 Oct 2022 13:49:00 +0900 Subject: [PATCH] Add note for containerd oom_score (#9384) When we saw 0 as the default value of containerd_oom_score, we had a question why the value was not -999. This adds the note to explain it. --- roles/container-engine/containerd/defaults/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/container-engine/containerd/defaults/main.yml b/roles/container-engine/containerd/defaults/main.yml index af5f54379..5f82fae59 100644 --- a/roles/container-engine/containerd/defaults/main.yml +++ b/roles/container-engine/containerd/defaults/main.yml @@ -2,6 +2,9 @@ containerd_storage_dir: "/var/lib/containerd" containerd_state_dir: "/run/containerd" containerd_systemd_dir: "/etc/systemd/system/containerd.service.d" +# The default value is not -999 here because containerd's oom_score_adj has been +# set to the -999 even if containerd_oom_score is 0. +# Ref: https://github.com/kubernetes-sigs/kubespray/pull/9275#issuecomment-1246499242 containerd_oom_score: 0 # containerd_default_runtime: "runc"