-
Notifications
You must be signed in to change notification settings - Fork 126
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
Research :: Readiness Scheduling Gates #1223
Comments
Old PoC that used a workaround with extra labels: #632 |
PR kubernetes-sigs/controller-runtime#2189 has been merged and unlocks this research |
The new controller runtime v 0.15.0 will introduce multiple breaking changes that will require code refactoring/changes in all our operators:
After these changes and the import of controller runtime and k8s 1.27.1 libraries, we can substitute the scheduler with gates, in the poc this is done by adding an extra webhook reacting to the creation of new pods:
It is left do decide also what to do with the scheduler. Shall we do a breaking change and delete it or add some logic to enable/disable gates or scheduler for at least one version? |
Goal
Prototype a KLT implementation that uses Pod Scheduling Readiness instead of the Scheduling Plugin.
Technical Details
KLT currently uses a custom plugin for the scheduler to forbid Pods from being bound to a node. With the new addition of the Readiness Gates, we could eliminate the extra binary and use the new API. This has some consequences for our mutating webhook: it should add a gate when a manifest is applied (on update it won't). When the pre-checks are completed successfully, the gates shall be removed.
Resources
The text was updated successfully, but these errors were encountered: