-
Notifications
You must be signed in to change notification settings - Fork 25
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
[Enhancement] Check for PDBs status before draining Node #49
Comments
This would make a great enhancement, however would be somewhat tricky as we would have to evaluate "disruptions allowed" - since there is no way to link an existing PDB CR to a node we are about to terminate - this would mean:
We can probably add a flag to enable/disable this feature |
Another option might be to do |
Good idea worth a check |
does not check if it can disrupt the pod or not. It just print evicting for all pods on that node regardless of their pdb status. I tried this on one of the node which node-reaper was failed to drain and has some pods which can be disrupted. |
Is this a BUG REPORT or FEATURE REQUEST?:
enhancement
What happened:
When node reaper tries to drain a node, it does not check if all pods can be disrupted and node can be drained. It keeps trying to drain the node until command does not timesout.
What you expected to happen:
It should check before trying to drain a node.
How to reproduce it (as minimally and precisely as possible):
Try to drain a node which is having pods with 0 disruption allowed.
Anything else we need to know?:
Environment:
Other debugging information (if applicable):
The text was updated successfully, but these errors were encountered: