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

Ensure created pods are bound to PVCs on schedulable nodes. #873

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HackToHell
Copy link

@HackToHell HackToHell commented Nov 1, 2024

Currently if local PVs are used for nvme/local SSDs, the operator will pick up a PV randomly. This makes it such that it only picks up PVCs that are bound to PV only to nodes which are schedulable.

The main changes are

  • Ensures that if a rolling update is being done with one nodepool marked as non schedulable then the new pods don't bind to the existings pvcs pointing to the unschedulable nodes.
  • PVs that are already bound are prioritized over normal ones.

@HackToHell HackToHell requested a review from a team as a code owner November 1, 2024 20:20
@HackToHell
Copy link
Author

@SaaldjorMike Please let me know if you would like more cases covered. This doesn't fully cover a lot of cases such as Node labels and spec toleration but that might be out of scope. This would make sure automated upgrades and node replacements work without manual intervention. I have tested it out on our internal cluster.

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.

1 participant