add a real systemd kubelet slice

This commit is contained in:
Benjamin Elder
2022-05-18 21:24:34 -07:00
parent cb8af455b3
commit 0ffcf8d695
2 changed files with 9 additions and 1 deletions

View File

@@ -15,9 +15,10 @@ Restart=always
StartLimitInterval=0
# NOTE: kind deviates from upstream here with a lower RestartSec
RestartSec=1s
# and here
# And by adding the [Service] lines below
CPUAccounting=true
MemoryAccounting=true
Slice=kubelet.slice
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,7 @@
[Unit]
Description=slice used to run Kubernetes / Kubelet
Before=slices.target
[Slice]
MemoryAccounting=true
CPUAccounting=true