Merge pull request #44264 from eonpatapon/kubelet-cgroup-stats

nixos/kubernetes: fix kubelet cgroup stats
This commit is contained in:
Jörg Thalheim 2018-08-01 12:08:13 +01:00 committed by GitHub
commit 69a94a01c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -838,6 +838,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 (taints != "")
"--register-with-taints=${taints}"} \