Skip to content

Conversation

@jnummelin
Copy link
Member

Description

This PR introduces cgroups auto-detection to select the driver (systemd/cgroupsfs) based on the operating environment. The auto-detection respects an existing configuration on the node, so which ever driver was used will be still used after upgrade. This ensures we're not gonna change the driver "in-flight" as that would probably break containers and pods.

The scope has been solely the driver detection, so what ever hard-coded, and non-optimal, cgroups have been used will still be used by default.

Fixes #6278

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

This is borderline a bug fix and a feature. 😂

How Has This Been Tested?

  • Manual test
  • Auto test added

Checklist

  • My code follows the style guidelines of this project
  • My commit messages are signed-off
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

This PR introduces cgroups auto-detection to select the driver (systemd/cgroupsfs) based on the operating environment.
The auto-detection respects an existing configuration on the node, so which ever driver was used will be still used after upgrade.
This ensures we're not gonna change the driver "in-flight" as that would probably break containers and pods.

The scope has been solely the driver detection, so what ever hard-coded, and non-optimal, cgroups have been used will still be used by default.

Signed-off-by: Jussi Nummelin <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2025

This pull request has merge conflicts that need to be resolved.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2025

The PR is marked as stale since no activity has been recorded in 30 days

@github-actions github-actions bot added Stale and removed Stale labels Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

k0s uses cgroupsfs driver by default even on systemd based OS

1 participant