Skip to content

k0s uses cgroupsfs driver by default even on systemd based OS #6278

@jnummelin

Description

@jnummelin

k0s should have some smarts when defaulting the cgroup driver. On systemd based OS we should probably detect this and configure systemd driver to be used for both kubelet and containerd.

While the autodetection itself is probably straighforward, there's couple dragons hiding

User configured driver via workerProfile

User can configure the driver on the workerProfile since it essentially allows one to override the entire kubelet configuration. If user specifies something there, k0s should respect that and not do any auto detection

Upgrades

Since this is kinda new functionality we cannot change the driver "on-the-fly". If I'm running say 1.33.x and upgrade to 1.34.x, I don't want the driver to change on the fly. This would probably result in some confusion on kubelet/containerd level and might even break some things.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions