From 5c8dc3e9afb9a4ed8c8478d63569ca5e40ddb407 Mon Sep 17 00:00:00 2001 From: Mohamed Zaian Date: Tue, 7 Jan 2025 14:39:49 +0100 Subject: [PATCH] Remove LimitNOFILE from containerd.service --- roles/container-engine/containerd/defaults/main.yml | 1 - .../container-engine/containerd/templates/containerd.service.j2 | 1 - 2 files changed, 2 deletions(-) diff --git a/roles/container-engine/containerd/defaults/main.yml b/roles/container-engine/containerd/defaults/main.yml index 2ee81f4a8c7..c6247d94494 100644 --- a/roles/container-engine/containerd/defaults/main.yml +++ b/roles/container-engine/containerd/defaults/main.yml @@ -90,7 +90,6 @@ containerd_registry_auth: [] # Configure containerd service containerd_limit_proc_num: "infinity" containerd_limit_core: "infinity" -containerd_limit_open_file_num: "infinity" containerd_limit_mem_lock: "infinity" # OS distributions that already support containerd diff --git a/roles/container-engine/containerd/templates/containerd.service.j2 b/roles/container-engine/containerd/templates/containerd.service.j2 index fbb950acef9..50c6b449fc5 100644 --- a/roles/container-engine/containerd/templates/containerd.service.j2 +++ b/roles/container-engine/containerd/templates/containerd.service.j2 @@ -30,7 +30,6 @@ RestartSec=5 # in the kernel. We recommend using cgroups to do container-local accounting. LimitNPROC={{ containerd_limit_proc_num }} LimitCORE={{ containerd_limit_core }} -LimitNOFILE={{ containerd_limit_open_file_num }} LimitMEMLOCK={{ containerd_limit_mem_lock }} # Comment TasksMax if your systemd version does not supports it. # Only systemd 226 and above support this version.