{"id":37088204,"url":"https://github.com/decayofmind/kube-better-node","last_synced_at":"2026-01-14T10:50:10.865Z","repository":{"id":75750645,"uuid":"390143471","full_name":"decayofmind/kube-better-node","owner":"decayofmind","description":"A simple Descheduler-like program for preferredDuringSchedulingIgnoredDuringExecution nodeAffinity terms","archived":true,"fork":false,"pushed_at":"2023-11-06T12:51:19.000Z","size":166,"stargazers_count":7,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-08T23:48:39.230Z","etag":null,"topics":["descheduler","kubernetes","soft","workaround"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/decayofmind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-07-27T22:24:09.000Z","updated_at":"2023-11-06T12:52:12.000Z","dependencies_parsed_at":"2023-11-06T13:55:38.367Z","dependency_job_id":null,"html_url":"https://github.com/decayofmind/kube-better-node","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/decayofmind/kube-better-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decayofmind%2Fkube-better-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decayofmind%2Fkube-better-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decayofmind%2Fkube-better-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decayofmind%2Fkube-better-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/decayofmind","download_url":"https://codeload.github.com/decayofmind/kube-better-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decayofmind%2Fkube-better-node/sbom","scorecard":{"id":331308,"data":{"date":"2025-08-11","repo":{"name":"github.com/decayofmind/kube-better-node","commit":"33d4f09483426f14e044338f046e89eaeb2d4e37"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yaml:6","Info: topLevel 'pull-requests' permission set to 'read': .github/workflows/ci.yaml:7","Warn: topLevel 'contents' permission set to 'write': .github/workflows/release.yaml:10","Warn: topLevel 'packages' permission set to 'write': .github/workflows/release.yaml:11","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/decayofmind/kube-better-node/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/decayofmind/kube-better-node/ci.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/decayofmind/kube-better-node/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/decayofmind/kube-better-node/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/decayofmind/kube-better-node/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/decayofmind/kube-better-node/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/decayofmind/kube-better-node/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/decayofmind/kube-better-node/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/decayofmind/kube-better-node/release.yaml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:3","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.4 not signed: https://api.github.com/repos/decayofmind/kube-better-node/releases/118282504","Warn: release artifact v0.0.3 not signed: https://api.github.com/repos/decayofmind/kube-better-node/releases/109134622","Warn: release artifact v0.0.2 not signed: https://api.github.com/repos/decayofmind/kube-better-node/releases/107343413","Warn: release artifact v0.0.1 not signed: https://api.github.com/repos/decayofmind/kube-better-node/releases/103869729","Warn: release artifact v0.0.4 does not have provenance: https://api.github.com/repos/decayofmind/kube-better-node/releases/118282504","Warn: release artifact v0.0.3 does not have provenance: https://api.github.com/repos/decayofmind/kube-better-node/releases/109134622","Warn: release artifact v0.0.2 does not have provenance: https://api.github.com/repos/decayofmind/kube-better-node/releases/107343413","Warn: release artifact v0.0.1 does not have provenance: https://api.github.com/repos/decayofmind/kube-better-node/releases/103869729"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9","Warn: Project is vulnerable to: GO-2024-2611 / GHSA-8r3f-844c-mc37"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T03:42:46.450Z","repository_id":75750645,"created_at":"2025-08-18T03:42:46.450Z","updated_at":"2025-08-18T03:42:46.450Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["descheduler","kubernetes","soft","workaround"],"created_at":"2026-01-14T10:50:10.233Z","updated_at":"2026-01-14T10:50:10.852Z","avatar_url":"https://github.com/decayofmind.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ❗ ARCHIVED ❗\n\nWith [#1210](https://github.com/kubernetes-sigs/descheduler/pull/1210) being merged, [kubernetes-sigs/descheduler](https://github.com/kubernetes-sigs/descheduler) now respects `preferredDuringSchedulingIgnoredDuringExecution` term,\nso there's no need to use and maintain this program\n\n# kube-better-node\n\n![meme](https://github.com/decayofmind/kube-better-node/assets/4447814/3d64b91d-9107-4ea6-b9b6-66169cbb0597)\n\nThis small program does the only thing [kubernetes-sigs/descheduler](https://github.com/kubernetes-sigs/descheduler) can't do. It will evict Pods which could be potentially schedulled to a better Node, based on `preferredDuringSchedulingIgnoredDuringExecution` `nodeAffinity` terms.\n\n### ⚠️ Disclaimer ⚠️\n\n* I have no intention to replicate and follow all Descheduler policies and rules, but feel free to create a PR if something is missing.\n* I do not need functionality provided by this program anymore, however I still see it useful for exploring the Golang world.\n* Remember, it' a workaround and there's no guarantee that a Pod will be scheduled to a Node you expect it to be.\n\n## Why?\n\nThere're at least two rotten unmerged PRs in the Descheduler repository:\n\n* [#130](https://github.com/kubernetes-sigs/descheduler/pull/130) (`FindBetterPreferredNode` and `CalcPodPriorityScore` are inspired by it. Thanks [@tsu1980](https://github.com/tsu1980))\n* [#129](https://github.com/kubernetes-sigs/descheduler/pull/129)\n\nIn fact, this functionallity will be never implemented in Descheduler. \n\nAs [@asnkh](https://github.com/asnkh) said in [#211](https://github.com/kubernetes-sigs/descheduler/issues/211#issuecomment-602026583):\n\n\u003e ...unless descheduler can make the same decision as kube-scheduler, it can cause this kind of ineffective pod evictions. I have no good idea to overcome this difficulty. Copying all scheduling policies in kube-scheduler to descheduler is not realistic.\n\n## Use case\n\nHowever, there're real world use-cases, where such dumb eviction can be usefull. \n\nFor example, when your project is small and there's a need to use some special Spot instance node type (such as Tesla `p2.xlarge`).\nThis type of instance can be taken back from you by AWS, but if your project can afford some performance degradation for a short period of time (untill there's a new node of `p2.xlarge` given), `kube-scheduler` will place Pods on some other Node available at the moment.\n\nBut when finally new Tesla `p2.xlarge` node will apper and join the cluster, there's nothing to schedule your Pods back to it. \n\nHere **kube-better-node** can be usefull. \n\n## Usage\n\n```sh\n❯ kube-better-node -h\nUsage of kube-better-node:\n  -dry-run\n    \tDry run\n  -tolerance int\n    \tIgnore certain weight difference\n  -v value\n    \tnumber for the log level verbosity\n```\n\n## Installation\n\n```\nhelm repo add decayofmind https://decayofmind.github.io/charts/\nhelm install kube-better-node decayofmind/kube-better-node\n```\n\n## Links\n\n* https://github.com/kubernetes-sigs/cluster-capacity\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecayofmind%2Fkube-better-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdecayofmind%2Fkube-better-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecayofmind%2Fkube-better-node/lists"}