nixos/kubernetes: fix kubelet cgroup stats

https://github.com/kubernetes/kubernetes/issues/56850
(cherry picked from commit 76c7cc0f30d6b0bcd690e2d22b180e8b171ce544)
release-18.03-flake
Jean-Philippe Braun 2018-07-31 15:45:37 +02:00 committed by Jörg Thalheim
parent 0e55dde2ea
commit 1596c81382
1 changed files with 2 additions and 0 deletions

View File

@ -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}"} \