/area os
/kind enhancement
/kind bug
/os garden-linux
What this PR does / why we need it:
Garden Linux since 934 supports cgroup v2. Since then, the Garden Linux extension contained code to determine the cgroup hierarchy of the underlying host and configure containerd and kubelet to use cgroupfs as a cgroup driver if the host os uses cgroup v1 and configure them to use systemd as a cgroup driver if the host os uses cgroup v2.
Unfortunately, this cause some issues (#141) in the past.
Since Garden Linux 576 (the last Garden Linux version with cgroup v1) is no longer supported and all future Garden Linux versions will use cgroup v2, with this PR, containerd and kubelet will always be configured to use systemd as cgroup driver - code that would configure either to use cgroupfs is removed.
Note: this extension will require Garden Linux 934 and above is no longer compatible with Garden Linux 576 or lower.
Which issue(s) this PR fixes:
Fixes #141
Release note:
Support for cgroup v1 is removed from the Garden Linux extension, containerd and kubelet will always get configured to use `systemd` as a cgroup driver. With this change, the extension is compatible with Garden Linux 934 or newer only.
How to categorize this PR?
/area os /kind enhancement /kind bug /os garden-linux
What this PR does / why we need it:
Garden Linux since 934 supports cgroup v2. Since then, the Garden Linux extension contained code to determine the cgroup hierarchy of the underlying host and configure containerd and kubelet to use
cgroupfs
as a cgroup driver if the host os uses cgroup v1 and configure them to usesystemd
as a cgroup driver if the host os uses cgroup v2. Unfortunately, this cause some issues (#141) in the past.Since Garden Linux 576 (the last Garden Linux version with cgroup v1) is no longer supported and all future Garden Linux versions will use cgroup v2, with this PR, containerd and kubelet will always be configured to use
systemd
as cgroup driver - code that would configure either to usecgroupfs
is removed.Note: this extension will require Garden Linux 934 and above is no longer compatible with Garden Linux 576 or lower.
Which issue(s) this PR fixes: Fixes #141
Release note: