3
0
Fork 0
forked from mirrors/nixpkgs

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.
This commit is contained in:
Florian Klink 2020-11-19 00:36:04 +01:00
parent d22b3ed4bc
commit 5d45f269aa

View file

@ -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" ];