-
Notifications
You must be signed in to change notification settings - Fork 174
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
Make sure node has enough resources available for scheduling injector pod #2144
Comments
The relevant code for this is in this function: And a check that allocatable CPU and Memory for the node ( |
@Racer159 I added some code to images.go to fix this issue. Semantically - should the Allocatable amount be exclusively higher or greater than/equal to? I'm leaning towards higher for a fudge factor but would appreciate your thoughts. |
Opened #2220 for you to check out. |
Thanks for the PR! Added some comments / feedback over there. |
…#2220) ## Description Addresses #2144 to check if node has enough resources before the injector runs ## Related Issue Fixes #2144 ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [x] Test, docs, adr added or updated as needed - [x] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed --------- Co-authored-by: Wayne Starr <[email protected]>
Is your feature request related to a problem? Please describe.
When zarf attempts to run the injector since it's tied to a specific node it should check if the node has sufficient resources available, it does not and can end up in a stuck state where the pod is never scheduled if the node doesn't have enough resources available.
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: