From ebbbd21147463c5cbc8939ff43943f992a26ad5f Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Sat, 9 Nov 2024 23:26:01 +0100 Subject: [PATCH] CI: test several cases for cgroups resources enforcements Test the cgroup translation with different container manager and cgroup driver. --- tests/files/packet_almalinux8-crio.yml | 6 ++++++ tests/files/packet_amazon-linux-2-all-in-one.yml | 5 +++++ tests/files/packet_ubuntu20-crio.yml | 6 ++++++ tests/files/packet_ubuntu24-calico-all-in-one.yml | 1 + 4 files changed, 18 insertions(+) diff --git a/tests/files/packet_almalinux8-crio.yml b/tests/files/packet_almalinux8-crio.yml index 35fa00979..70d7db419 100644 --- a/tests/files/packet_almalinux8-crio.yml +++ b/tests/files/packet_almalinux8-crio.yml @@ -6,3 +6,9 @@ mode: default # Kubespray settings container_manager: crio auto_renew_certificates: true + +# Test cgroups + +enforce_allocatable_kube_reserved: true +enforce_allocatable_system_reserved: true +kube_slice: nested-runtime.slice diff --git a/tests/files/packet_amazon-linux-2-all-in-one.yml b/tests/files/packet_amazon-linux-2-all-in-one.yml index 5faf6d305..ea91279e9 100644 --- a/tests/files/packet_amazon-linux-2-all-in-one.yml +++ b/tests/files/packet_amazon-linux-2-all-in-one.yml @@ -2,3 +2,8 @@ # Instance settings cloud_image: amazon-linux-2 mode: all-in-one + +enforce_allocatable_kube_reserved: true +enforce_allocatable_system_reserved: true +kube_slice: nested-runtime.slice +kubelet_cgroup_driver: cgroupfs diff --git a/tests/files/packet_ubuntu20-crio.yml b/tests/files/packet_ubuntu20-crio.yml index 87329d058..84865674d 100644 --- a/tests/files/packet_ubuntu20-crio.yml +++ b/tests/files/packet_ubuntu20-crio.yml @@ -8,3 +8,9 @@ container_manager: crio download_localhost: false download_run_once: true + +# Cgroups +enforce_allocatable_kube_reserved: true +enforce_allocatable_system_reserved: true +kube_slice: nested-runtime.slice +kubelet_cgroup_driver: cgroupfs diff --git a/tests/files/packet_ubuntu24-calico-all-in-one.yml b/tests/files/packet_ubuntu24-calico-all-in-one.yml index f25ba19e1..b26e1c769 100644 --- a/tests/files/packet_ubuntu24-calico-all-in-one.yml +++ b/tests/files/packet_ubuntu24-calico-all-in-one.yml @@ -25,3 +25,4 @@ containerd_registries_mirrors: enforce_allocatable_kube_reserved: true enforce_allocatable_system_reserved: true +kube_slice: nested-runtime.slice