-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add service to cleanup stale kubelet files on boot
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# There are systems with multiple NUMA node that can change reported memory after rebooting | ||
# causing kubelet's Memory Manager to block startup. | ||
# To work around this, this unit will delete stale files on boot. | ||
# Borrowed from: https://github.com/openshift/machine-config-operator/pull/4124 | ||
[Unit] | ||
Description=Delete Kubelet CPU and Memory managers state on boot | ||
Before=microshift.service | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/bin/rm -f /var/lib/kubelet/cpu_manager_state | ||
ExecStart=/bin/rm -f /var/lib/kubelet/memory_manager_state | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters