-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use runtime.slice and system.slice cgroup settings in k8s variants #1681
Comments
@webern I am actually taking a stab at implementing this. Not sure if AWS is open to public contributions but I can open a PR once complete. |
@cyrus-mc that's great! We are open to and enthused about public contributions! Here is our contributing guide for reference. Let us know if you need any help or input. If you have design choices to make we can discuss that here as well. 🚀 |
@webern Great. I am doing some experimental builds just to get the build process down. The changes are actually quite trivial as I build a Fedora CoreOS AMI that we currently use as our worker node in EKS and setup the cgroups as outlined in the link above. Running into an early issue on creating my own build. Followed instructions and created an AMI. When I boot that AMI I get And the image never fully boots. |
I just tried booting an instance with this in my userdata [settings.kernel]
lockdown = "confidentiality" And I saw Do you see this in your logs |
P.S. You are trying to boot a build that has no changes, i.e. from |
I just rebuilt and it worked. I must have done something stupid. Anyway I pretty much have the PR for this issue done and will open tomorrow after a few additional changes. |
Per the discussion, investigate and possibly implement the recommended cgroup settings "runtime.slice" and "system.slice".
Discussed in #1679
Originally posted by cyrus-mc July 29, 2021
https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node/node-allocatable.md#recommended-cgroups-setup
As highlighted above there should be a system.slice/cgroup and a podruntime.slice/cgroup that correspond to systemReserved and kubeReserved settings. Looking at the setup of Bottlerocket is appears there is just system.slice under which kubelet and runtime plus all system components run.
Was there a reason for this design decision? As it doesn't map nicely to the configuration settings k8s provides.
Originally posted by webern July 29, 2021
Thanks for bringing this to our attention, and for the pointer to the proposal. Your link also led us to find this https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/#kube-reserved which suggests "runtime.slice" and "system.slice" and points to the design proposal. We'll review our current slice setup and make sure it's aligned with kubelet functionality, unless it's something you'd like to contribute.
The text was updated successfully, but these errors were encountered: