mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
add a real systemd kubelet slice
This commit is contained in:
@@ -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
|
||||
|
||||
7
images/base/files/etc/systemd/system/kubelet.slice
Normal file
7
images/base/files/etc/systemd/system/kubelet.slice
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=slice used to run Kubernetes / Kubelet
|
||||
Before=slices.target
|
||||
|
||||
[Slice]
|
||||
MemoryAccounting=true
|
||||
CPUAccounting=true
|
||||
Reference in New Issue
Block a user