nixos/kubernetes: fix kubelet cgroup stats
https://github.com/kubernetes/kubernetes/issues/56850 (cherry picked from commit 76c7cc0f30d6b0bcd690e2d22b180e8b171ce544)release-18.03-flake
parent
0e55dde2ea
commit
1596c81382
|
@ -782,6 +782,8 @@ in {
|
|||
path = with pkgs; [ gitMinimal openssh docker utillinux iproute ethtool thin-provisioning-tools iptables socat ] ++ cfg.path;
|
||||
serviceConfig = {
|
||||
Slice = "kubernetes.slice";
|
||||
CPUAccounting = true;
|
||||
MemoryAccounting = true;
|
||||
ExecStart = ''${cfg.package}/bin/kubelet \
|
||||
${optionalString cfg.kubelet.applyManifests
|
||||
"--pod-manifest-path=${manifests}"} \
|
||||
|
|
Loading…
Reference in New Issue