{"id":18074184,"url":"https://github.com/maxlaverse/soft-pod-memory-evicter","last_synced_at":"2025-06-12T14:32:19.222Z","repository":{"id":41568826,"uuid":"509827623","full_name":"maxlaverse/soft-pod-memory-evicter","owner":"maxlaverse","description":"Gracefully evict Kubernetes Pods before they get OOM killed","archived":false,"fork":false,"pushed_at":"2025-05-19T19:57:18.000Z","size":272,"stargazers_count":11,"open_issues_count":5,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-01T15:46:59.923Z","etag":null,"topics":["eviction","kubernetes","memory","oom","pod"],"latest_commit_sha":null,"homepage":"","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/maxlaverse.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,"zenodo":null}},"created_at":"2022-07-02T18:03:52.000Z","updated_at":"2025-04-29T05:58:05.000Z","dependencies_parsed_at":"2024-01-15T23:22:23.856Z","dependency_job_id":"7d4fc0e2-5855-46ed-8338-689d8d68fb52","html_url":"https://github.com/maxlaverse/soft-pod-memory-evicter","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":"0.22857142857142854","last_synced_commit":"b3283bc8ed2223db6ca523299574508c33a3a14e"},"previous_names":["maxlaverse/pod-soft-memory-evicter"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/maxlaverse/soft-pod-memory-evicter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlaverse%2Fsoft-pod-memory-evicter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlaverse%2Fsoft-pod-memory-evicter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlaverse%2Fsoft-pod-memory-evicter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlaverse%2Fsoft-pod-memory-evicter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxlaverse","download_url":"https://codeload.github.com/maxlaverse/soft-pod-memory-evicter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlaverse%2Fsoft-pod-memory-evicter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259482527,"owners_count":22864767,"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":["eviction","kubernetes","memory","oom","pod"],"created_at":"2024-10-31T10:11:33.398Z","updated_at":"2025-06-12T14:32:19.202Z","avatar_url":"https://github.com/maxlaverse.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# soft-pod-memory-evicter\n\n![Tests](https://github.com/maxlaverse/soft-pod-memory-evicter/actions/workflows/tests.yml/badge.svg?branch=main)\n![Go Version](https://img.shields.io/github/go-mod/go-version/maxlaverse/soft-pod-memory-evicter)\n![Releases](https://img.shields.io/github/v/release/maxlaverse/soft-pod-memory-evicter?include_prereleases)\n\nA Kubernetes Controller that proactively evicts Pods approaching their memory limits, enabling graceful shutdowns before OOM (Out of Memory) termination occurs.\n\n## Supported Versions\n\nThe controller has been tested and built with the following components:\n\n- Kubernetes \u003e= 1.32.1\n- Metric Server \u003e= 0.7.2\n\n## Installation\n\n```bash\nhelm repo add maxlaverse https://maxlaverse.github.io/helm-charts/\nhelm repo update\nhelm install soft-pod-memory-evicter maxlaverse/soft-pod-memory-evicter\n```\n\nThe controller can be configured by setting Helm values under `extraArgs: []` with any of the options listed in the [Usage](#usage) section below. For a complete list of configurable Helm values, please refer to the [values.yaml][values] file.\n\n## Usage\n\n```\nNAME:\n   soft-pod-memory-evicter - Gracefully evict Pods before they get OOM killed\n\nUSAGE:\n   soft-pod-memory-evicter [global options] command [command options]\n\nCOMMANDS:\n   help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --dry-run                                              Output additional debug lines (default: false)\n   --pod-selector value                                   Evict only Pods matching this label selector\n   --eviction-pause value                                 Pause duration between evictions (default: 5m0s)\n   --memory-usage-check-interval value                    Interval at which the Pod metrics are checked (default: 3m0s)\n   --memory-usage-threshold value                         Memory usage eviction threshold (0-100) (default: 95)\n   --channel-queue-size value                             Size of the queue for pod eviction (default: 100)\n   --ignore-namespace value [ --ignore-namespace value ]  Do not evict Pods from this namespace. Can be used multiple times\n   --loglevel value, -v value                             Log Level (default: 0)\n   --help, -h                                             show help\n```\n\n## Pod-specific configurations\n\nPods can be configured individually using annotations to override the default behavior:\n\n- `soft-pod-memory-evicter.laverse.net/memory-usage-threshold`: Specifies the memory usage threshold (0-100) at which the Pod should be evicted. This value overrides the global threshold set by the `--memory-usage-threshold` flag.\n\nExample:\n\n```yaml\napiVersion: v1\nkind: Pod\nmetadata:\n  annotations:\n    soft-pod-memory-evicter.laverse.net/memory-usage-threshold: \"80\"\n```\n\n## License\n\nDistributed under the Apache License. See [LICENSE](./LICENSE) for more information.\n\n[values]: https://github.com/maxlaverse/helm-charts/blob/main/charts/soft-pod-memory-evicter/values.yaml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlaverse%2Fsoft-pod-memory-evicter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxlaverse%2Fsoft-pod-memory-evicter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlaverse%2Fsoft-pod-memory-evicter/lists"}