{"id":16797109,"url":"https://github.com/jdockerty/kubectl-oomd","last_synced_at":"2025-10-10T12:02:11.859Z","repository":{"id":62867889,"uuid":"561809439","full_name":"jdockerty/kubectl-oomd","owner":"jdockerty","description":"Show pods/containers which have recently been 'OOMKilled', as a kubectl plugin.","archived":false,"fork":false,"pushed_at":"2023-05-02T14:53:07.000Z","size":134,"stargazers_count":59,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T02:34:16.151Z","etag":null,"topics":["golang","krew-plugin","kubectl","kubectl-plugin","kubernetes"],"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/jdockerty.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":"2022-11-04T14:40:03.000Z","updated_at":"2025-03-27T15:45:33.000Z","dependencies_parsed_at":"2024-06-19T22:50:41.778Z","dependency_job_id":"4564363d-4c8c-4ee8-baaa-b220a3d65150","html_url":"https://github.com/jdockerty/kubectl-oomd","commit_stats":{"total_commits":48,"total_committers":3,"mean_commits":16.0,"dds":0.4375,"last_synced_commit":"032580a151a98a8ec006dab272cd1dcf77d30565"},"previous_names":["jdockerty/kubectl-oomlie"],"tags_count":6,"template":false,"template_full_name":"replicatedhq/krew-plugin-template","purl":"pkg:github/jdockerty/kubectl-oomd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fkubectl-oomd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fkubectl-oomd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fkubectl-oomd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fkubectl-oomd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdockerty","download_url":"https://codeload.github.com/jdockerty/kubectl-oomd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdockerty%2Fkubectl-oomd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003730,"owners_count":26083610,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["golang","krew-plugin","kubectl","kubectl-plugin","kubernetes"],"created_at":"2024-10-13T09:21:11.454Z","updated_at":"2025-10-10T12:02:11.819Z","avatar_url":"https://github.com/jdockerty.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oomd\n\nA `kubectl` plugin to display the pods and containers which have recently been `OOMKilled`.\n\n## Installation \n\nVia [`krew`](https://krew.sigs.k8s.io/)\n```\nkubectl krew install oomd\nkubectl oomd\n```\n\nOr manually from the [releases](https://github.com/jdockerty/kubectl-oomd/releases) page, for example with `linux_amd64`\n\n```shell\n# Download the release for your OS\nwget https://github.com/jdockerty/kubectl-oomd/releases/download/v0.0.7/oomd_linux_amd64.tar.gz\n\n# Extract files from the archive\ntar -xvf oomd_linux_amd64.tar.gz\n\n# Move the binary into your PATH, renaming the application to 'kubectl-oomd' to\n# satisfy the plugin convention\nmv oomd \"${HOME}\"/.local/bin/kubectl-oomd\n\n# Run the plugin\nkubectl oomd\n```\n\n## Usage\n\nRunning the command will display the pods that have recently been `OOMKilled` in your current namespace.\nThis also shows the specific container which was killed too, helpful in the case of multi-container pods.\n\n\n```\nkubectl oomd\n\nPOD                        CONTAINER        REQUEST     LIMIT     TERMINATION TIME\nmy-app-5bcbcdf97-722jp     infoapp          1G          8G        2022-11-07 13:03:49 +0000 GMT\nmy-app-5bcbcdf97-7j5rd     infoapp          1G          8G        2022-11-07 14:35:34 +0000 GMT\nmy-app-5bcbcdf97-k8g8g     infoapp          1G          8G        2022-11-07 14:35:02 +0000 GMT\nmy-app-5bcbcdf97-mf65j     infoapp          1G          8G        2022-11-07 14:34:57 +0000 GMT\n```\n\nYou can specify another namespace, as you would with other `kubectl` commands or use `--all-namespaces`/`-A` to check against them all.\n\n\n```\nkubectl oomd -n oomkilled\n\nPOD                        CONTAINER        REQUEST     LIMIT     TERMINATION TIME\nmy-app-5bcbcdf97-722jp     infoapp          1G          8G        2022-11-07 13:03:49 +0000 GMT\nmy-app-5bcbcdf97-7j5rd     infoapp          1G          8G        2022-11-07 14:35:34 +0000 GMT\nmy-app-5bcbcdf97-k8g8g     infoapp          1G          8G        2022-11-07 14:35:02 +0000 GMT\nmy-app-5bcbcdf97-mf65j     infoapp          1G          8G        2022-11-07 14:34:57 +0000 GMT\n```\n\n```\nkubectl oomd --no-headers\n\nmy-app-5bcbcdf97-722jp     infoapp          1G          8G        2022-11-07 13:03:49 +0000 GMT\nmy-app-5bcbcdf97-7j5rd     infoapp          1G          8G        2022-11-07 14:35:34 +0000 GMT\nmy-app-5bcbcdf97-k8g8g     infoapp          1G          8G        2022-11-07 14:35:02 +0000 GMT\nmy-app-5bcbcdf97-mf65j     infoapp          1G          8G        2022-11-07 14:34:57 +0000 GMT\n```\n\nExperimental sorting is enabled through the `--sort-field` flag. By default, this is `none`.\nAt the moment, only `time` is supported which sorts by termination time of containers, this is mainly\nuseful in larger outputs across all namespaces (`-A`), used in conjunction with a pipe to `tail`.\nA simple example of this in action is shown below.\n\n```\n# The default with no sorting.\nkubectl oomd -n tracing\nPOD                    CONTAINER        REQUEST     LIMIT     TERMINATION TIME\njaeger-agent-4k845     jaeger-agent     100Mi       100Mi     2022-11-11 21:06:31 +0000 GMT\njaeger-agent-j5vb8     jaeger-agent     100Mi       100Mi     2022-11-09 23:20:38 +0000 GMT\n\n# Most recently OOMKilled pods are shown first\nkubectl oomd -n tracing --sort-field time\nPOD                    CONTAINER        REQUEST     LIMIT     TERMINATION TIME\njaeger-agent-j5vb8     jaeger-agent     100Mi       100Mi     2022-11-09 23:20:38 +0000 GMT\njaeger-agent-4k845     jaeger-agent     100Mi       100Mi     2022-11-11 21:06:31 +0000 GMT\n```\n\n### Development\n\nIf you wish to force some `OOMKilled` pods for testing purposes, you can use [`oomer`](https://github.com/jdockerty/oomer)\nor simply run\n\n    kubectl apply -f https://raw.githubusercontent.com/jdockerty/oomer/main/oomer.yaml\n\nThis will create the `oomkilled` namespace and a `Deployment` with pods that continually exit with code `137`,\nin order to be picked up by `oomd`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdockerty%2Fkubectl-oomd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdockerty%2Fkubectl-oomd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdockerty%2Fkubectl-oomd/lists"}