From 1035af917528686c5aaebe9a6504fe97719dcec8 Mon Sep 17 00:00:00 2001 From: Santhosh Date: Sun, 3 May 2026 09:10:37 -0700 Subject: [PATCH 1/3] Update README.md to have info about cgroupv2 --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index a1bb9a98..d55901d9 100644 --- a/README.md +++ b/README.md @@ -729,3 +729,27 @@ Example syslog entry ``` Entries without these keys in the MSG part of RFC 5424 will still be logged to the stylus-audit.log file but will not be displayed on LocalUI. + +# cgroup v2 + +cgroup v2 is the next version of the Linux cgroup API. cgroup v2 provides a unified control system with enhanced resource management capabilities. +Kubernetes has deprecated cgroup v1. Removal will follow Kubernetes deprecation policy. + +Kubelet will no longer start on a cgroup v1 node by default. To disable this setting a cluster admin should set failCgroupV1 to false in the [kubelet configuration](https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/) file or while building the installer/provider images set cgroup v2 as default. + +In the userdata file, while building the installer add systemd.unified_cgroup_hierarchy=1 + +``` +#cloud-config +install: + grub_options: + extra_cmdline: "systemd.unified_cgroup_hierarchy=1" +``` + +or if you are upgrading from k8s 1.34.x to 1.35.x and the operating system defaults to cgroup v1, build the provider image with cgroupv2 as default by uncommenting the following line in the Dockerfile. +``` +RUN sed -i 's|\(set baseCmd="[^"]*\)"|\1 systemd.unified_cgroup_hierarchy=1"|' \ + /etc/cos/bootargs.cfg +``` + + From dfe332d350f248d37ac2bd6e9d7321d51ff96cb1 Mon Sep 17 00:00:00 2001 From: Santhosh Date: Sun, 3 May 2026 09:13:30 -0700 Subject: [PATCH 2/3] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index d55901d9..f785070a 100644 --- a/README.md +++ b/README.md @@ -733,9 +733,7 @@ Entries without these keys in the MSG part of RFC 5424 will still be logged to t # cgroup v2 cgroup v2 is the next version of the Linux cgroup API. cgroup v2 provides a unified control system with enhanced resource management capabilities. -Kubernetes has deprecated cgroup v1. Removal will follow Kubernetes deprecation policy. - -Kubelet will no longer start on a cgroup v1 node by default. To disable this setting a cluster admin should set failCgroupV1 to false in the [kubelet configuration](https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/) file or while building the installer/provider images set cgroup v2 as default. +Kubernetes has deprecated cgroup v1. Kubelet will no longer start on a cgroup v1 node by default from k8s v1.35.x. To disable this setting a cluster admin should set failCgroupV1 to false in the [kubelet configuration](https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/) file or while building the installer/provider images set cgroup v2 as default. In the userdata file, while building the installer add systemd.unified_cgroup_hierarchy=1 From 35711e622a6893461978c65a6b328449dc97ebe7 Mon Sep 17 00:00:00 2001 From: Santhosh Date: Sun, 3 May 2026 09:16:01 -0700 Subject: [PATCH 3/3] Update Dockerfile to set cgroupv2 as default Update Dockerfile to set cgroupv2 as default by enabling unified_cgroup_hierarchy=1 --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index ff3e17d0..e8daea1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -95,3 +95,6 @@ COPY overlay/files/etc/spectrocloud/custom-hardware-specs-lookup.json /etc/spect # ENV LB_HOW compile # ENTRYPOINT /entry.sh + +# to set cgroupv2 as default +#RUN sed -i 's|\(set baseCmd="[^"]*\)"|\1 systemd.unified_cgroup_hierarchy=1"|' /etc/cos/bootargs.cfg