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

[BUG] Should adjust scanner CPU request in example yaml #1062

Open
1 task
lzhecheng opened this issue Aug 2, 2024 · 2 comments
Open
1 task

[BUG] Should adjust scanner CPU request in example yaml #1062

lzhecheng opened this issue Aug 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@lzhecheng
Copy link
Contributor

Version of Eraser

v1.4.0-beta.0

Expected Behavior

I deployed eraser on a standard CAPZ cluster with VM size: Standard B2s (2 vcpus, 4 GiB memory)
Eraser Pod should start on all Nodes.

Actual Behavior

The eraser Pod on the control plane cannot start because of OutOfcpu:

eraser-system      eraser-controller-manager-8589f5dd7-wvq4w                  1/1     Running     0             37m   192.168.183.131   zhecheng-802-md-0-svlgx-lhwjg      <none>           <none>
eraser-system      eraser-zhecheng-802-control-plane-cfz5s-58fq2              0/3     OutOfcpu    0             37m   <none>            zhecheng-802-control-plane-cfz5s   <none>           <none>
eraser-system      eraser-zhecheng-802-md-0-svlgx-8n9gw-56mzk                 0/3     Completed   0             37m   192.168.108.3     zhecheng-802-md-0-svlgx-8n9gw      <none>           <none>
eraser-system      eraser-zhecheng-802-md-0-svlgx-lhwjg-gfx9t                 0/3     Completed   0             37m   192.168.183.132   zhecheng-802-md-0-svlgx-lhwjg      <none>           <none>
eraser-system      eraser-zhecheng-802-md-0-svlgx-vwp9n-68kl2                 0/3     Completed   0             37m   192.168.41.68     zhecheng-802-md-0-svlgx-vwp9n      <none>           <none>

Warning  OutOfcpu  20m   kubelet  Node didn't have enough resource: cpu, requested: 1007, used: 1100, capacity: 2000

The CPU request should be smaller:
https://github.com/eraser-dev/eraser/blob/v1.4.0-beta.0/deploy/eraser.yaml#L431

Steps To Reproduce

  1. Deploy a CAPZ cluster
  2. Deploy eraser

Are you willing to submit PRs to contribute to this bug fix?

  • Yes, I am willing to implement it.
@lzhecheng lzhecheng added the bug Something isn't working label Aug 2, 2024
@lzhecheng
Copy link
Contributor Author

lzhecheng commented Aug 2, 2024

Same issue but from a different perspective to solve it: #1005

@ashnamehrotra
Copy link
Contributor

@lzhecheng you can change the cpu via deploy.resources.requests.cpu https://github.com/eraser-dev/eraser/tree/v1.4.0-beta.0/charts/eraser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants