Skip to content
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

Validate early AvailableResources/Reserved.cpus vs what is available on host. #922

Open
ppalucki opened this issue Nov 16, 2022 · 1 comment

Comments

@ppalucki
Copy link
Contributor

ppalucki commented Nov 16, 2022

Describe the solution you'd like
with following config:

policy:
  Active: balloons
  AvailableResources:
    CPU: cpuset:1-63
  ReservedResources:
    CPU: cpuset:63    

after I scheduled new pod I got an error

 unable to apply cgroup configuration: failed to write "63": write /sys/fs/cgroup/cpuset/docker/6eb0031417c8e4e3fd56ba13702cd6cdb5bd920d6065d79a2ca7afe8ca2b40d0/kubelet.slice/kubelet-kubepods.slice/kubelet-ku

because my machine has only: 56 cpus

Why this is needed
I want to prevent situation when early detected misconfiguration can be validate before we reconfigure kubelet or even try to run.

ps. I don't know is this generic issues I found it on this branch: may be related to "new feature" cputree developed there: https://github.com/askervin/cri-resource-manager/tree/5Lp_WIP_balloons_topology_fix

@ppalucki
Copy link
Contributor Author

duplicate of #904

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

No branches or pull requests

1 participant