Skip to content

feat: add EnergyGradient scheduler plugin for EGS#944

Open
oerc-s wants to merge 1 commit intokubernetes-sigs:masterfrom
oerc-s:feat/egs-gradient-plugin
Open

feat: add EnergyGradient scheduler plugin for EGS#944
oerc-s wants to merge 1 commit intokubernetes-sigs:masterfrom
oerc-s:feat/egs-gradient-plugin

Conversation

@oerc-s
Copy link
Copy Markdown

@oerc-s oerc-s commented Jan 23, 2026

Summary

Adds scheduler plugin that scores nodes based on energy gradients exposed via /egs/v1/gradient endpoints.

What is EGS?

EGS (Energy-Gradient Signaling) is a standard for exposing executable marginal energy capacity to autonomous systems.

Autonomous allocators select capacity via gradient. This plugin enables Kubernetes to participate in energy-aware allocation.

Plugin

  • Name: EnergyGradient
  • Type: Score plugin
  • Annotation: egs.ear-standard.org/endpoint

Scoring

score = marginal_capacity_kw × (1 - cost_index) × (thermal_headroom_pct / 100)

Nodes with higher marginal capacity, lower cost, and higher thermal headroom receive higher scores.

Files

  • pkg/energygradient/energygradient.go — Plugin implementation
  • pkg/energygradient/README.md — Documentation

Reference

Adds scheduler plugin that scores nodes based on energy gradients
exposed via /egs/v1/gradient endpoints.

Nodes exposing higher marginal_capacity_kw with lower
instantaneous_cost_index and higher thermal_headroom receive
higher scores, enabling energy-aware workload placement.

Scoring: marginal_kw × (1 - cost_index) × thermal_headroom

Node annotation: egs.ear-standard.org/endpoint

Ref: https://ear-standard.org
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions 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.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Jan 23, 2026
@linux-foundation-easycla
Copy link
Copy Markdown

CLA Missing ID CLA Not Signed

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Jan 23, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Welcome @oerc-s!

It looks like this is your first PR to kubernetes-sigs/scheduler-plugins 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/scheduler-plugins has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jan 23, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Hi @oerc-s. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions 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.

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: oerc-s
Once this PR has been reviewed and has the lgtm label, please assign huang-wei for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 23, 2026
@netlify
Copy link
Copy Markdown

netlify bot commented Jan 23, 2026

Deploy Preview for kubernetes-sigs-scheduler-plugins canceled.

Name Link
🔨 Latest commit 32aaf81
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-scheduler-plugins/deploys/6973d1b9a7b55d0008262177

@ffromani
Copy link
Copy Markdown
Contributor

ffromani commented Feb 4, 2026

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 4, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@oerc-s: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-scheduler-plugins-unit-test-master 32aaf81 link true /test pull-scheduler-plugins-unit-test-master

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions 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. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants