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

Kubevirt: Run Descheduler on node boot to rebalance cluster apps #4506

Merged

Conversation

andrewd-zededa
Copy link
Contributor

@andrewd-zededa andrewd-zededa commented Jan 3, 2025

Update_RunDeschedulerOnBoot will run the descheduler to
evict pods from the edge node on boot.
This is to allow rebalancing apps via re-scheduling them
with an aim to meet affinity as specified in the pod config.

This path includes a series of gates to ensure the destination
node is available as a scheduling destination.

  • Wait for the kubernetes api to be available.
  • Wait until node is online and uncordoned.
  • Wait until infrastructure is ready (kubevirt/longhorn).

This PR needs #4501 for update-component binary.

@andrewd-zededa andrewd-zededa force-pushed the descheduler-rebalance-apps branch from dc4cef9 to 6745e70 Compare January 3, 2025 16:27
@andrewd-zededa andrewd-zededa force-pushed the descheduler-rebalance-apps branch from 6745e70 to 784aa25 Compare January 17, 2025 23:06
@andrewd-zededa andrewd-zededa marked this pull request as ready for review January 29, 2025 15:48
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Update_RunDeschedulerOnBoot will run the descheduler to
evict pods from the edge node on boot.
This is to allow rebalancing apps via re-scheduling them
with an aim to meet affinity as specified in the pod config.

This path includes a series of gates to ensure the destination
node is available as a scheduling destination.
- Wait for the kubernetes api to be available.
- Wait until node is online and uncordoned.
- Wait until infrastructure is ready (kubevirt/longhorn).

Signed-off-by: Andrew Durbin <[email protected]>
@andrewd-zededa andrewd-zededa force-pushed the descheduler-rebalance-apps branch from 784aa25 to e2603b4 Compare February 5, 2025 04:06
@github-actions github-actions bot requested a review from eriknordmark February 5, 2025 04:07
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eriknordmark eriknordmark merged commit 78b2a23 into lf-edge:master Feb 5, 2025
44 checks passed
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

Successfully merging this pull request may close these issues.

2 participants