From 5d45f269aac3a89550c39ee90bbcf70c711b84dd Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 19 Nov 2020 00:36:04 +0100 Subject: [PATCH] nixos/k3s: disable unifiedCgroupHierarchy This gets automatically disabled by docker if the docker backend is used, but the bundled containerd also doesn't seem to support cgroupsv2, so disable it explicitly here, too. --- nixos/modules/services/cluster/k3s/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/services/cluster/k3s/default.nix b/nixos/modules/services/cluster/k3s/default.nix index 2e8bf20a68f..f0317fdbd16 100644 --- a/nixos/modules/services/cluster/k3s/default.nix +++ b/nixos/modules/services/cluster/k3s/default.nix @@ -76,6 +76,10 @@ in enable = mkDefault true; }; + # TODO: disable this once k3s supports cgroupsv2, either by docker + # supporting it, or their bundled containerd + systemd.enableUnifiedCgroupHierarchy = false; + systemd.services.k3s = { description = "k3s service"; after = mkIf cfg.docker [ "docker.service" ];