Add NodeMetadata scoring plugin#942
Conversation
✅ Deploy Preview for kubernetes-sigs-scheduler-plugins canceled.
|
|
Welcome @alikhil! |
|
Hi @alikhil. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: alikhil The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Signed-off-by: Alik Khilazhev <7482065+alikhil@users.noreply.github.com>
|
/cc |
|
can you add a bit longer description? What does this plugin tries to do? What are the usecases? |
|
@PiotrProkop I have added more details to the PR description. You can also refer to the plugin’s README.md for additional information. |
|
Friendly ping when you have a moment — I’d appreciate any feedback. Thanks! |
|
Hello, co-owner of the fork here, can we do anything to help get this change reviewed? Thanks. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR introduces new score plugin which allows you to influence scheduling decisions based on custom node metadata. It supports two types of metadata:
Use Cases
Behavior Notes
Arguments
The plugin accepts the following configuration parameters:
metadataKeymetadataSource"Label"or"Annotation"metadataType"Number"or"Timestamp"scoringStrategytimestampFormatmetadataTypeis"Timestamp")Example Score by Last Update Time (Newest Timestamp)
Prefer nodes that were updated most recently:
Node annotations:
Result:
node2gets a higher score thannode1(more recently maintained).Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?