{"id":15441854,"url":"https://github.com/mudler/k8s-resource-scheduler","last_synced_at":"2025-03-28T07:12:22.144Z","repository":{"id":69642317,"uuid":"316285088","full_name":"mudler/k8s-resource-scheduler","owner":"mudler","description":":japanese_castle: Simple (toy/experimental) CPU/Memory pod scheduler","archived":false,"fork":false,"pushed_at":"2022-08-18T17:41:06.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T07:43:40.353Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mudler.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-26T16:33:19.000Z","updated_at":"2024-01-02T22:22:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b968c51-6aff-46a9-9a20-7128ff589f4b","html_url":"https://github.com/mudler/k8s-resource-scheduler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2Fk8s-resource-scheduler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2Fk8s-resource-scheduler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2Fk8s-resource-scheduler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudler%2Fk8s-resource-scheduler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mudler","download_url":"https://codeload.github.com/mudler/k8s-resource-scheduler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245984590,"owners_count":20704798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-01T19:23:38.241Z","updated_at":"2025-03-28T07:12:22.126Z","avatar_url":"https://github.com/mudler.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :japanese_castle: k8s-resource-scheduler - Simple Kubernetes Resource scheduler\n\n[![Docker Repository on Quay](https://quay.io/repository/mudler/k8s-resource-scheduler/status \"Docker Repository on Quay\")](https://quay.io/repository/mudler/k8s-resource-scheduler)\n\nSimple (experimental) CPU/Memory pod scheduler based from https://github.com/kelseyhightower/scheduler.\n\nThe scheduler reads kubernetes metrics to determine nodes current CPU and Memory usage, and it tries to assign pods to nodes which are less busy.\n\n## Prerequisite\n\n- Kubernetes cluster\n- Metric server running\n\n## Run the Scheduler on Kubernetes\n\n\n```bash\n\n$ kubectl apply -f https://raw.githubusercontent.com/mudler/k8s-resource-scheduler/master/deployments/scheduler.yaml\n\n```\n\n## Usage\n\nAdd `schedulerName` to your pods definition;\n\n```yaml\n...\n    spec:\n      schedulerName: k8s-resource-scheduler\n```\n\n\n### CPU and Memory Bound workloads\n\nThere are occasions where you want to weight scheduling based on cpu or memory, or both.\n\n\n### Privileging CPU bound applications\n\nIf applications that you are going to deploy are likely CPU intensive, you might want to privilege scheduling based on cpu load.\n\nYou can put annotation in a pod, or in a node:\n\n```yaml\nk8s-resource-scheduler/cpu-bound=true\n```\n\n### Privileging Memory bound applications\n\nIf applications that you are going to deploy are likely Memory intensive, you might want to privilege scheduling based on memory load.\n\nYou can put annotation in a pod, or in a node:\n\n```yaml\nk8s-resource-scheduler/memory-bound=true\n```\n\nBy default, the scheduler will try to assign the pod to the node which has less cpu/memory current usage.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudler%2Fk8s-resource-scheduler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmudler%2Fk8s-resource-scheduler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudler%2Fk8s-resource-scheduler/lists"}