Skip to content

Configure kube-reserved cgroup#169

Open
Mathieu Parent (sathieu) wants to merge 1 commit into
vexxhost:mainfrom
sathieu:kube-reserved
Open

Configure kube-reserved cgroup#169
Mathieu Parent (sathieu) wants to merge 1 commit into
vexxhost:mainfrom
sathieu:kube-reserved

Conversation

@sathieu

@sathieu Mathieu Parent (sathieu) commented May 20, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a dedicated systemd slice (podruntime.slice) and moves kubelet + containerd into it as groundwork for Kubernetes “node allocatable / reserved resources” cgroup layouts.

Changes:

  • Add a new podruntime.slice unit and element to provide a named cgroup/slice for node runtime services.
  • Configure kubelet.service and containerd.service to run under podruntime.slice.
  • Add element dependency wiring so the slice unit is present when kubelet/containerd are installed.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
elements/podruntime-slice/init-scripts/systemd/podruntime.slice Adds a new systemd slice unit definition for podruntime.slice.
elements/podruntime-slice/element-deps Declares init-system dependency for installing the slice unit.
elements/kubelet/init-scripts/systemd/kubelet.service Assigns kubelet to podruntime.slice.
elements/kubelet/element-deps Ensures kubelet element pulls in the slice element.
elements/containerd/init-scripts/systemd/containerd.service Assigns containerd to podruntime.slice.
elements/containerd/element-deps Ensures containerd element pulls in the slice element.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1,7 @@
[Unit]
Description=Limited resources slice for Kubernetes services

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the unit should be created, at least for DefaultDependencies=no

@sathieu

Copy link
Copy Markdown
Contributor Author

Can someone review my PR? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants